12 -DPKGDATADIR=\"$(pkgdatadir)\"
20 bin_PROGRAMS = @DOINSTGOB@
21 noinst_PROGRAMS = @NOINSTGOB@
24 BUILT_SOURCES = parse.h parse.c lexer.c
45 # we might want popt back in the future
48 CLEANFILES = @CLEANFILES@ $(BUILT_SOURCES) test-object.* test-object-private.h
50 EXTRA_DIST = $(BUILT_SOURCES) test.gob generate_treefuncs.pl treefuncs.def
52 parse.h parse.c: parse.y
54 test -f y.tab.c && mv -f y.tab.c parse.c
55 test -f y.tab.h && mv -f y.tab.h parse.h
57 test: test-object.c test-object.h
58 $(CC) -g -Wall `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.c
60 test-object.c test-object.h: test.gob gob2
63 # can't depend on the header file as that would break the above rule
64 # since it's just for testing, who cares
65 testcpp: test-object.cc
66 g++ -g -Wall `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.cc
68 test-object.cc: test.gob gob2
69 ./gob2 --for-cpp test.gob