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