Adding Main program
[obcplusplus.git] / Makefile
blobcb35cf6e900baef8191063aad09fbd7ba5ae6c54
1 FLAG :=
2 GCC :=g++
3 TOKENS := ObScanner
4 SYNTAX := ObParser
5 BIN := obc++
6 SUBDIRS := parser scanner compiler
8 all:lib $(BIN)
10 lib:
11 @for n in $(SUBDIRS); do \
12 make -C$${n};\
13 done
15 $(BIN): Main.C
16 $(GCC) $< -DYYERROR_VERBOSE -I. -Iparser -Iscanner -Icompiler parser/ObParser.o scanner/ObScanner.o compiler/ObCompiler.o -W -Wall -o $(BIN)
18 clean clear:
19 @for n in $(SUBDIRS); do \
20 make -C$${n} $(@);\
21 done
22 rm -Rf *~ *.o $(BIN)