Debian Codegraph @

src/Makefile

raw ◀ ▶
3 Debian patches touch this file
1 ##############################################################################
2 #
3 # Makefile for the ascii-version of GPStrans
4 #
5 ##############################################################################
6 #
7 # Make changes here, and you don't need to change Makefiles in the sub-dir's
8 #
9 ##############################################################################
10 CC = gcc
11
12 # use -DSUNOS41 for SunOS 4.1.x
13 # usr -DHPUX for HPUX
•14 CFLAGS += -Wall -g -D__LINUX__
15 # -O3
•16 LDFLAGS += -lm
17
18
19 ##############################################################################
20 # Nothing need to be changed below this line.
21 ##############################################################################
22 INCLUDES= -Iinclude -Igetline
23 OFILES = util.o prefs.o graph.o main.o
24 HFILES = include/defs.h include/Prefs.h include/Garmin.h\
25 include/icon.icon include/gpstrans.icon
26
27 XFILES = gps/sendgpsinfo.o gps/dms.o gps/datum.o \
28 gps/calendar.o gps/gpsmessage.o gps/garmincomm.o \
29 gps/garminserial.o gps/getgpsinfo.o gps/latlong.o \
30 grid/itm.o grid/bng.o grid/tm.o grid/ups.o \
31 grid/utm.o grid/seg.o grid/gridutils.o grid/kkj.o \
32 grid/gkk.o getline/libgetline.a \
33
34
35 .c.o: $(HFILES)
•36 $(CC) -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) $<
37
38 all: $(OFILES) $(HFILES)
39 @echo "Making all in ./getline"
•40 @(cd getline ; make CFLAGS="$(CFLAGS) -DPOSIX" libgetline.a)
41 @echo "Making all in ./gps"
42 @(cd gps ; make all CC="$(CC)" CFLAGS="$(CFLAGS)")
43 @echo "Making all in ./grid"
44 @(cd grid ; make all CC="$(CC)" CFLAGS="$(CFLAGS)")
45 @echo "Linking file \"gpstrans\""
46 $(CC) -o gpstrans $(OFILES) $(XFILES) $(LDFLAGS)
47