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

Last change on this file since 7923 was 7923, checked in by nic, 12 years ago

Windows (MinGW) port complete and remarkebly responsive !
WinCE progress

File size: 2.1 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`
22XMLFLAGS=`pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2` \
23  `pkg-config --libs libxml-2.0 || echo -l xml2 -lz -lm`
24else
25EXTRA=-mms-bitfields -mno-cygwin -I/usr/include/mingw/gtk-2.0 \
26  -I/usr/include/mingw/cairo     -I/usr/include/mingw/glib-2.0 \
27  -I/usr/include/mingw/pango-1.0 -I/usr/include/mingw/atk-1.0 \
28  -I/usr/lib/glib-2.0/include    -I/usr/lib/gtk-2.0/include \
29  -lgtk-win32-2.0 -lgdk-win32-2.0 -lglib-2.0 -lgobject-2.0 -lcairo
30endif
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
42zip:
43        rm -f gosmore.zip
44        zip -j gosmore.zip gosmore.exe icons.xpm /bin/libcairo-2.dll \
45        /bin/libgtk-win32-2.0-0.dll /bin/libgdk* /bin/libglib-2.0-0.dll \
46        /bin/libgobject-2.0-0.dll /bin/libatk-1.0-0.dll /bin/libpango* \
47        /bin/libpng13.dll /bin/libgmodule-2.0-0.dll
48        zip gosmore.zip /etc/gtk-2.0/*
49        scp gosmore.zip ARMV4Rel/gosm_arm.exe \
50          sabiepark@www.rational.co.za:www/gosmore/
51
52commit:         clean
53                rm -f *~; cd ..; tar czf - gosmore | ssh \
54                  sabiepark@www.rational.co.za 'cd www/gosmore; \
55                  cat >gosmore-`exec date +%Y%m%d`.tar.gz'
56
57install: gosmore
58        mkdir -p $(DESTDIR)$(bindir)
59        cp gosmore $(DESTDIR)$(bindir)/.
60
61dist:
62        mkdir gosmore-$(VERSION)
63        cp gosmore.cc Makefile  README gosmore-$(VERSION)
64        tar zcf gosmore-$(VERSION).tar.gz gosmore-$(VERSION)
65        rm -rf gosmore-$(VERSION)
66
67clean:
68        $(RM) gosmore gosmore.pak *.tmp *~ gosmore.zip
Note: See TracBrowser for help on using the repository browser.