bin_PROGRAMS = gob
-gob_SOURCES = main.c tree.c tree.h out.c out.h parse.y lexer.l
+gob_SOURCES = main.c main.h tree.c tree.h out.c out.h parse.y lexer.l
gob_LDADD = -lm -lpopt $(GLIB_LIBS) @LEXLIB@
BUILT_SOURCES = parse.h parse.c lexer.c
-CLEANFILES = $(BUILT_SOURCES)
+CLEANFILES = $(BUILT_SOURCES) gtk-weird-button.*
EXTRA_DIST = test.gob
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
fi; \
done
lexer.o: lexer.c ../config.h parse.h
-main.o: main.c ../config.h tree.h parse.h out.h
+main.o: main.c ../config.h tree.h parse.h out.h main.h
out.o: out.c out.h
-parse.o: parse.c ../config.h tree.h
+parse.o: parse.c ../config.h tree.h main.h
tree.o: tree.c ../config.h tree.h
info-am:
test -f y.tab.h && mv -f y.tab.h parse.h
test: gtk-weird-button.c gtk-weird-button.h
+ $(CC) -g -Wall `gtk-config --cflags` -c gtk-weird-button.c
+
gtk-weird-button.c gtk-weird-button.h: test.gob gob
./gob test.gob