fart/Makefile
Josh Holtrop a52b456bfa updated Makefile to use -O1 in CXXFLAGS instead of -O3; -O2 and above currently break the app
git-svn-id: svn://anubis/fart/trunk@61 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-28 18:51:14 +00:00

27 lines
492 B
Makefile

TARGET := fart
ifdef WIN32
export CPPFLAGS += -I"$(shell cd)"
else
export CPPFLAGS += -I"$(shell pwd)"
endif
export CXXFLAGS := -Wall -O1
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