]> git.draconx.ca Git - gob-dx.git/blob - src/Makefile.am
Release 0.92.2
[gob-dx.git] / src / Makefile.am
1 #YACCFLAGS += -d -t
2 YFLAGS += -d -t
3 SUBDIRS =
4
5 INCLUDES = @GLIB_CFLAGS@ -I$(includedir)
6
7 bin_PROGRAMS = @DOINSTGOB@
8 noinst_PROGRAMS = @NOINSTGOB@
9 EXTRA_PROGRAMS = gob
10
11 gob_SOURCES =   \
12         main.c          \
13         main.h          \
14         tree.c          \
15         tree.h          \
16         out.c           \
17         out.h           \
18         util.c          \
19         util.h          \
20         checks.c        \
21         checks.h        \
22         parse.y         \
23         lexer.l
24
25 gob_LDADD = \
26         -lm \
27         $(GLIB_LIBS) \
28         @LEXLIB@
29
30 # we might want popt back in the future
31 #       @POPT_LIB@
32
33 BUILT_SOURCES = parse.h parse.c lexer.c
34
35 CLEANFILES += $(BUILT_SOURCES) gtk-weird-button.* gtk-weird-button-private.h
36
37 EXTRA_DIST = test.gob
38
39 parse.h: parse.y
40         $(YACC) $(YFLAGS) $<
41         test -f y.tab.c && mv -f y.tab.c parse.c
42         test -f y.tab.h && mv -f y.tab.h parse.h
43
44 test: gtk-weird-button.c gtk-weird-button.h
45         $(CC) -g -Wall `gtk-config --cflags` -c gtk-weird-button.c
46
47 gtk-weird-button.c gtk-weird-button.h: test.gob gob
48         ./gob test.gob
49
50 # can't depend on the header file as that would break the above rule
51 # since it's just for testing, who cares
52 testcpp: gtk-weird-button.cc
53         g++ -g -Wall `gtk-config --cflags` -c gtk-weird-button.cc
54
55 gtk-weird-button.cc: test.gob gob
56         ./gob --for-cpp test.gob