summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authordscho <dscho>2002-04-23 10:35:00 +0000
committerdscho <dscho>2002-04-23 10:35:00 +0000
commita73243f8c236d9807644ca34cddbe78fbef87402 (patch)
tree3e1636c7c821e236c247d0a2c7b29ac944211792 /Makefile
parentb2865b4f830ebfc3f965a22c3982543fa442fb70 (diff)
downloadlibvncserver-a73243f8c236d9807644ca34cddbe78fbef87402.zip
libvncserver-a73243f8c236d9807644ca34cddbe78fbef87402.tar.gz
another solaris clean compile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7acd02..2f0a16a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
INCLUDES=-I.
VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
+# for Solaris
+EXTRALIBS=-lsocket -lnsl -L/usr/X/lib
+
# Uncomment these two lines to enable use of PThreads
#PTHREADDEF = -DHAVE_PTHREADS
#PTHREADLIB = -lpthread
@@ -14,7 +17,7 @@ OPTFLAGS=-g -Wall
CFLAGS=$(OPTFLAGS) $(PTHREADDEF) $(FLAG24) $(INCLUDES) -DBACKCHANNEL
RANLIB=ranlib
-LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB)
+LIBS=$(LDFLAGS) $(VNCSERVERLIB) $(PTHREADLIB) $(EXTRALIBS)
# for Mac OS X
OSX_LIBS = -framework ApplicationServices -framework Carbon
@@ -62,7 +65,7 @@ OSXvnc-server: mac.o libvncserver.a
x11vnc.o: x11vnc.c 1instance.c
x11vnc: x11vnc.o libvncserver.a
- $(CC) -o x11vnc x11vnc.o libvncserver.a -lz -ljpeg $(XLIBS)
+ $(CC) -o x11vnc x11vnc.o $(LIBS) $(XLIBS)
x11vnc_static: x11vnc.o libvncserver.a
$(CC) -o x11vnc_static x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a $(XLIBS)
OpenPOWER on IntegriCloud