- Get VPATH build to work
[rodin/chimara.git] / libchimara / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AM_CFLAGS = -Wall
4
5 lib_LTLIBRARIES = libchimara.la
6
7 libchimara_la_SOURCES = \
8         abort.c abort.h \
9         case.c \
10         charset.c charset.h \
11         chimara-glk.c chimara-glk.h chimara-glk-private.h \
12         chimara-if.c chimara-if.h \
13         chimara-marshallers.c chimara-marshallers.h \
14         dispatch.c \
15         event.c event.h \
16         fileref.c fileref.h \
17         garglk.c garglk.h \
18         gestalt.c \
19         gi_blorb.c gi_blorb.h \
20         gi_dispa.c gi_dispa.h \
21         glk.c glk.h \
22         glkstart.h \
23         glkunix.c glkunix.h \
24         hyperlink.c hyperlink.h \
25         image.c \
26         init.c init.h \
27         input.c input.h \
28         magic.c magic.h \
29         mouse.c \
30         resource.c resource.h \
31         schannel.c \
32         stream.c stream.h \
33         strio.c strio.h \
34         style.c style.h \
35         timer.c timer.h \
36         window.c window.h 
37 libchimara_la_CPPFLAGS = \
38         -DG_LOG_DOMAIN=\"Chimara\" \
39         -DLOCALEDIR=\""$(datadir)/locale"\" \
40         -DPLUGINDIR=\""$(pkglibdir)"\" \
41         -DPLUGINSOURCEDIR=\""$(abs_builddir)/../interpreters"\" \
42         -I$(top_srcdir)
43 libchimara_la_CFLAGS = @CHIMARA_CFLAGS@ $(AM_CFLAGS)
44 libchimara_la_LIBADD = @CHIMARA_LIBS@
45 libchimara_la_LDFLAGS = -version-info $(LT_VERSION_INFO) \
46         -no-undefined \
47         -export-symbols-regex "^(glk|chimara|glkunix|giblorb|gidispatch)_"
48 libchimara_includedir = $(includedir)/chimara/libchimara
49 libchimara_include_HEADERS = \
50         chimara-glk.h \
51         chimara-if.h \
52         glk.h \
53         glkstart.h \
54         gi_blorb.h \
55         garglk.h
56
57 BUILT_SOURCES = chimara-marshallers.c chimara-marshallers.h
58 chimara-marshallers.c: chimara-marshallers.txt
59         glib-genmarshal --body --prefix=chimara_marshal $< > $@
60
61 chimara-marshallers.h: chimara-marshallers.txt
62         glib-genmarshal --header --prefix=chimara_marshal $< > $@
63
64 EXTRA_DIST = doc.c glkstart.c chimara-marshallers.txt