engine: Add missing header to Makefile.am
[upkg.git] / src / engine / Makefile.inc
1 # Copyright © 2009-2011 Nick Bowler
2 #
3 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
4 # This is free software: you are free to do what the fuck you want to.
5 # There is NO WARRANTY, to the extent permitted by law.
6
7 noinst_HEADERS += engine/music-module.h engine/pcx.h
8
9 engine_GOBS = engine/palette.gob engine/texture.gob engine/music.gob
10
11 EXTRA_DIST += $(engine_GOBS) $(engine_GOBS:.gob=.gobstamp)
12 noinst_HEADERS += $(engine_GOBS:.gob=.h)
13 MAINTAINERCLEANFILES += $(engine_GOBS:.gob=.gobstamp) \
14         $(engine_GOBS:.gob=.c) $(engine_GOBS:.gob=.h)
15
16 pkglib_LTLIBRARIES += engine.la
17 engine_la_SOURCES   = engine/engine.c engine/pcx.c $(engine_GOBS:.gob=.c)
18 engine_la_CFLAGS    = $(GLIB_CFLAGS)
19 engine_la_LIBADD    = $(GLIB_LIBS)
20 engine_la_LDFLAGS   = -module -avoid-version -export-symbols-regex _LTX_
21
22 # Force all GOB objects to be generated before building anything.
23 $(engine_la_OBJECTS): $(orderonly) $(engine_GOBS:.gob=.gobstamp)
24
25 if USE_DUMMYMOD
26 engine_la_SOURCES += engine/music-dummymod.c
27 endif
28
29 if USE_LIBMODPLUG
30 engine_la_SOURCES += engine/music-modplug.c engine/modplug-types.h
31 engine_la_CFLAGS  += $(LIBMODPLUG_CFLAGS)
32 engine_la_LIBADD  += $(LIBMODPLUG_LIBS)
33 endif