summaryrefslogtreecommitdiff
path: root/RealtimeSync/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/makefile')
-rw-r--r--RealtimeSync/makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/RealtimeSync/makefile b/RealtimeSync/makefile
index cf7aca36..e60ca3bf 100644
--- a/RealtimeSync/makefile
+++ b/RealtimeSync/makefile
@@ -1,10 +1,16 @@
APPNAME = RealtimeSync
-
prefix = /usr
BINDIR = $(DESTDIR)$(prefix)/bin
-FFS_CPPFLAGS=-Wall -pipe -DNDEBUG -DwxUSE_UNICODE `wx-config --cxxflags --debug=no --unicode=yes --static=yes` `pkg-config --cflags gtk+-2.0` -DFFS_LINUX -DTIXML_USE_STL -O3 -pthread
-LINKFLAGS=`wx-config --libs --debug=no --unicode=yes --static=yes` /usr/local/lib/libboost_thread.a -O3 -pthread
+#default build
+FFS_CPPFLAGS = -Wall -pipe -DNDEBUG -DwxUSE_UNICODE `wx-config --cxxflags --debug=no --unicode=yes` `pkg-config --cflags gtk+-2.0` -DFFS_LINUX -DTIXML_USE_STL -O3 -pthread
+LINKFLAGS = `wx-config --libs --debug=no --unicode=yes` -lboost_thread -O3 -pthread
+
+#static build used for precompiled release
+ifeq ($(BUILD),static)
+FFS_CPPFLAGS = -Wall -pipe -DNDEBUG -DwxUSE_UNICODE `wx-config --cxxflags --debug=no --unicode=yes --static=yes` `pkg-config --cflags gtk+-2.0` -DFFS_LINUX -DTIXML_USE_STL -O3 -pthread
+LINKFLAGS = `wx-config --libs --debug=no --unicode=yes --static=yes` /usr/local/lib/libboost_thread.a -O3 -pthread
+endif
FILE_LIST= #internal list of all *.cpp files needed for compilation
FILE_LIST+=application.cpp
@@ -46,9 +52,7 @@ 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/remove_BOM.cpp
g++ -o OBJ/removeBOM ../tools/remove_BOM.cpp
./OBJ/removeBOM ../shared/localization.cpp ../shared/localization_no_BOM.cpp
@@ -56,7 +60,7 @@ removeBOM: ../tools/remove_BOM.cpp
#strip path information
g++ $(FFS_CPPFLAGS) -c $< -o OBJ/$(subst .cpp,.o,$(notdir $<))
-RealtimeSync: init removeBOM $(DEP_LIST)
+RealtimeSync: init $(DEP_LIST)
#respect linker order: wxWidgets libraries last
g++ -o ../BUILD/$(APPNAME) $(OBJECT_LIST) $(LINKFLAGS)
bgstack15