2005-09-15 13:52:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
CPP = g++
|
|
|
|
CC = gcc
|
2005-09-15 14:33:27 +00:00
|
|
|
OBJ = tmp\Factory.o
|
|
|
|
LINKOBJ = tmp\Factory.o
|
2005-09-15 13:52:16 +00:00
|
|
|
CXXINCS = -I./../include -I./../include/loki
|
|
|
|
LIBS = -L../lib -lloki
|
|
|
|
BIN = main-mingw.exe
|
2005-09-15 14:33:27 +00:00
|
|
|
CXXFLAGS = $(CXXINCS) -W0 -O2
|
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-15 14:33:27 +00:00
|
|
|
all: 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)
|
|
|
|
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
|
|
|
|
2005-09-15 14:33:27 +00:00
|
|
|
check_tmp:
|
|
|
|
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
|
|
|
|
|
|
|
|
tmp\Factory.o: Factory.cpp
|
|
|
|
$(CPP) -c Factory.cpp -o tmp\Factory.o $(CXXFLAGS)
|
2005-09-15 13:52:16 +00:00
|
|
|
|