2011-08-30 14:36:34 -07:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
|
|
|
|
2011-08-31 12:09:19 -07:00
|
|
|
OBJS=main.o profile.o info.o divelist.o parse.o
|
2011-08-31 10:20:46 -07:00
|
|
|
|
|
|
|
parse: $(OBJS)
|
|
|
|
$(CC) $(LDLAGS) -o parse $(OBJS) `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
|
|
|
|
|
|
|
parse.o: parse.c dive.h
|
|
|
|
$(CC) $(CFLAGS) -c `xml2-config --cflags` parse.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
|