source: subversion/applications/editors/osm-editor/qt3/Makefile @ 16590

Last change on this file since 16590 was 1158, checked in by nick, 13 years ago

moved current version to qt3 directory in preparation for qt4

File size: 3.6 KB
Line 
1DESTDIR =
2prefix  = /usr/local
3bindir  = $(prefix)/bin
4
5CXX     = c++
6RM      = rm -f
7INSTALL = install -m 755
8
9TESTGPSOBJ = testgps.o GPSDevice.o
10
11OBJ2 = osmeditor2.o MainWindow2.o GPSDevice2.o LandsatManager2.o \
12          Components2.o Node.o Segment.o WaypointDialogue.o WayDialogue.o \
13          RouteMetaDataHandler.o LoginDialogue.o moc_MainWindow2.o \
14          SRTMConGen.o SRTMDataGrid.o SRTMGeneral.o llgr.o GPXParser2.o \
15          OSMParser2.o qmdcodec.o HTTPHandler.o moc_HTTPHandler.o Way.o \
16          NodeHandler.o moc_NodeHandler.o moc_LandsatManager2.o SegSplitter.o \
17          BatchUploader.o moc_SegSplitter.o moc_BatchUploader.o moc_WayDialogue.o \
18          NodeMetaDataHandler.o
19JEEPSSRC = jeeps-gpsbabel-1.2.7
20LIBS = -ljeeps
21LIBPATH = -L$(JEEPSSRC) -L/usr/local/lib
22
23SRTMOBJ = srtm.o Canvas.o SRTMGeneral.o SRTMDataGrid.o SRTMConGen.o llgr.o
24
25# Comment out if you want USB support in jeeps.
26USB='USBOPT=-DNO_USB'
27
28# Configure Qt paths
29# Hints if problems: try interchanging -lqt-mt and -lqt.
30
31# Mandrake 10.1
32QTINCPATH = /usr/lib/qt3/include
33QTLIB = -lqt-mt
34QTLIBPATH = -L/usr/lib/qt3/lib
35MOC=/usr/lib/qt3/bin/moc
36
37# Fedora Core 5
38#QTINCPATH = /usr/lib/qt-3.3/include
39#QTLIB = -lqt-mt
40#QTLIBPATH = -L/usr/lib/qt-3.3/lib
41#MOC=/usr/lib/qt-3.3/bin/moc
42
43# Debian sarge and testing
44#QTINCPATH = /usr/include/qt3
45#QTLIB = -lqt
46#QTLIBPATH = -L/usr/lib
47#MOC=moc
48
49# Gentoo
50#QTINCPATH = /usr/qt/3/include
51#QTLIB = -lqt
52#QTLIBPATH = -L/usr/qt/3/lib
53#MOC=/usr/qt/3/bin/moc
54
55#set OPTS to -DXMLRPC to compile in XMLRPC stuff
56#OPTS       = -DXMLRPC
57#WARNFLAGS  = -W -Wall
58WARNFLAGS = -w
59DEBUGFLAGS = -g
60CXXFLAGS = $(WARNFLAGS) $(DEBUGFLAGS) -I$(QTINCPATH) \
61        -I/usr/local/include $(OPTS) -I$(JEEPSSRC)
62
63
64# Uncomment for XMLRPC. You need xmlrpc-c for XMLRPC support.
65#XMLRPCLIBS = `xmlrpc-c-config c++ libwww-client --libs`
66
67moc_%.cpp : %.h
68        ${MOC} $< -o $@
69
70osmeditor2: $(OBJ2)
71        $(MAKE) $(USB) -C $(JEEPSSRC)
72        $(CXX) -o osmeditor2 $(OBJ2) $(LIBPATH) $(QTLIBPATH) $(LIBS) $(QTLIB) $(XMLRPCLIBS)
73
74install: osmeditor2
75        $(INSTALL) -d $(DESTDIR)$(bindir)
76        $(INSTALL) osmeditor $(DESTDIR)$(bindir)/osmeditor
77
78srtm: $(SRTMOBJ)
79        $(CXX) -o srtm $(SRTMOBJ) -lgd -lpng -lz -ljpeg -lfreetype -lm
80
81testgps: $(TESTGPSOBJ)
82        $(CXX) -o testgps $(TESTGPSOBJ) $(LIBS)
83
84testparser : $(PARSEROBJ)
85        $(CXX) -o testparser $(PARSEROBJ) $(QTLIBPATH) $(LIBS) $(QTLIB)
86
87clean:
88        $(RM) *.o *~
89
90distclean: clean
91        $(RM) osmeditor
92
93MainWindow2.o : WaypointDialogue.h Components2.h \
94        functions.h MainWindow2.h RouteMetaDataHandler.h LoginDialogue.h\
95        Map.h LandsatManager2.h Node.h Segment.h SRTMConGen.h SRTMDataGrid.h\
96        SRTMGeneral.h OSMParser2.h GPSDevice2.h Way.h WayDialogue.h NodeHandler.h\
97        HTTPHandler.h SegSplitter.h BatchUploader.h
98Components2.o : Components2.h Node.h Segment.h functions.h
99Polygon.o : Polygon.h functions.h
100WaypointDialogue.o : WaypointDialogue.h
101WayDialogue.o : WayDialogue.h
102OSMParser2.o: OSMParser2.h Components2.h
103GPXParser2.o: GPXParser2.h Components2.h
104GPSDevice2.o: Components2.h
105RouteMetaDataHandler.o: RouteMetaDataHandler.h
106LoginDialogue.o : LoginDialogue.h
107Polygon.o : Polygon.h
108RemoveExcessDialogue.o : RemoveExcessDialogue.h
109srtm.o : srtm.cpp Canvas.h
110Canvas.o : Canvas.cpp Map.h Canvas.h
111SRTMGeneral.o : SRTMGeneral.h Map.h EarthPoint.h
112SRTMDataGrid.o : SRTMDataGrid.h Map.h EarthPoint.h
113SRTMConGen.o : SRTMConGen.h SRTMDataGrid.h Map.h EarthPoint.h
114llgr.o : llgr.h EarthPoint.h
115Node.o : Node.h
116Segment.o : Segment.h
117Way.o : Way.h
118qmdcodec.o: qmdcodec.h
119HTTPHandler.o : HTTPHandler.h
120NodeHandler.o : NodeHandler.h
121SegSplitter.o : SegSplitter.h Segment.h Node.h Way.h Components2.h HTTPHandler.h
122BatchUploader.o : BatchUploader.h Segment.h Node.h Components2.h HTTPHandler.h
123NodeMetaDataHandler.o : NodeMetaDataHandler.h
Note: See TracBrowser for help on using the repository browser.