mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3a6c1f767d
commit
5b2f1c7914
1 changed files with 4 additions and 2 deletions
6
Makefile
6
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
|
||||
|
|
Loading…
Add table
Reference in a new issue