initial
[prop.git] / app / setl-pe / Makefile
blob2b20cd57df4c5117e7a4278f8708aeb8a6fe78f8
1 PROP= ../../bin/prop
2 PROP_OPTS= -s -S -O15 -r -v2
3 #PROP_OPTS= -S -O15 -r -v2
4 CC= g++
5 COPTS= -O2
6 CINCLUDE= -I../../include
8 H_SRC= foundation.h setl-lexeme.h setl-ast.h setl-syntax.h
9 C_SRC= setl-lexer.cc setl-syntax.cc setl-ast.cc
10 SRC= $(H_SRC) $(C_SRC)
11 OBJS= setl-lexer.o setl-syntax.o setl-ast.o
13 all: $(SRC) $(OBJS)
15 spotless:
16 /bin/rm -f *.o $(SRC) *.report
18 tar:
19 tar -cvf - Makefile *.*cc *.*h | gzip >SETL.tar.gz
21 setl-syntax.cc: foundation.ph setl-lexeme.ph setl-syntax.ph setl-ast.ph setl-syntax.pcc
22 setl-lexer.cc: foundation.ph setl-lexeme.ph setl-lexer.pcc
23 setl-ast.cc: foundation.ph setl-ast.ph setl-ast.pcc
25 setl-syntax.o: foundation.h setl-lexeme.h setl-syntax.h setl-syntax.cc
26 setl-lexer.o: foundation.h setl-lexeme.h setl-lexer.cc
27 setl-ast.o: foundation.h setl-ast.h setl-ast.cc
29 %.h: %.ph $(PROP)
30 $(PROP) $(PROP_OPTS) $(@:.h=.ph)
31 %.cc: %.pcc $(PROP)
32 $(PROP) $(PROP_OPTS) $(@:.cc=.pcc)
33 %.o: %.cc
34 $(CC) -c $(COPTS) $(CINCLUDE) $(@:.o=.cc)