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=-I"../libspk/src" 
7
Release_Include_Path=-I"../libspk/src" 
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 -D _CRT_SECURE_NO_WARNINGS -D _SPKDLL -D _STRINGCLR 
19
Release_Preprocessor_Definitions=-D GCC_BUILD -D NDEBUG -D _CRT_SECURE_NO_WARNINGS -D _STRINGCLR -D _SPKDLL 
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/gccSpkExplorer/src/AssemblyInfo.o ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o ../Windows/Debug/gccSpkExplorer/src/stdafx.o ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o 
36
	g++ ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.o ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o ../Windows/Debug/gccSpkExplorer/src/stdafx.o ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o  $(Debug_Library_Path) $(Debug_Libraries) -Wl,-rpath,./ -o ../Windows/gccDebug/SpkExplorer.exe
37
 
38
# Compiles file src/AssemblyInfo.cpp for the Debug configuration...
39
-include ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.d
40
../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.o: src/AssemblyInfo.cpp
41
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/AssemblyInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.o
42
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/AssemblyInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.d
43
 
44
# Compiles file src/SpkExplorer.cpp for the Debug configuration...
45
-include ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.d
46
../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o: src/SpkExplorer.cpp
47
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/SpkExplorer.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o
48
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/SpkExplorer.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.d
49
 
50
# Compiles file src/stdafx.cpp for the Debug configuration...
51
-include ../Windows/Debug/gccSpkExplorer/src/stdafx.d
52
../Windows/Debug/gccSpkExplorer/src/stdafx.o: src/stdafx.cpp
53
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/stdafx.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/stdafx.o
54
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/stdafx.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/stdafx.d
55
 
56
# Compiles file src/Forms/AddDialog.cpp for the Debug configuration...
57
-include ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.d
58
../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o: src/Forms/AddDialog.cpp
59
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/AddDialog.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o
60
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/AddDialog.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.d
61
 
62
# Compiles file src/Forms/ExtractDialog.cpp for the Debug configuration...
63
-include ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.d
64
../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o: src/Forms/ExtractDialog.cpp
65
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/ExtractDialog.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o
66
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/ExtractDialog.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.d
67
 
68
# Compiles file src/Forms/FileExists.cpp for the Debug configuration...
69
-include ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.d
70
../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o: src/Forms/FileExists.cpp
71
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/FileExists.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o
72
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/FileExists.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.d
73
 
74
# Compiles file src/Forms/PackageInfo.cpp for the Debug configuration...
75
-include ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.d
76
../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o: src/Forms/PackageInfo.cpp
77
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/PackageInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o
78
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/PackageInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.d
79
 
80
# Compiles file src/Forms/SpkForm.cpp for the Debug configuration...
81
-include ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.d
82
../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o: src/Forms/SpkForm.cpp
83
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/SpkForm.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o
84
	$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/SpkForm.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.d
85
 
86
# Builds the Release configuration...
87
.PHONY: Release
88
Release: create_folders ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o ../Windows/Release/gccSpkExplorer/src/SpkExplorer.o ../Windows/Release/gccSpkExplorer/src/stdafx.o ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o 
89
	g++ ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o ../Windows/Release/gccSpkExplorer/src/SpkExplorer.o ../Windows/Release/gccSpkExplorer/src/stdafx.o ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o  $(Release_Library_Path) $(Release_Libraries) -Wl,-rpath,./ -o ../Windows/gccRelease/SpkExplorer.exe
90
 
91
# Compiles file src/AssemblyInfo.cpp for the Release configuration...
92
-include ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.d
93
../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o: src/AssemblyInfo.cpp
94
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/AssemblyInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o
95
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/AssemblyInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.d
96
 
97
# Compiles file src/SpkExplorer.cpp for the Release configuration...
98
-include ../Windows/Release/gccSpkExplorer/src/SpkExplorer.d
99
../Windows/Release/gccSpkExplorer/src/SpkExplorer.o: src/SpkExplorer.cpp
100
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/SpkExplorer.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/SpkExplorer.o
101
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/SpkExplorer.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/SpkExplorer.d
102
 
103
# Compiles file src/stdafx.cpp for the Release configuration...
104
-include ../Windows/Release/gccSpkExplorer/src/stdafx.d
105
../Windows/Release/gccSpkExplorer/src/stdafx.o: src/stdafx.cpp
106
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/stdafx.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/stdafx.o
107
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/stdafx.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/stdafx.d
108
 
109
# Compiles file src/Forms/AddDialog.cpp for the Release configuration...
110
-include ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.d
111
../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o: src/Forms/AddDialog.cpp
112
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/AddDialog.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o
113
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/AddDialog.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.d
114
 
115
# Compiles file src/Forms/ExtractDialog.cpp for the Release configuration...
116
-include ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.d
117
../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o: src/Forms/ExtractDialog.cpp
118
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/ExtractDialog.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o
119
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/ExtractDialog.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.d
120
 
121
# Compiles file src/Forms/FileExists.cpp for the Release configuration...
122
-include ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.d
123
../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o: src/Forms/FileExists.cpp
124
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/FileExists.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o
125
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/FileExists.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.d
126
 
127
# Compiles file src/Forms/PackageInfo.cpp for the Release configuration...
128
-include ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.d
129
../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o: src/Forms/PackageInfo.cpp
130
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/PackageInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o
131
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/PackageInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.d
132
 
133
# Compiles file src/Forms/SpkForm.cpp for the Release configuration...
134
-include ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.d
135
../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o: src/Forms/SpkForm.cpp
136
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/SpkForm.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o
137
	$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/SpkForm.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.d
138
 
139
# Creates the intermediate and output folders for each configuration...
140
.PHONY: create_folders
141
create_folders:
142
	mkdir -p ../Windows/Debug/gccSpkExplorer/source
143
	mkdir -p ../Windows/gccDebug
144
	mkdir -p ../Windows/Release/gccSpkExplorer/source
145
	mkdir -p ../Windows/gccRelease
146
 
147
# Cleans intermediate and output files (objects, libraries, executables)...
148
.PHONY: clean
149
clean:
150
	rm -f ../Windows/Debug/gccSpkExplorer/*.o
151
	rm -f ../Windows/Debug/gccSpkExplorer/*.d
152
	rm -f ../Windows/gccDebug/*.a
153
	rm -f ../Windows/gccDebug/*.so
154
	rm -f ../Windows/gccDebug/*.dll
155
	rm -f ../Windows/gccDebug/*.exe
156
	rm -f ../Windows/Release/gccSpkExplorer/*.o
157
	rm -f ../Windows/Release/gccSpkExplorer/*.d
158
	rm -f ../Windows/gccRelease/*.a
159
	rm -f ../Windows/gccRelease/*.so
160
	rm -f ../Windows/gccRelease/*.dll
161
	rm -f ../Windows/gccRelease/*.exe
162