Rename some files to be more appropriate

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>
This commit is contained in:
Linus Torvalds 2011-09-01 10:09:53 -07:00
parent feec555040
commit 4350a75b94
3 changed files with 11 additions and 5 deletions

View file

@ -1,14 +1,15 @@
CC=gcc CC=gcc
CFLAGS=-Wall -Wno-pointer-sign -g CFLAGS=-Wall -Wno-pointer-sign -g
OBJS=main.o profile.o info.o divelist.o parse.o OBJS=main.o profile.o info.o divelist.o parse-xml.o
parse: $(OBJS) divelog: $(OBJS)
$(CC) $(LDLAGS) -o parse $(OBJS) `xml2-config --libs` \ $(CC) $(LDLAGS) -o divelog $(OBJS) \
`xml2-config --libs` \
`pkg-config --libs gtk+-2.0` `pkg-config --libs gtk+-2.0`
parse.o: parse.c dive.h parse-xml.o: parse-xml.c dive.h
$(CC) $(CFLAGS) -c `xml2-config --cflags` parse.c $(CC) $(CFLAGS) -c `xml2-config --cflags` parse-xml.c
main.o: main.c dive.h display.h main.o: main.c dive.h display.h
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c

5
README Normal file
View file

@ -0,0 +1,5 @@
Half-arsed divelog software in C.
I'm tired of java programs that don't work etc.
License: GPLv2