Makefile.am 1.4 KB
Newer Older
Ban's avatar
Ban committed
1
lib_LTLIBRARIES = libovcc.la
Ban's avatar
Ban committed
2
noinst_PROGRAMS = test
Ban's avatar
Ban committed
3

Colomban Wendling's avatar
Colomban Wendling committed
4
libovcc_la_CPPFLAGS = -DG_LOG_DOMAIN=\"libovcc\"
5
libovcc_la_SOURCES  = enumtypes.c \
6
                      ovcc-marshal.c \
7
                      board.vala \
8
                      game.c \
9 10
                      pawn.vala \
                      player.vala \
Colomban Wendling's avatar
Colomban Wendling committed
11
                      stack.vala \
12
                      tile.vala \
13
                      tileobject.vala \
Colomban Wendling's avatar
Colomban Wendling committed
14
                      tileset.vala \
15
                      tilesdef.vala \
Colomban Wendling's avatar
Colomban Wendling committed
16
                      utils.vala \
Colomban Wendling's avatar
Colomban Wendling committed
17
                      xmlutils.c
18
ovccinclude_HEADERS = ovcc.h \
19
                      game.h
Ban's avatar
Ban committed
20 21 22

test_LDADD   = libovcc.la -lpthread
test_SOURCES = test.c
23 24 25 26 27 28 29 30 31 32 33 34


enumtypes.h: $(ovccinclude_HEADERS) enumtypes.h.template
	$(AM_V_GEN) \
	( cd $(srcdir) && $(GLIB_MKENUMS) --template $@.template \
		$(ovccinclude_HEADERS) | \
		# hack to fix glib-mkenums output \
		sed 's/o_vcc_/ovcc_/g' | sed 's/O_TYPE_VCC_/OVCC_TYPE_/g' ) > $@
enumtypes.c: $(ovccinclude_HEADERS) enumtypes.c.template enumtypes.h
	$(AM_V_GEN) \
	( cd $(srcdir) && $(GLIB_MKENUMS) --template $@.template \
		$(ovccinclude_HEADERS) | sed 's/o_vcc_/ovcc_/g' ) > $@
35 36 37 38 39 40 41 42

ovcc-marshal.h: ovcc-marshal.list
	$(AM_V_GEN) \
	$(GLIB_GENMARSHAL) $< --header --prefix=_ovcc_marshal > $@
ovcc-marshal.c: ovcc-marshal.list ovcc-marshal.h
	$(AM_V_GEN) \
	( echo '#include "ovcc-marshal.h"' && \
		$(GLIB_GENMARSHAL) $< --body --prefix=_ovcc_marshal ) > $@