fart/Makefile
Josh Holtrop 1fe251f27d added -lfl to LDFLAGS in main Makefile, added parser/parser.{lex,yy} and parser/Makefile (for real this time)
git-svn-id: svn://anubis/fart/trunk@79 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-02-04 18:45:55 +00:00

29 lines
509 B
Makefile

TARGET := fart
ifdef WIN32
export CPPFLAGS += -I"$(shell cd)"
else
export CPPFLAGS += -I"$(shell pwd)"
endif
export CXXFLAGS := -Wall -O1
LDFLAGS := -lfl
all: $(TARGET)
.PHONY: $(TARGET)
$(TARGET):
make -C util
make -C shapes
make -C main
$(CXX) -o $@ main/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
make -C test
$(CXX) -o tests test/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
clean:
make -C test clean
make -C main clean
make -C shapes clean
make -C util clean
-rm -f $(TARGET) tests