You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
414 B

9 years ago
CFLAGS=-O2 -g
OBJECTS=main.o debug.o init.o parser/lexical.o
makemap: $(OBJECTS)
g++ $(CFLAGS) -o $@ $(OBJECTS)
main.o: debug.h init.h
init.o: parser/lexical.h parser/parser.h debug.h init.h
parser/lexical.o: parser/parser.h debug.h
parser/lexical.h parser/lexical.cpp: parser/lexical.l
cd parser && flex lexical.l
clean:
rm -f *.o parser/*.o parser/lexical.{cpp,h}
distclean: clean
rm -f makemap