parser/Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 16 Apr 2009 12:49:11 +0200
changeset 36 f52a9deddfc0
parent 5 d752cbe8208e
permissions -rw-r--r--
cube.cc: * Create an object, move this object. * don't try to re-create an object of a fixed size... committer: Markus Bröker <mbroeker@largo.homelinux.org>

CC=gcc
LD=ld
YACC=bison -y
FLEX=flex
CFLAGS=-Wall -O2 -ansi 
LDFLAGS=
INCLUDE=include
OBJECTS=main.o parser.o lexer.o
TARGET=parser

.SUFFIXES: .c .yy .ll

.c.o: 
	$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<

.yy.c:
	$(YACC) -d $< -o $@

.ll.c:
	$(FLEX) -o $@ $<

all: $(TARGET)


$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@

.PHONY: distclean clean

clean:
	rm -f *.[oae];
	rm -f *~;

distclean:
	make clean
	rm -f $(TARGET)