summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-11 10:14:10 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-11 12:19:34 -0800
commite8a896b64d0abb7d85d7aefb6ba551a22f720ffd (patch)
tree19213a00a86d7c88a887d4a5a28c9218b0498e8f /Makefile
parentc4ae58d589bdf315223c41716ca4b0ae747a8498 (diff)
downloadsubsurface-e8a896b64d0abb7d85d7aefb6ba551a22f720ffd.tar.gz
Update preference saving for numeric values
This does the "don't save defaults" for numeric values too. Also, move the preferences loading/saving to a new "prefs.c" file. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aade639f2..1a7543556 100644
--- a/Makefile
+++ b/Makefile
@@ -132,7 +132,8 @@ MSGOBJS=$(addprefix share/locale/,$(MSGLANGS:.po=.UTF-8/LC_MESSAGES/subsurface.m
OBJS = main.o dive.o time.o profile.o info.o equipment.o divelist.o deco.o planner.o \
parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o uemis-downloader.o \
- gtk-gui.o statistics.o file.o cochran.o device.o download-dialog.o $(OSSUPPORT).o $(RESFILE)
+ gtk-gui.o statistics.o file.o cochran.o device.o download-dialog.o prefs.o \
+ $(OSSUPPORT).o $(RESFILE)
$(NAME): $(OBJS) $(MSGOBJS)
$(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS)
@@ -273,6 +274,9 @@ uemis-downloader.o: uemis-downloader.c dive.h uemis.h
device.o: device.c device.h dive.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) -c device.c
+prefs.o: prefs.c dive.h pref.h
+ $(CC) $(CFLAGS) $(GLIB2CFLAGS) -c prefs.c
+
$(OSSUPPORT).o: $(OSSUPPORT).c display-gtk.h
$(CC) $(CFLAGS) $(OSSUPPORT_CFLAGS) -c $(OSSUPPORT).c