2011-08-30 21:36:34 +00:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
|
|
|
|
2011-09-03 20:19:26 +00:00
|
|
|
OBJS=main.o dive.o profile.o info.o divelist.o parse-xml.o save-xml.o
|
2011-08-31 17:20:46 +00:00
|
|
|
|
2011-09-01 17:09:53 +00:00
|
|
|
divelog: $(OBJS)
|
|
|
|
$(CC) $(LDLAGS) -o divelog $(OBJS) \
|
|
|
|
`xml2-config --libs` \
|
2011-08-31 02:48:00 +00:00
|
|
|
`pkg-config --libs gtk+-2.0`
|
2011-08-31 01:40:25 +00:00
|
|
|
|
2011-09-01 17:09:53 +00:00
|
|
|
parse-xml.o: parse-xml.c dive.h
|
|
|
|
$(CC) $(CFLAGS) -c `xml2-config --cflags` parse-xml.c
|
2011-08-31 01:40:25 +00:00
|
|
|
|
2011-09-01 23:27:52 +00:00
|
|
|
save-xml.o: save-xml.c dive.h
|
|
|
|
$(CC) $(CFLAGS) -c save-xml.c
|
|
|
|
|
2011-09-03 20:19:26 +00:00
|
|
|
dive.o: dive.c dive.h
|
|
|
|
$(CC) $(CFLAGS) -c dive.c
|
|
|
|
|
2011-08-31 18:10:17 +00:00
|
|
|
main.o: main.c dive.h display.h
|
2011-08-31 02:48:00 +00:00
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c
|
2011-08-31 17:20:46 +00:00
|
|
|
|
2011-08-31 18:10:17 +00:00
|
|
|
profile.o: profile.c dive.h display.h
|
2011-08-31 17:20:46 +00:00
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c profile.c
|
2011-08-31 17:27:58 +00:00
|
|
|
|
2011-08-31 19:09:19 +00:00
|
|
|
info.o: info.c dive.h display.h
|
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c info.c
|
|
|
|
|
2011-08-31 18:10:17 +00:00
|
|
|
divelist.o: divelist.c dive.h display.h
|
2011-08-31 17:27:58 +00:00
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c divelist.c
|