481d4f59364d95a7715c12c88a51a8610c472755
[manmower/obtheme.git] / Makefile
1 CFLAGS=-g -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include \
2         -I../openbox/openbox -I../openbox -I/usr/include/pango-1.0 \
3         -I/usr/include/freetype2
4
5 .PRECIOUS: %.tab.h %.lex.c %.tab.c
6
7 %.tab.h %.tab.c: %.y %.h
8         bison -t -p $* -d $<
9
10 %.lex.c: %.l %.tab.h %.h
11         flex -P$* -o$@ $<
12
13 all: obtheme
14
15 obtheme: main.o obtheme.tab.o obtheme.lex.o obtheme.tab.h
16         $(CC) $(CFLAGS) -o obtheme main.o obtheme.tab.o obtheme.lex.o -lm -lglib-2.0
17
18 clean:
19         rm -f obtheme *.lex.* *.tab.* *.o obtheme.c