Loki/test/SmallObj/Makefile-SmallSingleton
syntheticpp d1a5bd2ec8 add SmallSingleton to build process
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@308 7ec92016-0320-0410-acc4-a06ded1c099a
2005-10-17 09:03:54 +00:00

31 lines
655 B
Text
Executable file

CPP = g++
CC = gcc
OBJ = SmallSingleton.o
LINKOBJ = SmallSingleton.o
LIBS = -L../../lib -lloki
CXXINCS = -I./../../include -I./../../include/loki
CXXFLAGS = $(CXXINCS) -DNDEBUG -fexpensive-optimizations -O3
BIN = SmallSingleton-gcc.exe
RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom
all: clean all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o SmallSingleton-gcc.exe $(LIBS)
check_tmp:
@$(CHK_DIR_EXISTS) "" $(MKDIR) "tmp"
SmallSingleton.o: SmallSingleton.cpp
$(CPP) -c SmallSingleton.cpp -o SmallSingleton.o $(CXXFLAGS)