34ae78978c
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@241 7ec92016-0320-0410-acc4-a06ded1c099a
32 lines
817 B
Text
Executable file
32 lines
817 B
Text
Executable file
|
|
|
|
CPP = g++
|
|
CC = gcc
|
|
OBJ = tmp\SmallObjBench.o tmp\SmallObj.o
|
|
LINKOBJ = tmp\SmallObjBench.o tmp\SmallObj.o
|
|
CXXINCS = -I./../../include -I./../../include/loki
|
|
BIN = main-mingw.exe
|
|
CXXFLAGS = $(CXXINCS) -Wall -Wextra -pedantic -DNDEBUG -fexpensive-optimizations -O3
|
|
RM = rm -f
|
|
CHK_DIR_EXISTS= if not exist
|
|
MKDIR = mkdir
|
|
|
|
.PHONY: all all-before all-after clean clean-custom
|
|
|
|
all: clean all-before check_tmp main-mingw.exe all-after
|
|
|
|
|
|
clean: clean-custom
|
|
${RM} $(OBJ) $(BIN)
|
|
|
|
$(BIN): $(OBJ)
|
|
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
|
|
|
check_tmp:
|
|
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
|
|
|
|
tmp\SmallObjBench.o: SmallObjBench.cpp
|
|
$(CPP) -c SmallObjBench.cpp -o tmp\SmallObjBench.o $(CXXFLAGS)
|
|
|
|
tmp\SmallObj.o: ../../src/SmallObj.cpp
|
|
$(CPP) -c ../../src/SmallObj.cpp -o tmp\SmallObj.o $(CXXFLAGS)
|