# Compiler flags... CPP_COMPILER = g++ C_COMPILER = gcc # Include paths... Debug_Include_Path=-I"../libspk/src" Release_Include_Path=-I"../libspk/src" # Library paths... Debug_Library_Path= Release_Library_Path= # Additional libraries... Debug_Libraries=-Wl,--start-group -l$(NOINHERIT) -Wl,--end-group Release_Libraries=-Wl,--start-group -l$(NOINHERIT) -Wl,--end-group # Preprocessor definitions... Debug_Preprocessor_Definitions=-D GCC_BUILD -D _DEBUG -D _CRT_SECURE_NO_WARNINGS -D _SPKDLL -D _STRINGCLR Release_Preprocessor_Definitions=-D GCC_BUILD -D NDEBUG -D _CRT_SECURE_NO_WARNINGS -D _SPKDLL -D _STRINGCLR # Implictly linked object files... Debug_Implicitly_Linked_Objects= Release_Implicitly_Linked_Objects= # Compiler flags... Debug_Compiler_Flags=-O0 -g Release_Compiler_Flags= # Builds all configurations for this project... .PHONY: build_all_configurations build_all_configurations: Debug Release # Builds the Debug configuration... .PHONY: Debug Debug: create_folders ../Windows/Debug/gccXspConvert/AssemblyInfo.o ../Windows/Debug/gccXspConvert/stdafx.o ../Windows/Debug/gccXspConvert/XspConvert.o 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 # Compiles file AssemblyInfo.cpp for the Debug configuration... -include ../Windows/Debug/gccXspConvert/AssemblyInfo.d ../Windows/Debug/gccXspConvert/AssemblyInfo.o: AssemblyInfo.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c AssemblyInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/AssemblyInfo.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM AssemblyInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/AssemblyInfo.d # Compiles file stdafx.cpp for the Debug configuration... -include ../Windows/Debug/gccXspConvert/stdafx.d ../Windows/Debug/gccXspConvert/stdafx.o: stdafx.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c stdafx.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/stdafx.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM stdafx.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/stdafx.d # Compiles file XspConvert.cpp for the Debug configuration... -include ../Windows/Debug/gccXspConvert/XspConvert.d ../Windows/Debug/gccXspConvert/XspConvert.o: XspConvert.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c XspConvert.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccXspConvert/XspConvert.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM XspConvert.cpp $(Debug_Include_Path) > ../Windows/Debug/gccXspConvert/XspConvert.d # Builds the Release configuration... .PHONY: Release Release: create_folders ../Windows/Release/gccXspConvert/AssemblyInfo.o ../Windows/Release/gccXspConvert/stdafx.o ../Windows/Release/gccXspConvert/XspConvert.o 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 # Compiles file AssemblyInfo.cpp for the Release configuration... -include ../Windows/Release/gccXspConvert/AssemblyInfo.d ../Windows/Release/gccXspConvert/AssemblyInfo.o: AssemblyInfo.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c AssemblyInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/AssemblyInfo.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM AssemblyInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/AssemblyInfo.d # Compiles file stdafx.cpp for the Release configuration... -include ../Windows/Release/gccXspConvert/stdafx.d ../Windows/Release/gccXspConvert/stdafx.o: stdafx.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c stdafx.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/stdafx.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM stdafx.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/stdafx.d # Compiles file XspConvert.cpp for the Release configuration... -include ../Windows/Release/gccXspConvert/XspConvert.d ../Windows/Release/gccXspConvert/XspConvert.o: XspConvert.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c XspConvert.cpp $(Release_Include_Path) -o ../Windows/Release/gccXspConvert/XspConvert.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM XspConvert.cpp $(Release_Include_Path) > ../Windows/Release/gccXspConvert/XspConvert.d # Creates the intermediate and output folders for each configuration... .PHONY: create_folders create_folders: mkdir -p ../Windows/Debug/gccXspConvert/source mkdir -p ../Windows/gccDebug mkdir -p ../Windows/Release/gccXspConvert/source mkdir -p ../Windows/gccRelease # Cleans intermediate and output files (objects, libraries, executables)... .PHONY: clean clean: rm -f ../Windows/Debug/gccXspConvert/*.o rm -f ../Windows/Debug/gccXspConvert/*.d rm -f ../Windows/gccDebug/*.a rm -f ../Windows/gccDebug/*.so rm -f ../Windows/gccDebug/*.dll rm -f ../Windows/gccDebug/*.exe rm -f ../Windows/Release/gccXspConvert/*.o rm -f ../Windows/Release/gccXspConvert/*.d rm -f ../Windows/gccRelease/*.a rm -f ../Windows/gccRelease/*.so rm -f ../Windows/gccRelease/*.dll rm -f ../Windows/gccRelease/*.exe