diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-10-24 12:24:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-10-24 14:35:54 -0700 |
commit | 6755d8c271511491b8a23b5e56705beca6fd2822 (patch) | |
tree | 0443c87283622c8a66f461da53a85b7a46cb680a /Makefile | |
parent | 3615675a626aab8f49cfcc9205328bcd9cf6cb34 (diff) | |
download | subsurface-6755d8c271511491b8a23b5e56705beca6fd2822.tar.gz |
Annotate Makefile with hints about building under Windows
You can build subsurface with MinGW. It requires installing lots of random
packages, plus some things still don't work. One is that xml2-config
appears to be missing. So this annotates the Makefile to tell a person
building under Windows how to work around this. But we can't make this
platform conditional as this workaround is hardcoding the install path.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |