- Make it easier to overwrite CXXFLAGS, by using CPPFLAGS for loki specific stuff

- Don't create temporary object files anymore, use implicit rule for binaries
- Removed unneeded DESTDIR= line


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@463 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
lfittl 2006-01-09 23:56:13 +00:00
parent ba38940146
commit d51dd537ea
14 changed files with 89 additions and 130 deletions

View file

@ -1,26 +1,12 @@
OBJ1 = DeletableSingleton.o
OBJ2 = Dependencies.o
OBJ3 = Phoenix.o
BIN1 = deletable-singleton-gcc
BIN2 = dependencies-gcc
BIN3 = phoenix-gcc
CXXFLAGS = -I../../include -Wall -O2 -DNDEBUG
LIBS = -L../../lib -lloki
BIN1 = DeletableSingleton
BIN2 = Dependencies
BIN3 = Phoenix
CXXFLAGS = -Wall -O2
CPPFLAGS = -I../../include -DNDEBUG
LDFLAGS = -L../../lib
LDLIBS = -lloki
.PHONY: all
all: $(BIN1) $(BIN2) $(BIN3)
$(BIN1): $(OBJ1)
$(CXX) -o $(BIN1) $(OBJ1) $(LIBS)
$(BIN2): $(OBJ2)
$(CXX) -o $(BIN2) $(OBJ2) $(LIBS)
$(BIN3): $(OBJ3)
$(CXX) -o $(BIN3) $(OBJ3) $(LIBS)
.PHONY: clean
.PHONY: build clean
build: $(BIN1) $(BIN2) $(BIN3)
clean:
rm -f $(OBJ1) $(BIN1)
rm -f $(OBJ2) $(BIN2)
rm -f $(OBJ3) $(BIN3)
rm -f $(BIN1) $(BIN2) $(BIN3)