summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-04-22 23:13:10 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-04-23 00:06:31 -0700
commit83309d93692b7db7b6fce8c6c1f17eee228d626d (patch)
treea0493b9f5c7926bb231d3b98f6b7d8d889ae6e31 /Makefile
parente9ec2dcc455450262b56a901e9d397988d384480 (diff)
downloadsubsurface-83309d93692b7db7b6fce8c6c1f17eee228d626d.tar.gz
Move the list of objects a little further up
This also implies we don't need the OSSUPPORT variable anymore. We simply add to OBJS. Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 0eade3f36..b699b56f2 100644
--- a/Makefile
+++ b/Makefile
@@ -148,11 +148,22 @@ ZIPFLAGS = $(strip $(shell $(PKGCONFIG) --cflags libzip 2> /dev/null))
LIBSQLITE3 = $(shell $(PKGCONFIG) --libs sqlite3 2> /dev/null)
SQLITE3FLAGS = $(strip $(shell $(PKGCONFIG) --cflags sqlite3))
+QTOBJS = qt-ui/maintab.o qt-ui/mainwindow.o qt-ui/plotareascene.o qt-ui/divelistview.o \
+ qt-ui/addcylinderdialog.o qt-ui/models.o qt-ui/starwidget.o
+
+GTKOBJS = info-gtk.o divelist-gtk.o planner-gtk.o statistics-gtk.o
+
+OBJS = main.o dive.o time.o profile.o info.o equipment.o divelist.o divelist-gtk.o deco.o \
+ planner.o planner-gtk.o \
+ parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o uemis-downloader.o \
+ qt-gui.o statistics.o file.o cochran.o device.o download-dialog.o prefs.o \
+ webservice.o sha1.o $(RESFILE) $(QTOBJS) $(GTKOBJS)
+
ifneq (,$(filter $(UNAME),linux kfreebsd gnu))
- OSSUPPORT = linux
+ OBJS += linux.o
OSSUPPORT_CFLAGS = $(GTKCFLAGS) $(GCONF2CFLAGS)
else ifeq ($(UNAME), darwin)
- OSSUPPORT = macos
+ OBJS += macos.o
OSSUPPORT_CFLAGS = $(GTKCFLAGS)
MACOSXINSTALL = /Applications/Subsurface.app
MACOSXFILES = packaging/macosx
@@ -161,7 +172,7 @@ else ifeq ($(UNAME), darwin)
INFOPLISTINPUT = $(INFOPLIST).in
LDFLAGS += -headerpad_max_install_names -sectcreate __TEXT __info_plist $(INFOPLIST)
else
- OSSUPPORT = windows
+ OBSJ += windows.o
OSSUPPORT_CFLAGS = $(GTKCFLAGS)
WINDOWSSTAGING = ./packaging/windows
WINMSGDIRS=$(addprefix share/locale/,$(shell ls po/*.po | sed -e 's/po\/\(..\)_.*/\1\/LC_MESSAGES/'))
@@ -179,16 +190,6 @@ MSGLANGS=$(notdir $(wildcard po/*.po))
MSGOBJS=$(addprefix share/locale/,$(MSGLANGS:.po=.UTF-8/LC_MESSAGES/subsurface.mo))
-QTOBJS = qt-ui/maintab.o qt-ui/mainwindow.o qt-ui/plotareascene.o qt-ui/divelistview.o \
- qt-ui/addcylinderdialog.o qt-ui/models.o qt-ui/starwidget.o
-
-GTKOBJS = info-gtk.o divelist-gtk.o planner-gtk.o statistics-gtk.o
-
-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 \
- qt-gui.o statistics.o file.o cochran.o device.o download-dialog.o prefs.o \
- webservice.o sha1.o $(OSSUPPORT).o $(RESFILE) $(QTOBJS) $(GTKOBJS)
-
# Add files to the following variables if the auto-detection based on the
# filename fails
OBJS_NEEDING_MOC =