noinst_LTLIBRARIES=libke.la
libke_la_SOURCES= \
+ apc.c \
+ brkpoint.c \
bug.c \
catch.c \
event.c \
kthread.c \
+ main.c \
sem.c \
spinlock.c \
+ timer.c \
wait.c
EXTRA_DIST+= \
$(noinst_SCRIPTS) \
- exports.captivesym
+ exports.captivesym \
+ exports.def
# Generate exports.c automatically from exports.captivesym by captivesym.pl
noinst_SCRIPTS=captivesym.pl
CLEANFILES+=exports.c
libke_la_SOURCES+=exports.c
+if HAVE_PERL
# FIXME: a difference between "ntoskrnl/ntoskrnl.def" vs. "ntoskrnl/ntoskrnl.edf"?
exports.c: exports.captivesym captivesym.pl exports.def $(top_srcdir)/reactos/ntoskrnl/ntoskrnl.def $(top_srcdir)/reactos/hal/hal/hal.def
- perl captivesym.pl exports.def $(top_srcdir)/reactos/ntoskrnl/ntoskrnl.def $(top_srcdir)/reactos/hal/hal/hal.def $< >$@
+ $(PERL) $(srcdir)/captivesym.pl \
+ $(top_srcdir)/reactos/ntoskrnl/ntoskrnl.def \
+ $(top_srcdir)/reactos/hal/hal/hal.def \
+ $(srcdir)/exports.def \
+ $< >$@
+
+endif