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