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 _SPKDLL -D _STRINGCLR
|
|
|
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/gccXspConvert/AssemblyInfo.o ../Windows/Debug/gccXspConvert/stdafx.o ../Windows/Debug/gccXspConvert/XspConvert.o
|
|
|
36 |
g++ ../Windows/Debug/gccXspConvert/AssemblyInfo.o ../Windows/Debug/gccXspConvert/stdafx.o ../Windows/Debug/gccXspConvert/XspConvert.o $(Debug_Library_Path) $(Debug_Libraries) -Wl,-rpath,./ -o ../Windows/gccDebug/XspConvert.exe
|
|
|
37 |
|
|
|
38 |
# Compiles file AssemblyInfo.cpp for the Debug configuration...
|
|
|
39 |
-include ../Windows/Debug/gccXspConvert/AssemblyInfo.d
|
|
|
40 |
../Windows/Debug/gccXspConvert/AssemblyInfo.o: AssemblyInfo.cpp
|
|
|
41 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c AssemblyInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/AssemblyInfo.o
|
|
|
42 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM AssemblyInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/AssemblyInfo.d
|
|
|
43 |
|
|
|
44 |
# Compiles file stdafx.cpp for the Debug configuration...
|
|
|
45 |
-include ../Windows/Debug/gccXspConvert/stdafx.d
|
|
|
46 |
../Windows/Debug/gccXspConvert/stdafx.o: stdafx.cpp
|
|
|
47 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c stdafx.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/stdafx.o
|
|
|
48 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM stdafx.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/stdafx.d
|
|
|
49 |
|
|
|
50 |
# Compiles file XspConvert.cpp for the Debug configuration...
|
|
|
51 |
-include ../Windows/Debug/gccXspConvert/XspConvert.d
|
|
|
52 |
../Windows/Debug/gccXspConvert/XspConvert.o: XspConvert.cpp
|
|
|
53 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c XspConvert.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/XspConvert.o
|
|
|
54 |
$(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM XspConvert.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/XspConvert.d
|
|
|
55 |
|
|
|
56 |
# Builds the Release configuration...
|
|
|
57 |
.PHONY: Release
|
|
|
58 |
Release: create_folders ../Windows/Release/gccXspConvert/AssemblyInfo.o ../Windows/Release/gccXspConvert/stdafx.o ../Windows/Release/gccXspConvert/XspConvert.o
|
|
|
59 |
g++ ../Windows/Release/gccXspConvert/AssemblyInfo.o ../Windows/Release/gccXspConvert/stdafx.o ../Windows/Release/gccXspConvert/XspConvert.o $(Release_Library_Path) $(Release_Libraries) -Wl,-rpath,./ -o ../Windows/gccRelease/XspConvert.exe
|
|
|
60 |
|
|
|
61 |
# Compiles file AssemblyInfo.cpp for the Release configuration...
|
|
|
62 |
-include ../Windows/Release/gccXspConvert/AssemblyInfo.d
|
|
|
63 |
../Windows/Release/gccXspConvert/AssemblyInfo.o: AssemblyInfo.cpp
|
|
|
64 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c AssemblyInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/AssemblyInfo.o
|
|
|
65 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM AssemblyInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/AssemblyInfo.d
|
|
|
66 |
|
|
|
67 |
# Compiles file stdafx.cpp for the Release configuration...
|
|
|
68 |
-include ../Windows/Release/gccXspConvert/stdafx.d
|
|
|
69 |
../Windows/Release/gccXspConvert/stdafx.o: stdafx.cpp
|
|
|
70 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c stdafx.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/stdafx.o
|
|
|
71 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM stdafx.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/stdafx.d
|
|
|
72 |
|
|
|
73 |
# Compiles file XspConvert.cpp for the Release configuration...
|
|
|
74 |
-include ../Windows/Release/gccXspConvert/XspConvert.d
|
|
|
75 |
../Windows/Release/gccXspConvert/XspConvert.o: XspConvert.cpp
|
|
|
76 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c XspConvert.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/XspConvert.o
|
|
|
77 |
$(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM XspConvert.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/XspConvert.d
|
|
|
78 |
|
|
|
79 |
# Creates the intermediate and output folders for each configuration...
|
|
|
80 |
.PHONY: create_folders
|
|
|
81 |
create_folders:
|
|
|
82 |
mkdir -p ../Windows/Debug/gccXspConvert/source
|
|
|
83 |
mkdir -p ../Windows/gccDebug
|
|
|
84 |
mkdir -p ../Windows/Release/gccXspConvert/source
|
|
|
85 |
mkdir -p ../Windows/gccRelease
|
|
|
86 |
|
|
|
87 |
# Cleans intermediate and output files (objects, libraries, executables)...
|
|
|
88 |
.PHONY: clean
|
|
|
89 |
clean:
|
|
|
90 |
rm -f ../Windows/Debug/gccXspConvert/*.o
|
|
|
91 |
rm -f ../Windows/Debug/gccXspConvert/*.d
|
|
|
92 |
rm -f ../Windows/gccDebug/*.a
|
|
|
93 |
rm -f ../Windows/gccDebug/*.so
|
|
|
94 |
rm -f ../Windows/gccDebug/*.dll
|
|
|
95 |
rm -f ../Windows/gccDebug/*.exe
|
|
|
96 |
rm -f ../Windows/Release/gccXspConvert/*.o
|
|
|
97 |
rm -f ../Windows/Release/gccXspConvert/*.d
|
|
|
98 |
rm -f ../Windows/gccRelease/*.a
|
|
|
99 |
rm -f ../Windows/gccRelease/*.so
|
|
|
100 |
rm -f ../Windows/gccRelease/*.dll
|
|
|
101 |
rm -f ../Windows/gccRelease/*.exe
|
|
|
102 |
|