7dac470d9f
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@235 7ec92016-0320-0410-acc4-a06ded1c099a
31 lines
603 B
Text
Executable file
31 lines
603 B
Text
Executable file
|
|
|
|
CPP = g++
|
|
CC = gcc
|
|
OBJ = tmp\Factory.o
|
|
LINKOBJ = tmp\Factory.o
|
|
CXXINCS = -I./../include -I./../include/loki
|
|
LIBS = -L../lib -lloki
|
|
BIN = main-mingw.exe
|
|
CXXFLAGS = $(CXXINCS) -W0 -O2
|
|
RM = rm -f
|
|
CHK_DIR_EXISTS= if not exist
|
|
MKDIR = mkdir
|
|
|
|
.PHONY: all all-before all-after clean clean-custom
|
|
|
|
all: 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\Factory.o: Factory.cpp
|
|
$(CPP) -c Factory.cpp -o tmp\Factory.o $(CXXFLAGS)
|
|
|