12 -DPKGDATADIR=\"$(pkgdatadir)\"
17 -I$(top_builddir)/src \
22 bin_PROGRAMS = @DOINSTGOB@
23 noinst_PROGRAMS = @NOINSTGOB@
26 BUILT_SOURCES = parse.h parse.c lexer.c
47 # we might want popt back in the future
50 CLEANFILES = @CLEANFILES@ $(BUILT_SOURCES) test-object.* test-object-private.h
52 EXTRA_DIST = $(BUILT_SOURCES) test.gob generate_treefuncs.pl treefuncs.def
54 parse.h parse.c: parse.y
56 test -f y.tab.c && mv -f y.tab.c parse.c
57 test -f y.tab.h && mv -f y.tab.h parse.h
59 test: test-object.c test-object.h
60 $(CC) -g -Wall `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.c
62 test-object.c test-object.h: test.gob gob2
65 # can't depend on the header file as that would break the above rule
66 # since it's just for testing, who cares
67 testcpp: test-object.cc
68 g++ -g -Wall `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.cc
70 test-object.cc: test.gob gob2
71 ./gob2 --for-cpp test.gob