X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Makefile;h=cd9fcdd6fc8f6f698987112489ea38535f05c58a;hb=6755d8c271511491b8a23b5e56705beca6fd2822;hp=4be5991f400b6980279afe6b2fea3dad8112907e;hpb=7783387b978e5c13a415d0076ab9ff8e1c45bf4c;p=ext%2Fsubsurface.git diff --git a/Makefile b/Makefile index 4be5991..cd9fcdd 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,10 @@ endif # about it if it doesn't. LIBUSB = $(shell pkg-config --libs libusb-1.0 2> /dev/null) +# it appears that xml2-config isn't included in the libxml2 package for +# MinGW - so under Windows you may want to replace this with a hardcoded +# path to the installdir - something like +# LIBXML2 = -L/c/opt/gtk/lib -lxml2 LIBXML2 = $(shell xml2-config --libs) LIBGTK = $(shell pkg-config --libs gtk+-2.0 glib-2.0 gconf-2.0) LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES) @@ -80,6 +84,16 @@ install: $(NAME) $(INSTALL) -d -m 755 $(MANDIR) $(INSTALL) -m 644 $(MANFILES) $(MANDIR) +# it appears that xml2-config isn't included in the libxml2 package for +# MinGW - so under Windows you may want to replace this with a hardcoded +# path to the inclde dir - something like +# +# XML2INCLUDE = -I/c/opt/gtk/include/libxml2 +# +# parse-xml.o: parse-xml.c dive.h +# $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c $(XML2INCLUDE) parse-xml.c + + parse-xml.o: parse-xml.c dive.h $(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c