Subversion Repositories spk

Rev

Blame | Last modification | View Log | RSS feed

# 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 _CONSOLE -D _CRT_SECURE_NO_WARNINGS -D _SPKDLL 
Release_Preprocessor_Definitions=-D GCC_BUILD -D NDEBUG -D _CONSOLE -D _CRT_SECURE_NO_WARNINGS -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/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 
        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

# Compiles file ../src/spkconvert.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../src/spkconvert.d
../../Windows/Debug/gccspkconvert/../src/spkconvert.o: ../src/spkconvert.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../src/spkconvert.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../src/spkconvert.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../src/spkconvert.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../src/spkconvert.d

# Compiles file ../../HiP/ByteReader.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/ByteReader.d
../../Windows/Debug/gccspkconvert/../../HiP/ByteReader.o: ../../HiP/ByteReader.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/ByteReader.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/ByteReader.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/ByteReader.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/ByteReader.d

# Compiles file ../../HiP/clsFile.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/clsFile.d
../../Windows/Debug/gccspkconvert/../../HiP/clsFile.o: ../../HiP/clsFile.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/clsFile.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/clsFile.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/clsFile.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/clsFile.d

# Compiles file ../../HiP/COM_CRC32.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/COM_CRC32.d
../../Windows/Debug/gccspkconvert/../../HiP/COM_CRC32.o: ../../HiP/COM_CRC32.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/COM_CRC32.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/COM_CRC32.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/COM_CRC32.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/COM_CRC32.d

# Compiles file ../../HiP/HiP.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/HiP.d
../../Windows/Debug/gccspkconvert/../../HiP/HiP.o: ../../HiP/HiP.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/HiP.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/HiP.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/HiP.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/HiP.d

# Compiles file ../../HiP/HipPack.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/HipPack.d
../../Windows/Debug/gccspkconvert/../../HiP/HipPack.o: ../../HiP/HipPack.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/HipPack.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/HipPack.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/HipPack.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/HipPack.d

# Compiles file ../../HiP/LiteralHuffTree.cpp for the Debug configuration...
-include ../../Windows/Debug/gccspkconvert/../../HiP/LiteralHuffTree.d
../../Windows/Debug/gccspkconvert/../../HiP/LiteralHuffTree.o: ../../HiP/LiteralHuffTree.cpp
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -c ../../HiP/LiteralHuffTree.cpp $(Debug_Include_Path) -o ../../Windows/Debug/gccspkconvert/../../HiP/LiteralHuffTree.o
        $(CPP_COMPILER) $(Debug_Preprocessor_Definitions) $(Debug_Compiler_Flags) -MM ../../HiP/LiteralHuffTree.cpp $(Debug_Include_Path) > ../../Windows/Debug/gccspkconvert/../../HiP/LiteralHuffTree.d

# Builds the Release configuration...
.PHONY: Release
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 
        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

# Compiles file ../src/spkconvert.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../src/spkconvert.d
../../Windows/Release/gccspkconvert/../src/spkconvert.o: ../src/spkconvert.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../src/spkconvert.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../src/spkconvert.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../src/spkconvert.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../src/spkconvert.d

# Compiles file ../../HiP/ByteReader.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/ByteReader.d
../../Windows/Release/gccspkconvert/../../HiP/ByteReader.o: ../../HiP/ByteReader.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/ByteReader.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/ByteReader.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/ByteReader.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/ByteReader.d

# Compiles file ../../HiP/clsFile.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/clsFile.d
../../Windows/Release/gccspkconvert/../../HiP/clsFile.o: ../../HiP/clsFile.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/clsFile.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/clsFile.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/clsFile.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/clsFile.d

# Compiles file ../../HiP/COM_CRC32.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/COM_CRC32.d
../../Windows/Release/gccspkconvert/../../HiP/COM_CRC32.o: ../../HiP/COM_CRC32.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/COM_CRC32.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/COM_CRC32.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/COM_CRC32.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/COM_CRC32.d

# Compiles file ../../HiP/HiP.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/HiP.d
../../Windows/Release/gccspkconvert/../../HiP/HiP.o: ../../HiP/HiP.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/HiP.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/HiP.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/HiP.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/HiP.d

# Compiles file ../../HiP/HipPack.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/HipPack.d
../../Windows/Release/gccspkconvert/../../HiP/HipPack.o: ../../HiP/HipPack.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/HipPack.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/HipPack.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/HipPack.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/HipPack.d

# Compiles file ../../HiP/LiteralHuffTree.cpp for the Release configuration...
-include ../../Windows/Release/gccspkconvert/../../HiP/LiteralHuffTree.d
../../Windows/Release/gccspkconvert/../../HiP/LiteralHuffTree.o: ../../HiP/LiteralHuffTree.cpp
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -c ../../HiP/LiteralHuffTree.cpp $(Release_Include_Path) -o ../../Windows/Release/gccspkconvert/../../HiP/LiteralHuffTree.o
        $(CPP_COMPILER) $(Release_Preprocessor_Definitions) $(Release_Compiler_Flags) -MM ../../HiP/LiteralHuffTree.cpp $(Release_Include_Path) > ../../Windows/Release/gccspkconvert/../../HiP/LiteralHuffTree.d

# Creates the intermediate and output folders for each configuration...
.PHONY: create_folders
create_folders:
        mkdir -p ../../Windows/Debug/gccspkconvert/source
        mkdir -p ../../Windows/gccDebug
        mkdir -p ../../Windows/Release/gccspkconvert/source
        mkdir -p ../../Windows/gccRelease

# Cleans intermediate and output files (objects, libraries, executables)...
.PHONY: clean
clean:
        rm -f ../../Windows/Debug/gccspkconvert/*.o
        rm -f ../../Windows/Debug/gccspkconvert/*.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/gccspkconvert/*.o
        rm -f ../../Windows/Release/gccspkconvert/*.d
        rm -f ../../Windows/gccRelease/*.a
        rm -f ../../Windows/gccRelease/*.so
        rm -f ../../Windows/gccRelease/*.dll
        rm -f ../../Windows/gccRelease/*.exe