- Various makefile improvements (better mingw support, easier to add new sources)

- Include loki/StrongPtr.hpp, not Loki/StrongPtr.hpp (test/SmartPtr)


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@638 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
lfittl 2006-04-18 07:29:41 +00:00
parent cdc57d88aa
commit 85a490c387
23 changed files with 340 additions and 280 deletions

View file

@ -1,11 +1,20 @@
BIN2 = Dependencies
BIN3 = Phoenix
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
CPPFLAGS = -I../../include -DNDEBUG
LDFLAGS = -L../../lib
LDLIBS = -lloki
BIN1 = Dependencies$(BIN_SUFFIX)
SRC1 = Dependencies.cpp
OBJ1 = $(SRC1:.cpp=.o)
BIN2 = Phoenix$(BIN_SUFFIX)
SRC2 = Phoenix.cpp
OBJ2 = $(SRC2:.cpp=.o)
.PHONY: build clean
build: $(BIN2) $(BIN3)
.PHONY: all clean
all: $(BIN1) $(BIN2)
clean:
rm -f $(BIN2) $(BIN3) $(BIN2).exe $(BIN2).o $(BIN3).exe $(BIN3).o
$(RM) $(BIN1)
$(RM) $(OBJ1)
$(RM) $(BIN2)
$(RM) $(OBJ2)
$(BIN1): $(OBJ1)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
$(BIN2): $(OBJ2)
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)