add mingw make files
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@233 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
e9b0d29ab9
commit
5c10a8b01c
9 changed files with 279 additions and 0 deletions
54
Makefile.mingw
Executable file
54
Makefile.mingw
Executable file
|
@ -0,0 +1,54 @@
|
|||
|
||||
MAKEFILE = Makefile.mingw
|
||||
|
||||
SUBTARGETS = \
|
||||
sub-src \
|
||||
sub-test \
|
||||
sub-examples \
|
||||
sub-tools \
|
||||
|
||||
all: $(SUBTARGETS)
|
||||
|
||||
sub-src: FORCE
|
||||
cd src && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
sub-test: FORCE
|
||||
cd test && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
sub-examples: FORCE
|
||||
cd examples && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
sub-tools: FORCE
|
||||
cd tools && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
cd src && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
cd test && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
cd examples && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
cd tools && \
|
||||
cd RegressionTest && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
@cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
FORCE:
|
||||
|
26
examples/Makefile.mingw
Executable file
26
examples/Makefile.mingw
Executable file
|
@ -0,0 +1,26 @@
|
|||
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = Factory.o
|
||||
LINKOBJ = 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
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before main-mingw.exe all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
||||
|
||||
Factory.o: Factory.cpp
|
||||
$(CPP) -c Factory.cpp -o Factory.o $(CXXFLAGS)
|
||||
|
29
src/Makefile.mingw
Executable file
29
src/Makefile.mingw
Executable file
|
@ -0,0 +1,29 @@
|
|||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = Singleton.o SmallObj.o
|
||||
LINKOBJ = Singleton.o 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
|
||||
CFLAGS = $(INCS) -g3
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before ../lib/libloki.a all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(LINKOBJ)
|
||||
ar r $(BIN) $(LINKOBJ)
|
||||
ranlib $(BIN)
|
||||
|
||||
Singleton.o: Singleton.cpp
|
||||
$(CPP) -c Singleton.cpp -o Singleton.o $(CXXFLAGS)
|
||||
|
||||
SmallObj.o: SmallObj.cpp
|
||||
$(CPP) -c SmallObj.cpp -o SmallObj.o $(CXXFLAGS)
|
43
test/Makefile.mingw
Executable file
43
test/Makefile.mingw
Executable file
|
@ -0,0 +1,43 @@
|
|||
|
||||
MAKEFILE = Makefile.mingw
|
||||
|
||||
SUBTARGETS = \
|
||||
sub-flex_string \
|
||||
sub-SafeFormat \
|
||||
sub-SmallObj
|
||||
|
||||
all: $(SUBTARGETS)
|
||||
|
||||
sub-flex_string: FORCE
|
||||
cd flex_string && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
sub-SafeFormat: FORCE
|
||||
cd SafeFormat && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
sub-SmallObj: FORCE
|
||||
cd SmallObj && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
cd flex_string && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
cd SafeFormat && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
cd SmallObj && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
FORCE:
|
||||
|
25
test/SafeFormat/Makefile.mingw
Executable file
25
test/SafeFormat/Makefile.mingw
Executable file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = main.o
|
||||
LINKOBJ = main.o
|
||||
CXXINCS = -I./../../include -I./../../include/loki
|
||||
BIN = main-mingw.exe
|
||||
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before main-mingw.exe all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
||||
|
||||
main.o: main.cpp
|
||||
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
|
||||
|
27
test/SmallObj/Makefile.mingw
Executable file
27
test/SmallObj/Makefile.mingw
Executable file
|
@ -0,0 +1,27 @@
|
|||
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = SmallObjBench.o SmallObj.o
|
||||
LINKOBJ = SmallObjBench.o SmallObj.o
|
||||
CXXINCS = -I./../../include -I./../../include/loki
|
||||
BIN = main-mingw.exe
|
||||
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before main-mingw.exe all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
||||
|
||||
SmallObjBench.o: SmallObjBench.cpp
|
||||
$(CPP) -c SmallObjBench.cpp -o SmallObjBench.o $(CXXFLAGS)
|
||||
|
||||
SmallObj.o: ../../src/SmallObj.cpp
|
||||
$(CPP) -c ../../src/SmallObj.cpp -o SmallObj.o $(CXXFLAGS)
|
25
test/flex_string/Makefile.mingw
Executable file
25
test/flex_string/Makefile.mingw
Executable file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = main.o
|
||||
LINKOBJ = main.o
|
||||
CXXINCS = -I./../../include -I./../../include/loki
|
||||
BIN = main-mingw.exe
|
||||
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before main-mingw.exe all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
||||
|
||||
main.o: main.cpp
|
||||
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
|
||||
|
25
tools/Makefile.mingw
Executable file
25
tools/Makefile.mingw
Executable file
|
@ -0,0 +1,25 @@
|
|||
|
||||
MAKEFILE = Makefile.mingw
|
||||
|
||||
SUBTARGETS = \
|
||||
sub-RegressionTest
|
||||
|
||||
|
||||
all: $(SUBTARGETS)
|
||||
|
||||
sub-RegressionTest: FORCE
|
||||
cd RegressionTest && \
|
||||
$(MAKE) -f $(MAKEFILE)
|
||||
@cd ..
|
||||
|
||||
|
||||
clean:
|
||||
cd RegressionTest && \
|
||||
$(MAKE) -f $(MAKEFILE) clean
|
||||
@cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
FORCE:
|
||||
|
25
tools/RegressionTest/Makefile.mingw
Executable file
25
tools/RegressionTest/Makefile.mingw
Executable file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
CPP = g++
|
||||
CC = gcc
|
||||
OBJ = Test.o
|
||||
LINKOBJ = Test.o
|
||||
CXXINCS = -I./../../include -I./../../include/loki
|
||||
BIN = main-mingw.exe
|
||||
CXXFLAGS = $(CXXINCS) -Wall -pedantic -funroll-loops -fexpensive-optimizations -O2
|
||||
RM = rm -f
|
||||
|
||||
.PHONY: all all-before all-after clean clean-custom
|
||||
|
||||
all: all-before main-mingw.exe all-after
|
||||
|
||||
|
||||
clean: clean-custom
|
||||
${RM} $(OBJ) $(BIN)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CPP) $(LINKOBJ) -o main-mingw.exe $(LIBS)
|
||||
|
||||
Test.o: Test.cpp
|
||||
$(CPP) -c Test.cpp -o Test.o $(CXXFLAGS)
|
||||
|
Loading…
Reference in a new issue