[Slad] Patch: SLADinstaller Makefile for Cygwin

Jan-Oliver Wagner jan at intevation.de
Wed Mar 1 11:11:44 UTC 2006


Hi,

attached a patch that makes the Makefile of SLAdinstaller
work correctly with Cygwin.

Best

	Jan
-- 
Jan-Oliver Wagner: www.intevation.de/~jan  | GISpatcher: www.gispatcher.de
Kolab Konsortium : www.kolab-konsortium.de | Thuban    : thuban.intevation.org
Intevation GmbH  : www.intevation.de       | Kolab     : www.kolab.org
FreeGIS          : www.freegis.org         | GAV       : www.grass-verein.de
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /anoncvs/sladinstaller/Makefile,v
retrieving revision 1.15
diff -u -3 -p -r1.15 Makefile
--- Makefile	11 Feb 2006 13:14:37 -0000	1.15
+++ Makefile	1 Mar 2006 11:08:39 -0000
@@ -10,9 +10,10 @@ LDFLAGS+=-L. -L$(OPENSSL)/lib -L/usr/X11
 LIBS+=`pkg-config --libs gtk+-2.0` `pkg-config --libs gthread-2.0` `curl-config --libs` -lssl -lcrypto
 STATLIBS+=-lXft -lfontconfig -lfreetype -lpangoft2-1.0 -lXcursor -lXinerama -lXext -lXi -lXrandr -lXrender -lXt -lX11 -lpng12 -ljpeg -ltiff -lexpat
 
-SYSTEM:=$(shell uname)
-ifeq ($(SYSTEM), Windows)
-CXXFLAGS+=-mms-bitfields
+SYSTEM:=$(shell uname -o)
+ifeq ($(SYSTEM), Cygwin)
+CXXFLAGS+=-mms-bitfields -DCYGWIN
+LDFLAGS+=-mwindows
 endif
 
 include Makefile.config


More information about the Slad mailing list