5 CFLAGS += -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
7 CFLAGS += -DPKGDATADIR=\"$(pkgdatadir)\"
9 INCLUDES = @GLIB_CFLAGS@ -I$(includedir)
11 bin_PROGRAMS = @DOINSTGOB@
12 noinst_PROGRAMS = @NOINSTGOB@
15 BUILT_SOURCES = parse.h parse.c lexer.c
36 # we might want popt back in the future
39 CLEANFILES += $(BUILT_SOURCES) gtk-weird-button.* gtk-weird-button-private.h
41 EXTRA_DIST = $(BUILT_SOURCES) test.gob generate_treefuncs.pl treefuncs.def
43 parse.h parse.c: parse.y
45 test -f y.tab.c && mv -f y.tab.c parse.c
46 test -f y.tab.h && mv -f y.tab.h parse.h
48 test: gtk-weird-button.c gtk-weird-button.h
49 $(CC) -g -Wall `gtk-config --cflags` -c gtk-weird-button.c
51 gtk-weird-button.c gtk-weird-button.h: test.gob gob
54 # can't depend on the header file as that would break the above rule
55 # since it's just for testing, who cares
56 testcpp: gtk-weird-button.cc
57 g++ -g -Wall `gtk-config --cflags` -c gtk-weird-button.cc
59 gtk-weird-button.cc: test.gob gob
60 ./gob --for-cpp test.gob