diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 16:27:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 16:27:52 -0700 |
commit | 1155ad3f0fb2471163335d1d7c6856a81f495e49 (patch) | |
tree | 541fb1ce530b0a6cf0fd9563ff2b664589e3b9d1 /Makefile | |
parent | d5e42d485e6c4a62b78281aac900bb447d811ab1 (diff) | |
download | subsurface-1155ad3f0fb2471163335d1d7c6856a81f495e49.tar.gz |
Add ability to 'save' dives
This just generates another xml file. Don't get me wrong: I still don't
like xml, but this way we can save in the same format we load things
from. Except the save-format is a *lot* cleaner than the abortion that
is Suunto or libdivecomputer xml.
Don't bother with some crazy xml library crap for saving. Just do it!
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,7 @@ CC=gcc CFLAGS=-Wall -Wno-pointer-sign -g -OBJS=main.o profile.o info.o divelist.o parse-xml.o +OBJS=main.o profile.o info.o divelist.o parse-xml.o save-xml.o divelog: $(OBJS) $(CC) $(LDLAGS) -o divelog $(OBJS) \ @@ -11,6 +11,9 @@ divelog: $(OBJS) parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) -c `xml2-config --cflags` parse-xml.c +save-xml.o: save-xml.c dive.h + $(CC) $(CFLAGS) -c save-xml.c + main.o: main.c dive.h display.h $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c |