CPP = g++ CC = gcc OBJ = tmp\Test.o LINKOBJ = tmp\Test.o CXXINCS = -I./../../include -I./../../include/loki 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\Test.o: Test.cpp $(CPP) -c Test.cpp -o tmp\Test.o $(CXXFLAGS)