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