1 # Copyright © 2009-2011 Nick Bowler
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.
7 noinst_HEADERS += engine/music-module.h
9 engine_GOBS = engine/palette.gob engine/texture.gob engine/music.gob
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)
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_
22 # Force all GOB objects to be generated before building anything.
23 $(engine_la_OBJECTS): $(orderonly) $(engine_GOBS:.gob=.gobstamp)
26 engine_la_SOURCES += engine/music-dummymod.c
30 engine_la_SOURCES += engine/music-modplug.c engine/modplug-types.h
31 engine_la_CFLAGS += $(LIBMODPLUG_CFLAGS)
32 engine_la_LIBADD += $(LIBMODPLUG_LIBS)