2011-08-30 21:36:34 +00:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
|
|
|
|
2011-08-31 17:27:58 +00:00
|
|
|
OBJS=main.o profile.o divelist.o parse.o
|
2011-08-31 17:20:46 +00:00
|
|
|
|
|
|
|
parse: $(OBJS)
|
|
|
|
$(CC) $(LDLAGS) -o parse $(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
|
|
|
|
|
|
|
parse.o: parse.c dive.h
|
|
|
|
$(CC) $(CFLAGS) -c `xml2-config --cflags` parse.c
|
|
|
|
|
|
|
|
main.o: main.c dive.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
|
|
|
|
|
|
|
profile.o: profile.c dive.h
|
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c profile.c
|
2011-08-31 17:27:58 +00:00
|
|
|
|
|
|
|
divelist.o: divelist.c dive.h
|
|
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c divelist.c
|