source: subversion/applications/rendering/gosmore/Makefile @ 7901

Last change on this file since 7901 was 7901, checked in by nic, 11 years ago

No longer links with gpsd, but will instead get the location using sockets
and the internal NMEA parser.

File size: 1.7 KB
Line 
1# Written by Nic Roets with contributions by Petter Reinholdtsen
2# Placed in the public domain
3# Don't run mkicons.sh until my patched pnmmontage is part of debian-netpbm
4
5TODAY := `exec date +%Y%m%d`
6VERSION = 0.0.0.$(TODAY)
7
8DESTDIR=
9prefix = /usr/local
10bindir = $(prefix)/bin
11
12USE_FLITE=-DUSE_FLITE -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex \
13  -lflite
14CFLAGS=-O2
15WARNFLAGS= -W -Wall
16
17# enable this to test the experimental route support
18#CFLAGS += -DROUTE_TEST
19
20ifneq (${OS},Windows_NT)
21EXTRA=`pkg-config --cflags --libs gtk+-2.0 || echo -D HEADLESS`
22else
23EXTRA=-mms-bitfields -mno-cygwin -I/usr/include/mingw/gtk-2.0 \
24  -I/usr/include/mingw/cairo     -I/usr/include/mingw/glib-2.0 \
25  -I/usr/include/mingw/pango-1.0 -I/usr/include/mingw/atk-1.0 \
26  -I/usr/lib/glib-2.0/include    -I/usr/lib/gtk-2.0/include \
27  -lgtk-win32-2.0 -lgdk-win32-2.0 -lglib-2.0 -lgobject-2.0
28endif
29XMLFLAGS=`pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2` \
30  `pkg-config --libs libxml-2.0 || echo -l xml2 -lz -lm`
31
32all: gosmore
33
34gosmore:        gosmore.cpp
35                g++ ${CFLAGS} ${WARNFLAGS} ${XMLFLAGS} \
36                 `[ -d /usr/include/flite ] && echo ${USE_FLITE}` \
37                  gosmore.cpp -o gosmore ${EXTRA}
38
39#elemstyles.xml:
40#               wget http://josm.openstreetmap.de/svn/trunk/styles/standard/elemstyles.xml
41
42
43commit:         clean
44                rm -f *~; cd ..; tar czf - gosmore | ssh \
45                  sabiepark@www.rational.co.za 'cd www/gosmore; \
46                  cat >gosmore-`exec date +%Y%m%d`.tar.gz'
47
48install: gosmore
49        mkdir -p $(DESTDIR)$(bindir)
50        cp gosmore $(DESTDIR)$(bindir)/.
51
52dist:
53        mkdir gosmore-$(VERSION)
54        cp gosmore.cc Makefile  README gosmore-$(VERSION)
55        tar zcf gosmore-$(VERSION).tar.gz gosmore-$(VERSION)
56        rm -rf gosmore-$(VERSION)
57
58clean:
59        $(RM) gosmore gosmore.pak *.tmp *~
Note: See TracBrowser for help on using the repository browser.