diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:17 +0200 |
commit | fd0853d2623dd278b08288331ed42e3be59252fb (patch) | |
tree | a7645daeaef8bdbed064faf4eb88e72cee58726c /RealtimeSync/makefile | |
parent | 2.1 (diff) | |
download | FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2 FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip |
2.2
Diffstat (limited to 'RealtimeSync/makefile')
-rw-r--r-- | RealtimeSync/makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/RealtimeSync/makefile b/RealtimeSync/makefile new file mode 100644 index 00000000..02303ba9 --- /dev/null +++ b/RealtimeSync/makefile @@ -0,0 +1,57 @@ +CPPFLAGS=-Wall -pipe -DNDEBUG `wx-config --cppflags` `pkg-config --cflags gtk+-2.0` -DFFS_LINUX -DTIXML_USE_STL -DZSTRING_CHAR -O3 -pthread -c +LINKFLAGS=`wx-config --libs` -O3 -pthread + +FILE_LIST= #internal list of all *.cpp files needed for compilation +FILE_LIST+=application.cpp +FILE_LIST+=functions.cpp +FILE_LIST+=guiGenerated.cpp +FILE_LIST+=mainDialog.cpp +FILE_LIST+=resources.cpp +FILE_LIST+=trayMenu.cpp +FILE_LIST+=watcher.cpp +FILE_LIST+=xmlProcessing.cpp +FILE_LIST+=xmlFreeFileSync.cpp +FILE_LIST+=../library/processXml.cpp +FILE_LIST+=../structures.cpp +FILE_LIST+=../shared/inotify/inotify-cxx.cpp +FILE_LIST+=../shared/tinyxml/tinyxml.cpp +FILE_LIST+=../shared/tinyxml/tinystr.cpp +FILE_LIST+=../shared/tinyxml/tinyxmlerror.cpp +FILE_LIST+=../shared/tinyxml/tinyxmlparser.cpp +FILE_LIST+=../shared/globalFunctions.cpp +FILE_LIST+=../shared/systemFunctions.cpp +FILE_LIST+=../shared/dragAndDrop.cpp +FILE_LIST+=../shared/zstring.cpp +FILE_LIST+=../shared/xmlBase.cpp +FILE_LIST+=../shared/customButton.cpp +FILE_LIST+=../shared/fileHandling.cpp +FILE_LIST+=../shared/fileTraverser.cpp +FILE_LIST+=../shared/localization.cpp +FILE_LIST+=../shared/standardPaths.cpp + +#list of all *.o files +OBJECT_LIST=$(foreach file, $(FILE_LIST), OBJ/$(subst .cpp,.o,$(notdir $(file)))) + +#build list of all dependencies +DEP_LIST=$(foreach file, $(FILE_LIST), $(subst .cpp,.dep,$(file))) + + +all: RealtimeSync + +init: + if [ ! -d OBJ ]; then mkdir OBJ; fi + +#remove byte ordering mark: needed by Visual C++ but an error with GCC +removeBOM: ../tools/removeBOM.cpp + g++ -o removeBOM ../tools/removeBOM.cpp + ./removeBOM ../shared/localization.cpp + +%.dep : %.cpp + #strip path information + g++ $(CPPFLAGS) $< -o OBJ/$(subst .cpp,.o,$(notdir $<)) + +RealtimeSync: init removeBOM $(DEP_LIST) + g++ $(LINKFLAGS) -o ../BUILD/RealtimeSync $(OBJECT_LIST) + +clean: + find OBJ -type f -exec rm {} \; |