Commits

Meikel Brandmeyer committed 155e0fd

Added LIBS variable to Makefile and LIBS for OpenSolaris (thanks to Richard Newman)

Comments (0)

Files changed (2)

 # Marty Lamb
 
 CC=gcc
-WIN32_CC=/usr/local/mingw32/bin/mingw32-gcc
 CFLAGS=-Wall -pedantic -s -O3
 
+# Special library requirements
+# Default:
+LIBS=
+
+# OpenSolaris 2009.06
+#LIBS=-lsocket -lnsl
+
+# Windows
+#LIBS=-lwsock32
+
 ng: ngclient/ng.c
 	@echo "Building ng client.  To build a Windows binary, type 'make ng.exe'"
-	${CC} ${CFLAGS} -o ng ngclient/ng.c
+	${CC} ${CFLAGS} ${LIBS} -o ng ngclient/ng.c
 
-ng.exe: ngclient/ng.c
-	# any idea why the command line is so sensitive to the order of
-	# the arguments?  If CFLAGS is at the beginning, it won't link.
-	${WIN32_CC} -o ng.exe ngclient/ng.c -lwsock32 -O3 ${CFLAGS}
-	
 clean:
 	@echo "If you have a Windows binary, 'make clean' won't delete it."
 	@echo "You must remove this manually.  Most users won't have MinGW"
 Please refer to the online documentation in the doc folder for further
 information on how to use VimClojure, its features and its caveats.
 
+Note: You might need to check the Makefile for special lib requirments
+to compile the nailgun client, eg. OpenSolaris.
+
 Using Ivy
 =========