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

Last change on this file since 3600 was 3600, checked in by pere, 13 years ago

New clean target. Improve install target. Document the ROUTE_TEST option. Make it easier to extend the list of warning flags used.

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