patch Makefiles, Thanks to Lukas Fittl

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@406 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-04 23:35:09 +00:00
parent 7438aec6c3
commit f717540760
16 changed files with 164 additions and 424 deletions

View file

@ -1,32 +1,20 @@
CPP = g++
CC = gcc
OBJ = main.o
LINKOBJ = main.o
CXXINCS = -I./../../include
OBJ1 = main.o
OBJ2 = main2.o
BIN1 = main-gcc
BIN2 = main2-gcc
CXXFLAGS = -I../../include -Wall -O2
LIBS = -L../../lib -lloki
CXXFLAGS = $(CXXINCS) -O2 -DNDEBUG
BIN = main-gcc.exe
RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom
.PHONY: all
all: $(BIN1) $(BIN2)
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-gcc.exe $(LIBS)
check_tmp:
@$(CHK_DIR_EXISTS) "" $(MKDIR) "tmp"
Factory.o: Factory.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
$(BIN1): $(OBJ1)
$(CXX) -o $(BIN1) $(OBJ1) $(LIBS)
$(BIN2): $(OBJ2)
$(CXX) -o $(BIN2) $(OBJ2) $(LIBS)
.PHONY: clean
clean:
rm -f $(OBJ1) $(BIN1)
rm -f $(OBJ2) $(BIN2)