mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
4350a75b94
The executable is now called 'divelog'. If this gets useful enough to actually *use*, I guess I'll have to come up with a real name some day. Add a silly README, rename 'parse' to 'parse-xml'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
24 lines
679 B
Makefile
24 lines
679 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
|
|
|
OBJS=main.o profile.o info.o divelist.o parse-xml.o
|
|
|
|
divelog: $(OBJS)
|
|
$(CC) $(LDLAGS) -o divelog $(OBJS) \
|
|
`xml2-config --libs` \
|
|
`pkg-config --libs gtk+-2.0`
|
|
|
|
parse-xml.o: parse-xml.c dive.h
|
|
$(CC) $(CFLAGS) -c `xml2-config --cflags` parse-xml.c
|
|
|
|
main.o: main.c dive.h display.h
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c
|
|
|
|
profile.o: profile.c dive.h display.h
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c profile.c
|
|
|
|
info.o: info.c dive.h display.h
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c info.c
|
|
|
|
divelist.o: divelist.c dive.h display.h
|
|
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c divelist.c
|