41d25179dccaa004edec8051e3fcfb2dbf0ce2c0
[captive.git] / src / libcaptive / ke / Makefile.am
1 # $Id$
2 # automake source for the reactos's ke/ emulation of libcaptive Makefile 
3 # Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 include $(top_srcdir)/Makefile-head.am
20 include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am
21
22 noinst_LTLIBRARIES=libke.la
23 libke_la_SOURCES= \
24                 apc.c \
25                 brkpoint.c \
26                 bug.c \
27                 catch.c \
28                 event.c \
29                 kthread.c \
30                 main.c \
31                 sem.c \
32                 spinlock.c \
33                 timer.c \
34                 wait.c
35
36 EXTRA_DIST+= \
37                 $(noinst_SCRIPTS) \
38                 exports.captivesym \
39                 exports.def
40
41 # Generate exports.c automatically from exports.captivesym by captivesym.pl
42 noinst_SCRIPTS=captivesym.pl
43
44 BUILT_SOURCES+=exports.c
45 CLEANFILES+=exports.c
46 libke_la_SOURCES+=exports.c
47
48 if HAVE_PERL
49 # FIXME: a difference between "ntoskrnl/ntoskrnl.def" vs. "ntoskrnl/ntoskrnl.edf"?
50 exports.c: exports.captivesym captivesym.pl exports.def $(top_srcdir)/reactos/ntoskrnl/ntoskrnl.def $(top_srcdir)/reactos/hal/hal/hal.def
51         $(PERL) captivesym.pl $(top_srcdir)/reactos/ntoskrnl/ntoskrnl.def $(top_srcdir)/reactos/hal/hal/hal.def exports.def $< >$@
52
53 endif