]> git.draconx.ca Git - upkg.git/blob - src/engine/Makefile.inc
a5ef99b51dd4dc9e6fa881c365aa469c7de98f19
[upkg.git] / src / engine / Makefile.inc
1 # Copyright 2009-2011 Nick Bowler
2 # Copying and distribution of this file, with or without modification,
3 # are permitted in any medium without royalty provided the copyright
4 # notice and this notice are preserved.  This file is offered as-is,
5 # without any warranty.
6
7 noinst_HEADERS += engine/music-module.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_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