diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:29:28 +0200 |
commit | 75c07011b7c4d06acd7b45dabdcd60ab9d80f385 (patch) | |
tree | 8853c3978dd152ef377e652239448b1352320206 /RealtimeSync/makefile | |
parent | 5.22 (diff) | |
download | FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.gz FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.tar.bz2 FreeFileSync-75c07011b7c4d06acd7b45dabdcd60ab9d80f385.zip |
5.23
Diffstat (limited to 'RealtimeSync/makefile')
-rw-r--r-- | RealtimeSync/makefile | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/RealtimeSync/makefile b/RealtimeSync/makefile deleted file mode 100644 index 8098d586..00000000 --- a/RealtimeSync/makefile +++ /dev/null @@ -1,101 +0,0 @@ -BLAH_BLUBB_123= -#for some buggy reason the first row in the make file has no effect on Suse Linux! => make sure there's no important command -APPNAME = RealtimeSync -prefix = /usr -BINDIR = $(DESTDIR)$(prefix)/bin - -CXXFLAGS = -std=c++11 -Wall -pipe -O3 -DNDEBUG -DwxUSE_UNICODE -DWXINTL_NO_GETTEXT_MACRO -I.. -include "zen/i18n.h" -include "zen/warn_static.h" -LINKFLAGS = - -#distinguish Linux/Mac builds -OPERATING_SYSTEM_NAME := $(shell uname) - -#################### Linux ############################ -ifeq ($(OPERATING_SYSTEM_NAME), Linux) -COMPILER_BIN=g++ -pthread -CXXFLAGS += -DZEN_LINUX - -#Gtk - support "no button border" -CXXFLAGS += `pkg-config --cflags gtk+-2.0` -LINKFLAGS += `pkg-config --libs gtk+-2.0` - -ifeq ($(BUILD),Launchpad) -#default build/Launchpad -CXXFLAGS += `wx-config --cxxflags --debug=no` -LINKFLAGS += `wx-config --libs --debug=no` -lboost_thread -lboost_system -lz -else -#static wxWidgets and boost library linkage for precompiled release -WX_CONFIG_BIN =$(HOME)/Desktop/wxWidgets-2.9.5/lib/release/bin/wx-config -CXXFLAGS += -I$(HOME)/Desktop/boost_1_54_0 -BOOST_LIB_DIR =$(HOME)/Desktop/boost_1_54_0/stage/lib - -CXXFLAGS += `$(WX_CONFIG_BIN) --cxxflags --debug=no --static=yes` -LINKFLAGS += `$(WX_CONFIG_BIN) --libs --debug=no --static=yes` $(BOOST_LIB_DIR)/libboost_thread.a $(BOOST_LIB_DIR)/libboost_system.a -lX11 -endif - -endif -#################### OS X ############################ -ifeq ($(OPERATING_SYSTEM_NAME), Darwin) -COMPILER_BIN=clang++ -stdlib=libc++ -CXXFLAGS += -DZEN_MAC - -WX_CONFIG_BIN =$(HOME)/Desktop/wxWidgets-2.9.5/lib/release/bin/wx-config -CXXFLAGS += -I$(HOME)/Desktop/boost_1_54_0 -BOOST_LIB_DIR =$(HOME)/Desktop/boost_1_54_0/stage/lib -MACOS_SDK =-mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -#-Wl,-Bstatic not supported on OSX! - -# link wxWidgets and boost statically -> check dependencies with: otool -L RealtimeSync -CXXFLAGS += $(MACOS_SDK) `$(WX_CONFIG_BIN) --cxxflags --debug=no --static=yes` -LINKFLAGS += $(MACOS_SDK) `$(WX_CONFIG_BIN) --libs --debug=no --static=yes` $(BOOST_LIB_DIR)/libboost_thread.a $(BOOST_LIB_DIR)/libboost_system.a - -endif -###################################################### - -CPP_LIST= #internal list of all *.cpp files needed for compilation -CPP_LIST+=application.cpp -CPP_LIST+=gui_generated.cpp -CPP_LIST+=main_dlg.cpp -CPP_LIST+=tray_menu.cpp -CPP_LIST+=monitor.cpp -CPP_LIST+=xml_ffs.cpp -CPP_LIST+=xml_proc.cpp -CPP_LIST+=../structures.cpp -CPP_LIST+=../ui/dir_name.cpp -CPP_LIST+=../ui/folder_history_box.cpp -CPP_LIST+=../lib/localization.cpp -CPP_LIST+=../lib/process_xml.cpp -CPP_LIST+=../lib/resolve_path.cpp -CPP_LIST+=../lib/xml_base.cpp -CPP_LIST+=../lib/ffs_paths.cpp -CPP_LIST+=../zen/dir_watcher.cpp -CPP_LIST+=../zen/file_handling.cpp -CPP_LIST+=../zen/file_io.cpp -CPP_LIST+=../zen/file_traverser.cpp -CPP_LIST+=../zen/zstring.cpp -CPP_LIST+=../zen/format_unit.cpp -CPP_LIST+=../wx+/image_tools.cpp -CPP_LIST+=../wx+/image_resources.cpp -CPP_LIST+=../wx+/popup_dlg.cpp -CPP_LIST+=../wx+/popup_dlg_generated.cpp - -#list of all *.o files (we need the "RTS" subdirectory to handle "../*.cpp" files -OBJECT_LIST=$(CPP_LIST:%.cpp=../OBJ/RTS_GCC_Make_Release/RTS/%.o) - -all: RealtimeSync - -../OBJ/RTS_GCC_Make_Release/RTS/%.o : %.cpp - mkdir -p $(dir $@) - $(COMPILER_BIN) $(CXXFLAGS) -c $< -o $@ - -RealtimeSync: $(OBJECT_LIST) - $(COMPILER_BIN) -o ../BUILD/$(APPNAME) $(OBJECT_LIST) $(LINKFLAGS) - -clean: - rm -rf ../OBJ/RTS_GCC_Make_Release - rm -f ../BUILD/$(APPNAME) - rm -f ../wx+/pch.h.gch - -install: - mkdir -p $(BINDIR) - cp ../BUILD/$(APPNAME) $(BINDIR) |