TARGETS = qc OBJS = qc.o yylex.o stringf.o tree.o bind.o asm.o code.o code_exp.o optimize.o #YACC=yacc #YACC=byacc YACC=bison -y #LEX=lex LEX=flex #LEX=flex -l CFLAGS=-g .PHONY: all clean moreclean distclean all: $(TARGETS) qc.c qc.h: qc.y $(YACC) -d -o qc.c $< yylex.c: yylex.l qc.h $(LEX) -o$@ $< qc.o: qc.c tree.h yylex.o: yylex.c tree.h qc.h stringf.o: stringf.c tree.o: tree.c tree.h qc.h bind.o: bind.c bind.h tree.h qc.h asm.o: asm.c asm.h tree.h code.o: code.c asm.h bind.h tree.h qc.h code_exp.o: code_exp.c bind.h tree.h qc.h optimize.o: optimize.c asm.h qc: $(OBJS) index.html: Makefile *.y *.l *.h *.c { echo -n "
"; ls -ld .. Makefile *.y *.l *.h *.c \
	| sed -e 's/\([^ ]*\)$$/\1<\/a>/'; echo "
"; }>index.html clean: $(RM) core *.stackdump *~ moreclean: clean $(RM) *.o qc qc.exe distclean: moreclean $(RM) qc.c qc.h yylex.c make index.html