fart/parser/Makefile
Josh Holtrop dab2381fba parser modules now compiling and linking with main build process
git-svn-id: svn://anubis/fart/trunk@80 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-04 18:50:15 +00:00

29 lines
394 B
Makefile

FLEX := flex
BISON := bison
PARSER := parser
COBJS := lex.yy.o
CXXOBJS := $(PARSER).tab.o
all: $(COBJS) $(CXXOBJS)
%.o: %.c
$(CC) -c -o $@ $<
%.o: %.cc
$(CXX) -c -o $@ $<
$(PARSER).tab.cc $(PARSER).tab.hh: $(PARSER).yy
$(BISON) -d $<
lex.yy.o: lex.yy.c
lex.yy.c: $(PARSER).tab.hh
lex.yy.c: $(PARSER).lex
$(FLEX) $<
clean:
-rm -f lex.yy.c $(PARSER).tab.cc $(PARSER).tab.hh *~ *.o