blob: 59e4a25e3f3798cc6d02e32f8ca2ce891d07e1fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
APPNAME = RealtimeSync
prefix = /usr
BINDIR = $(DESTDIR)$(prefix)/bin
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 -DZSTRING_CHAR -O3 -pthread -c -I../shared/boost_1_x
LINKFLAGS=`wx-config --libs --debug=no --unicode=yes` -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
FILE_LIST+=../shared/helpProvider.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++ $(FFS_CPPFLAGS) $< -o OBJ/$(subst .cpp,.o,$(notdir $<))
RealtimeSync: init removeBOM $(DEP_LIST)
g++ $(LINKFLAGS) -o ../BUILD/$(APPNAME) $(OBJECT_LIST)
clean:
rm -rf OBJ
rm -f ../BUILD/$(APPNAME)
rm -f removeBOM
install:
if [ ! -d $(BINDIR) ] ; then mkdir -p $(BINDIR); fi
cp ../BUILD/$(APPNAME) $(BINDIR)
|