# 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 _STRINGCLR -D _SPKDLL # 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/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 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 # Compiles file src/AssemblyInfo.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.d ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.o: src/AssemblyInfo.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/AssemblyInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/AssemblyInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/AssemblyInfo.d # Compiles file src/SpkExplorer.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.d ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o: src/SpkExplorer.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/SpkExplorer.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/SpkExplorer.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/SpkExplorer.d # Compiles file src/stdafx.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/stdafx.d ../Windows/Debug/gccSpkExplorer/src/stdafx.o: src/stdafx.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/stdafx.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/stdafx.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/stdafx.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/stdafx.d # Compiles file src/Forms/AddDialog.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.d ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o: src/Forms/AddDialog.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/AddDialog.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/AddDialog.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/AddDialog.d # Compiles file src/Forms/ExtractDialog.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.d ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o: src/Forms/ExtractDialog.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/ExtractDialog.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/ExtractDialog.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/ExtractDialog.d # Compiles file src/Forms/FileExists.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.d ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o: src/Forms/FileExists.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/FileExists.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/FileExists.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/FileExists.d # Compiles file src/Forms/PackageInfo.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.d ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o: src/Forms/PackageInfo.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/PackageInfo.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/PackageInfo.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/PackageInfo.d # Compiles file src/Forms/SpkForm.cpp for the Debug configuration... -include ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.d ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o: src/Forms/SpkForm.cpp $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c src/Forms/SpkForm.cpp $(Debug_Include_Path) -o ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.o $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM src/Forms/SpkForm.cpp $(Debug_Include_Path) > ../Windows/Debug/gccSpkExplorer/src/Forms/SpkForm.d # Builds the Release configuration... .PHONY: Release 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 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 # Compiles file src/AssemblyInfo.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.d ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o: src/AssemblyInfo.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/AssemblyInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/AssemblyInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/AssemblyInfo.d # Compiles file src/SpkExplorer.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/SpkExplorer.d ../Windows/Release/gccSpkExplorer/src/SpkExplorer.o: src/SpkExplorer.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/SpkExplorer.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/SpkExplorer.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/SpkExplorer.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/SpkExplorer.d # Compiles file src/stdafx.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/stdafx.d ../Windows/Release/gccSpkExplorer/src/stdafx.o: src/stdafx.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/stdafx.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/stdafx.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/stdafx.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/stdafx.d # Compiles file src/Forms/AddDialog.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.d ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o: src/Forms/AddDialog.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/AddDialog.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/AddDialog.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/AddDialog.d # Compiles file src/Forms/ExtractDialog.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.d ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o: src/Forms/ExtractDialog.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/ExtractDialog.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/ExtractDialog.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/ExtractDialog.d # Compiles file src/Forms/FileExists.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.d ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o: src/Forms/FileExists.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/FileExists.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/FileExists.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/FileExists.d # Compiles file src/Forms/PackageInfo.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.d ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o: src/Forms/PackageInfo.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/PackageInfo.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/PackageInfo.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/PackageInfo.d # Compiles file src/Forms/SpkForm.cpp for the Release configuration... -include ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.d ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o: src/Forms/SpkForm.cpp $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c src/Forms/SpkForm.cpp $(Release_Include_Path) -o ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.o $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM src/Forms/SpkForm.cpp $(Release_Include_Path) > ../Windows/Release/gccSpkExplorer/src/Forms/SpkForm.d # Creates the intermediate and output folders for each configuration... .PHONY: create_folders create_folders: mkdir -p ../Windows/Debug/gccSpkExplorer/source mkdir -p ../Windows/gccDebug mkdir -p ../Windows/Release/gccSpkExplorer/source mkdir -p ../Windows/gccRelease # Cleans intermediate and output files (objects, libraries, executables)... .PHONY: clean clean: rm -f ../Windows/Debug/gccSpkExplorer/*.o rm -f ../Windows/Debug/gccSpkExplorer/*.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/gccSpkExplorer/*.o rm -f ../Windows/Release/gccSpkExplorer/*.d rm -f ../Windows/gccRelease/*.a rm -f ../Windows/gccRelease/*.so rm -f ../Windows/gccRelease/*.dll rm -f ../Windows/gccRelease/*.exe