author | Markus Bröker <mbroeker@largo.localnet> |
Thu, 16 Apr 2009 12:49:11 +0200 | |
changeset 38 | 48f6f3918b82 |
parent 37 | 0fbbe329c3a2 |
child 39 | 46d7ec9d63bd |
permissions | -rw-r--r-- |
CC=gcc LD=ld YACC=bison -y FLEX=flex CFLAGS=-Wall -O2 -ansi -D_XOPEN_SOURCE=500 LDFLAGS= INCLUDE=include OBJECTS=main.o parser.o lexer.o TARGET=calc .SUFFIXES: .c .y .l .c.o: $(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $< .y.c: $(YACC) -d $< -o $@ .l.c: $(FLEX) -o $@ $< all: $(TARGET) $(TARGET): $(OBJECTS) $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ .PHONY: distclean clean clean: rm -f *.[oae]; rm -f *~; rm -f parser.h distclean: make clean rm -f $(TARGET)