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
@cd ..
cd tools && \
cd RegressionTest && \
$(MAKE) -f $(MAKEFILE) clean
@cd ..
@cd ..

View file

@ -2,17 +2,19 @@
CPP = g++
CC = gcc
OBJ = Factory.o
LINKOBJ = Factory.o
OBJ = tmp\Factory.o
LINKOBJ = tmp\Factory.o
CXXINCS = -I./../include -I./../include/loki
LIBS = -L../lib -lloki
BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
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 main-mingw.exe all-after
all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom
@ -21,6 +23,9 @@ clean: clean-custom
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
Factory.o: Factory.cpp
$(CPP) -c Factory.cpp -o Factory.o $(CXXFLAGS)
check_tmp:
@$(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++
CC = gcc
OBJ = Singleton.o SmallObj.o
LINKOBJ = Singleton.o SmallObj.o
OBJ = tmp\Singleton.o tmp\SmallObj.o
LINKOBJ = tmp\Singleton.o tmp\SmallObj.o
LIBS = -L"C:/Programme/Dev-Cpp/lib" -g3
CXXINCS = -I"..\include" -I"..\include\loki"
BIN = ../lib/libloki.a
CXXFLAGS = $(CXXINCS) -Wall -pedantic -g3
CXXFLAGS = $(CXXINCS) -W0 -O2
CFLAGS = $(INCS) -g3
RM = rm -f
CHK_DIR_EXISTS= if not exist
MKDIR = mkdir
.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
@ -22,8 +24,14 @@ $(BIN): $(LINKOBJ)
ar r $(BIN) $(LINKOBJ)
ranlib $(BIN)
Singleton.o: Singleton.cpp
$(CPP) -c Singleton.cpp -o Singleton.o $(CXXFLAGS)
check_tmp:
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
SmallObj.o: SmallObj.cpp
$(CPP) -c SmallObj.cpp -o SmallObj.o $(CXXFLAGS)
check_lib:
@$(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++
CC = gcc
OBJ = main.o
LINKOBJ = main.o
OBJ = tmp\main.o
LINKOBJ = tmp\main.o
CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
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 main-mingw.exe all-after
all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom
@ -20,6 +22,9 @@ clean: clean-custom
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
check_tmp:
@$(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++
CC = gcc
OBJ = SmallObjBench.o SmallObj.o
LINKOBJ = SmallObjBench.o SmallObj.o
OBJ = tmp\SmallObjBench.o tmp\SmallObj.o
LINKOBJ = tmp\SmallObjBench.o tmp\SmallObj.o
CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
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 main-mingw.exe all-after
all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom
@ -19,9 +21,12 @@ clean: clean-custom
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
check_tmp:
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
SmallObjBench.o: SmallObjBench.cpp
$(CPP) -c SmallObjBench.cpp -o SmallObjBench.o $(CXXFLAGS)
tmp\SmallObjBench.o: SmallObjBench.cpp
$(CPP) -c SmallObjBench.cpp -o tmp\SmallObjBench.o $(CXXFLAGS)
SmallObj.o: ../../src/SmallObj.cpp
$(CPP) -c ../../src/SmallObj.cpp -o SmallObj.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++
CC = gcc
OBJ = main.o
LINKOBJ = main.o
OBJ = tmp\main.o
LINKOBJ = tmp\main.o
CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
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 main-mingw.exe all-after
all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom
@ -20,6 +22,10 @@ clean: clean-custom
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
check_tmp:
@$(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++
CC = gcc
OBJ = Test.o
LINKOBJ = Test.o
OBJ = tmp\Test.o
LINKOBJ = tmp\Test.o
CXXINCS = -I./../../include -I./../../include/loki
BIN = main-mingw.exe
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
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 main-mingw.exe all-after
all: all-before check_tmp main-mingw.exe all-after
clean: clean-custom
@ -19,7 +21,10 @@ clean: clean-custom
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
check_tmp:
@$(CHK_DIR_EXISTS) "tmp\" $(MKDIR) "tmp"
Test.o: Test.cpp
$(CPP) -c Test.cpp -o Test.o $(CXXFLAGS)
tmp\Test.o: Test.cpp
$(CPP) -c Test.cpp -o tmp\Test.o $(CXXFLAGS)