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

Last change on this file since 3958 was 3958, checked in by pere, 12 years ago

Mention memory requirements.

File size: 1.4 KB
Line 
1TODAY := `exec date +%Y%m%d`
2VERSION = 0.0.0.$(TODAY)
3
4DESTDIR=
5prefix = /usr/local
6bindir = $(prefix)/bin
7
8USE_FLITE=-DUSE_FLITE -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex \
9  -lflite
10CFLAGS=-g #-O2
11WARNFLAGS= -W -Wall
12
13# enable this to test the experimental route support
14#CFLAGS += -DROUTE_TEST
15
16ifneq (${OS},Windows_NT)
17EXTRA=`pkg-config --cflags --libs gtk+-2.0`
18else
19EXTRA=-mms-bitfields -mno-cygwin -I/usr/include/mingw/gtk-2.0 \
20  -I/usr/include/mingw/cairo     -I/usr/include/mingw/glib-2.0 \
21  -I/usr/include/mingw/pango-1.0 -I/usr/include/mingw/atk-1.0 \
22  -I/usr/lib/glib-2.0/include    -I/usr/lib/gtk-2.0/include \
23  -lgtk-win32-2.0 -lgdk-win32-2.0 -lglib-2.0 -lgobject-2.0
24endif
25
26all: gosmore
27
28gosmore:        gosmore.cc
29                g++ ${CFLAGS} ${WARNFLAGS} \
30                 `[ -e /usr/include/gps.h ] && echo -DUSE_GPSD -lgps` \
31                 `[ -d /usr/include/flite ] && echo ${USE_FLITE}` \
32                  gosmore.cc -o gosmore ${EXTRA}
33
34commit:         gosmore
35                tar cf - Makefile gosmore.cc | ssh \
36                  sabiepark@www.rational.co.za 'cd www; tar xvf -'
37
38CountColours:   CountColours.c
39                gcc `pkg-config --cflags --libs gtk+-2.0` CountColours.c -o CountColours
40
41install: gosmore
42        mkdir -p $(DESTDIR)$(bindir)
43        cp gosmore $(DESTDIR)$(bindir)/.
44
45dist:
46        mkdir gosmore-$(VERSION)
47        cp gosmore.cc Makefile  README gosmore-$(VERSION)
48        tar zcf gosmore-$(VERSION).tar.gz gosmore-$(VERSION)
49        rm -rf gosmore-$(VERSION)
50
51clean:
52        $(RM) gosmore
Note: See TracBrowser for help on using the repository browser.