Subversion Repositories spk

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
97 cycrow 1
# Compiler flags...
2
CPP_COMPILER = g++
3
C_COMPILER = gcc
4
 
5
# Include paths...
6
Debug_Include_Path=
7
Release_Include_Path=
8
 
9
# Library paths...
10
Debug_Library_Path=
11
Release_Library_Path=
12
 
13
# Additional libraries...
14
Debug_Libraries=-Wl,--start-group -l$(NoInherit)  -Wl,--end-group
15
Release_Libraries=-Wl,--start-group -l$(NoInherit)  -Wl,--end-group
16
 
17
# Preprocessor definitions...
18
Debug_Preprocessor_Definitions=-D GCC_BUILD -D _DEBUG 
19
Release_Preprocessor_Definitions=-D GCC_BUILD -D NDEBUG 
20
 
21
# Implictly linked object files...
22
Debug_Implicitly_Linked_Objects=
23
Release_Implicitly_Linked_Objects=
24
 
25
# Compiler flags...
26
Debug_Compiler_Flags=-O0 -g 
27
Release_Compiler_Flags=
28
 
29
# Builds all configurations for this project...
30
.PHONY: build_all_configurations
31
build_all_configurations: Debug Release 
32
 
33
# Builds the Debug configuration...
34
.PHONY: Debug
35
Debug: create_folders ../Windows/Debug/gccAutoUpdate/src/AutoUpdater.o ../Windows/Debug/gccAutoUpdate/src/stdafx.o 
36
	g++ ../Windows/Debug/gccAutoUpdate/src/AutoUpdater.o ../Windows/Debug/gccAutoUpdate/src/stdafx.o  $(Debug_Library_Path) $(Debug_Libraries) -Wl,-rpath,./ -o ../Windows/gccDebug/AutoUpdater.exe
37
 
38
# Compiles file src/AutoUpdater.cpp for the Debug configuration...
39
-include ../Windows/Debug/gccAutoUpdate/src/AutoUpdater.d
40
../Windows/Debug/gccAutoUpdate/src/AutoUpdater.o: src/AutoUpdater.cpp
41
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/AutoUpdater.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccAutoUpdate/src/AutoUpdater.o
42
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/AutoUpdater.cpp $(Debug_Include_Path) > ../Windows/Debug/gccAutoUpdate/src/AutoUpdater.d
43
 
44
# Compiles file src/stdafx.cpp for the Debug configuration...
45
-include ../Windows/Debug/gccAutoUpdate/src/stdafx.d
46
../Windows/Debug/gccAutoUpdate/src/stdafx.o: src/stdafx.cpp
47
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/stdafx.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccAutoUpdate/src/stdafx.o
48
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/stdafx.cpp $(Debug_Include_Path) > ../Windows/Debug/gccAutoUpdate/src/stdafx.d
49
 
50
# Builds the Release configuration...
51
.PHONY: Release
52
Release: create_folders ../Windows/Release/gccAutoUpdater/src/AutoUpdater.o ../Windows/Release/gccAutoUpdater/src/stdafx.o 
53
	g++ ../Windows/Release/gccAutoUpdater/src/AutoUpdater.o ../Windows/Release/gccAutoUpdater/src/stdafx.o  $(Release_Library_Path) $(Release_Libraries) -Wl,-rpath,./ -o ../Windows/gccRelease/AutoUpdater.exe
54
 
55
# Compiles file src/AutoUpdater.cpp for the Release configuration...
56
-include ../Windows/Release/gccAutoUpdater/src/AutoUpdater.d
57
../Windows/Release/gccAutoUpdater/src/AutoUpdater.o: src/AutoUpdater.cpp
58
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/AutoUpdater.cpp $(Release_Include_Path) -o ../Windows/Release/gccAutoUpdater/src/AutoUpdater.o
59
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/AutoUpdater.cpp $(Release_Include_Path) > ../Windows/Release/gccAutoUpdater/src/AutoUpdater.d
60
 
61
# Compiles file src/stdafx.cpp for the Release configuration...
62
-include ../Windows/Release/gccAutoUpdater/src/stdafx.d
63
../Windows/Release/gccAutoUpdater/src/stdafx.o: src/stdafx.cpp
64
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/stdafx.cpp $(Release_Include_Path) -o ../Windows/Release/gccAutoUpdater/src/stdafx.o
65
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/stdafx.cpp $(Release_Include_Path) > ../Windows/Release/gccAutoUpdater/src/stdafx.d
66
 
67
# Creates the intermediate and output folders for each configuration...
68
.PHONY: create_folders
69
create_folders:
70
	mkdir -p ../Windows/Debug/gccAutoUpdate/source
71
	mkdir -p ../Windows/gccDebug
72
	mkdir -p ../Windows/Release/gccAutoUpdater/source
73
	mkdir -p ../Windows/gccRelease
74
 
75
# Cleans intermediate and output files (objects, libraries, executables)...
76
.PHONY: clean
77
clean:
78
	rm -f ../Windows/Debug/gccAutoUpdate/*.o
79
	rm -f ../Windows/Debug/gccAutoUpdate/*.d
80
	rm -f ../Windows/gccDebug/*.a
81
	rm -f ../Windows/gccDebug/*.so
82
	rm -f ../Windows/gccDebug/*.dll
83
	rm -f ../Windows/gccDebug/*.exe
84
	rm -f ../Windows/Release/gccAutoUpdater/*.o
85
	rm -f ../Windows/Release/gccAutoUpdater/*.d
86
	rm -f ../Windows/gccRelease/*.a
87
	rm -f ../Windows/gccRelease/*.so
88
	rm -f ../Windows/gccRelease/*.dll
89
	rm -f ../Windows/gccRelease/*.exe
90