2 CFLAGS=-Wall -Wno-pointer-sign -g
4 LIBDIVECOMPUTERDIR = /usr/local
5 LIBDIVECOMPUTERINCLUDES = $(LIBDIVECOMPUTERDIR)/include/libdivecomputer
6 LIBDIVECOMPUTERARCHIVE = $(LIBDIVECOMPUTERDIR)/lib/libdivecomputer.a
8 OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \
9 parse-xml.o save-xml.o libdivecomputer.o
12 $(CC) $(LDFLAGS) -o divelog $(OBJS) \
13 `xml2-config --libs` \
14 `pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0` \
15 $(LIBDIVECOMPUTERARCHIVE)
17 parse-xml.o: parse-xml.c dive.h
18 $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c
20 save-xml.o: save-xml.c dive.h
21 $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c save-xml.c
24 $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c dive.c
26 main.o: main.c dive.h display.h divelist.h
27 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0 gconf-2.0` \
30 profile.o: profile.c dive.h display.h divelist.h
31 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c profile.c
33 info.o: info.c dive.h display.h divelist.h
34 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c info.c
36 equipment.o: equipment.c dive.h display.h divelist.h
37 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c equipment.c
39 divelist.o: divelist.c dive.h display.h divelist.h
40 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c divelist.c
42 libdivecomputer.o: libdivecomputer.c dive.h display.h
43 $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` \
44 -I$(LIBDIVECOMPUTERINCLUDES) \