5 #GCC specific, should not be in distributed files
9 # -Wmissing-prototypes \
10 # -Wmissing-declarations
13 -DPKGDATADIR=\"$(pkgdatadir)\"
18 -I$(top_builddir)/src \
24 noinst_PROGRAMS = gob2
29 BUILT_SOURCES = parse.h parse.c lexer.c
50 # we might want popt back in the future
53 CLEANFILES = @CLEANFILES@ $(BUILT_SOURCES) test-object.* test-object-private.h
55 EXTRA_DIST = $(BUILT_SOURCES) test.gob generate_treefuncs.pl treefuncs.def
57 # parse.h parse.c: parse.y
58 # $(YACC) $(YFLAGS) $<
59 # test -f y.tab.c && mv -f y.tab.c parse.c
60 # test -f y.tab.h && mv -f y.tab.h parse.h
62 test: test-object.c test-object.h
63 $(CC) -g -O -W -Wall -Wunused -Wuninitialized -Wdeclaration-after-statement -Wshadow -Wwrite-strings -Wunreachable-code -Wbad-function-cast -pedantic `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.c
65 test-object.c test-object.h: test.gob gob2
68 # can't depend on the header file as that would break the above rule
69 # since it's just for testing, who cares
70 testcpp: test-object.cc
71 g++ -g -O -W -Wall -Wunused -Wuninitialized -Wwrite-strings -Wunreachable-code -pedantic `pkg-config --cflags gobject-2.0 gtk+-2.0` -c test-object.cc
73 test-object.cc: test.gob gob2
74 ./gob2 --for-cpp test.gob