X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Makefile;h=8f12d0a0af4dfae20757ddebdd76032699c0099f;hb=9a853c564c9bb47bc91e74d54d69443eeb4c3449;hp=c78b806bb259968493b23b9e7048daa4e6f60ba7;hpb=518ec33ba3bf9c5e9966ef108c1673223337b0fa;p=ext%2Fsubsurface.git diff --git a/Makefile b/Makefile index c78b806..8f12d0a 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,16 @@ 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 -divelog: $(OBJS) - $(CC) $(LDFLAGS) -o divelog $(OBJS) \ - `xml2-config --libs` \ - `pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0` \ - $(LIBDIVECOMPUTERARCHIVE) +subsurface: $(OBJS) + $(CC) $(LDFLAGS) -o subsurface $(OBJS) \ + `xml2-config --libs` $(LIBS) \ + $(LIBDIVECOMPUTERARCHIVE) -lpthread parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c