summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Riccardo Albertini <ssirowain@gmail.com>2011-09-20 12:22:45 +0200
committerGravatar Riccardo Albertini <ssirowain@gmail.com>2011-09-20 12:22:45 +0200
commit5b2f1c7914f5632362813a304659a3971e595d50 (patch)
treee1ffaeda2cd9df5344ac49ec9999cf0b7a8c86c8 /Makefile
parent3a6c1f767d527c2247eefb264f68adf3f3770608 (diff)
downloadsubsurface-5b2f1c7914f5632362813a304659a3971e595d50.tar.gz
Added a comment about libusb dependency in Makefile.
Due to libdivecomputer's dependency, can be necessary to add libusb to pkg-config in order to compile, so I exported the pkg-config line in the subsurface target to LIBS variable, and added a comment about libusb. Signed-off-by: Riccardo Albertini <ssirowain@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2f24eb7de..8f12d0a0a 100644
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,15 @@ LIBDIVECOMPUTERDIR = /usr/local
LIBDIVECOMPUTERINCLUDES = $(LIBDIVECOMPUTERDIR)/include/libdivecomputer
LIBDIVECOMPUTERARCHIVE = $(LIBDIVECOMPUTERDIR)/lib/libdivecomputer.a
+# Add libusb in case of libdivecomputer compiled with usb support.
+LIBS = `pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0`
+
OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \
parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o
subsurface: $(OBJS)
$(CC) $(LDFLAGS) -o subsurface $(OBJS) \
- `xml2-config --libs` \
- `pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0` \
+ `xml2-config --libs` $(LIBS) \
$(LIBDIVECOMPUTERARCHIVE) -lpthread
parse-xml.o: parse-xml.c dive.h