add mingw make files

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@235 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2005-09-15 14:33:27 +00:00
parent 2221554050
commit 7dac470d9f
8 changed files with 75 additions and 42 deletions

View file

@ -42,10 +42,8 @@ clean:
$(MAKE) -f $(MAKEFILE) clean $(MAKE) -f $(MAKEFILE) clean
@cd .. @cd ..
cd tools && \ cd tools && \
cd RegressionTest && \
$(MAKE) -f $(MAKEFILE) clean $(MAKE) -f $(MAKEFILE) clean
@cd .. @cd ..
@cd ..

View file

@ -2,17 +2,19 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = Factory.o OBJ = tmp\Factory.o
LINKOBJ = Factory.o LINKOBJ = tmp\Factory.o
CXXINCS = -I./../include -I./../include/loki CXXINCS = -I./../include -I./../include/loki
LIBS = -L../lib -lloki LIBS = -L../lib -lloki
BIN = main-mingw.exe BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2 CXXFLAGS = $(CXXINCS) -W0 -O2
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before main-mingw.exe all-after all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom clean: clean-custom
@ -21,6 +23,9 @@ clean: clean-custom
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS) $(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
Factory.o: Factory.cpp check_tmp:
$(CPP) -c Factory.cpp -o Factory.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
tmp\Factory.o: Factory.cpp
$(CPP) -c Factory.cpp -o tmp\Factory.o $(CXXFLAGS)

1
make.mingw.bat Executable file
View file

@ -0,0 +1 @@
mingw32-make -f Makefile.mingw

View file

@ -1,18 +1,20 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = Singleton.o SmallObj.o OBJ = tmp\Singleton.o tmp\SmallObj.o
LINKOBJ = Singleton.o SmallObj.o LINKOBJ = tmp\Singleton.o tmp\SmallObj.o
LIBS = -L"C:/Programme/Dev-Cpp/lib" -g3 LIBS = -L"C:/Programme/Dev-Cpp/lib" -g3
CXXINCS = -I"..\include" -I"..\include\loki" CXXINCS = -I"..\include" -I"..\include\loki"
BIN = ../lib/libloki.a BIN = ../lib/libloki.a
CXXFLAGS = $(CXXINCS) -Wall -pedantic -g3 CXXFLAGS = $(CXXINCS) -W0 -O2
CFLAGS = $(INCS) -g3 CFLAGS = $(INCS) -g3
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before ../lib/libloki.a all-after all: all-before check_tmp check_lib ../lib/libloki.a all-after
clean: clean-custom clean: clean-custom
@ -22,8 +24,14 @@ $(BIN): $(LINKOBJ)
ar r $(BIN) $(LINKOBJ) ar r $(BIN) $(LINKOBJ)
ranlib $(BIN) ranlib $(BIN)
Singleton.o: Singleton.cpp check_tmp:
$(CPP) -c Singleton.cpp -o Singleton.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
SmallObj.o: SmallObj.cpp check_lib:
$(CPP) -c SmallObj.cpp -o SmallObj.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "..\lib\" $(MKDIR) "..\lib\"
tmp\Singleton.o: Singleton.cpp
$(CPP) -c Singleton.cpp -o tmp\Singleton.o $(CXXFLAGS)
tmp\SmallObj.o: SmallObj.cpp
$(CPP) -c SmallObj.cpp -o tmp\SmallObj.o $(CXXFLAGS)

View file

@ -2,16 +2,18 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = main.o OBJ = tmp\main.o
LINKOBJ = main.o LINKOBJ = tmp\main.o
CXXINCS = -I./../../include -I./../../include/loki CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2 CXXFLAGS = $(CXXINCS) -W0 -O2
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before main-mingw.exe all-after all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom clean: clean-custom
@ -20,6 +22,9 @@ clean: clean-custom
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS) $(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
main.o: main.cpp check_tmp:
$(CPP) -c main.cpp -o main.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
tmp\main.o: main.cpp
$(CPP) -c main.cpp -o tmp\main.o $(CXXFLAGS)

View file

@ -2,16 +2,18 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = SmallObjBench.o SmallObj.o OBJ = tmp\SmallObjBench.o tmp\SmallObj.o
LINKOBJ = SmallObjBench.o SmallObj.o LINKOBJ = tmp\SmallObjBench.o tmp\SmallObj.o
CXXINCS = -I./../../include -I./../../include/loki CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2 CXXFLAGS = $(CXXINCS) -W0 -O2
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before main-mingw.exe all-after all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom clean: clean-custom
@ -20,8 +22,11 @@ clean: clean-custom
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS) $(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
SmallObjBench.o: SmallObjBench.cpp check_tmp:
$(CPP) -c SmallObjBench.cpp -o SmallObjBench.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
SmallObj.o: ../../src/SmallObj.cpp tmp\SmallObjBench.o: SmallObjBench.cpp
$(CPP) -c ../../src/SmallObj.cpp -o SmallObj.o $(CXXFLAGS) $(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)

View file

@ -2,16 +2,18 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = main.o OBJ = tmp\main.o
LINKOBJ = main.o LINKOBJ = tmp\main.o
CXXINCS = -I./../../include -I./../../include/loki CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2 CXXFLAGS = $(CXXINCS) -W0 -O2
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before main-mingw.exe all-after all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom clean: clean-custom
@ -20,6 +22,10 @@ clean: clean-custom
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS) $(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
main.o: main.cpp check_tmp:
$(CPP) -c main.cpp -o main.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
tmp\main.o: main.cpp
$(CPP) -c main.cpp -o tmp\main.o $(CXXFLAGS)

View file

@ -2,16 +2,18 @@
CPP = g++ CPP = g++
CC = gcc CC = gcc
OBJ = Test.o OBJ = tmp\Test.o
LINKOBJ = Test.o LINKOBJ = tmp\Test.o
CXXINCS = -I./../../include -I./../../include/loki CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2 CXXFLAGS = $(CXXINCS) -W0 -O2
RM = rm -f RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.PHONY: all all-before all-after clean clean-custom .PHONY: all all-before all-after clean clean-custom
all: all-before main-mingw.exe all-after all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom clean: clean-custom
@ -20,6 +22,9 @@ clean: clean-custom
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS) $(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
Test.o: Test.cpp check_tmp:
$(CPP) -c Test.cpp -o Test.o $(CXXFLAGS) @$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
tmp\Test.o: Test.cpp
$(CPP) -c Test.cpp -o tmp\Test.o $(CXXFLAGS)