2005-09-15 13:52:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
CPP = g++
|
|
|
|
CC = gcc
|
2005-09-15 14:33:27 +00:00
|
|
|
OBJ = tmp\SmallObjBench.o tmp\SmallObj.o
|
|
|
|
LINKOBJ = tmp\SmallObjBench.o tmp\SmallObj.o
|
2005-09-15 13:52:16 +00:00
|
|
|
CXXINCS = -I./../../include -I./../../include/loki
|
|
|
|
BIN = main-mingw.exe
|
2005-09-16 08:13:10 +00:00
|
|
|
CXXFLAGS = $(CXXINCS) -Wall -Wextra -pedantic -DNDEBUG -fexpensive-optimizations -O3
|
2005-09-15 13:52:16 +00:00
|
|
|
RM = rm -f
|
2005-09-15 14:33:27 +00:00
|
|
|
CHK_DIR_EXISTS= if not exist
|
|
|
|
MKDIR = mkdir
|
2005-09-15 13:52:16 +00:00
|
|
|
|
|
|
|
.PHONY: all all-before all-after clean clean-custom
|
|
|
|
|
2005-09-16 08:13:10 +00:00
|
|
|
all: clean all-before check_tmp main-mingw.exe all-after
|
2005-09-15 13:52:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean: clean-custom
|
|
|
|
${RM} $(OBJ) $(BIN)
|
|
|
|
|
|
|
|
$(BIN): $(OBJ)
|
2005-09-16 08:13:10 +00:00
|
|
|
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
2005-09-15 14:33:27 +00:00
|
|
|
|
|
|
|
check_tmp:
|
|
|
|
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
|
2005-09-15 13:52:16 +00:00
|
|
|
|
2005-09-15 14:33:27 +00:00
|
|
|
tmp\SmallObjBench.o: SmallObjBench.cpp
|
|
|
|
$(CPP) -c SmallObjBench.cpp -o tmp\SmallObjBench.o $(CXXFLAGS)
|
2005-09-15 13:52:16 +00:00
|
|
|
|
2005-09-15 14:33:27 +00:00
|
|
|
tmp\SmallObj.o: ../../src/SmallObj.cpp
|
|
|
|
$(CPP) -c ../../src/SmallObj.cpp -o tmp\SmallObj.o $(CXXFLAGS)
|