diff options
author | dscho <dscho> | 2002-04-23 10:35:00 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-23 10:35:00 +0000 |
commit | a73243f8c236d9807644ca34cddbe78fbef87402 (patch) | |
tree | 3e1636c7c821e236c247d0a2c7b29ac944211792 | |
parent | b2865b4f830ebfc3f965a22c3982543fa442fb70 (diff) | |
download | libtdevnc-a73243f8c236d9807644ca34cddbe78fbef87402.tar.gz libtdevnc-a73243f8c236d9807644ca34cddbe78fbef87402.zip |
another solaris clean compile
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | rfb.h | 12 |
3 files changed, 11 insertions, 12 deletions
@@ -1,8 +1,10 @@ + solaris compile cleanups + many x11vnc improvements added backchannel, an encoding which needs special clients to pass arbitrary data to the client changes from Tim Jansen regarding multi threading and client blocking as well as C++ compliancy - x11vnc can be controlled by restarting with special options if compiling + x11vnc can be controlled by starting again with special options if compiling with LOCAL_CONTROL defined 0.3 added x11vnc, a x0rfbserver clone @@ -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) @@ -66,15 +66,9 @@ typedef unsigned long KeySym; #include <sys/types.h> #if defined(__sparc) /* SPARC here (big endian) */ -#ifndef _BIG_ENDIAN -#define _BIG_ENDIAN 4321 -#endif -#define _BYTE_ORDER _BIG_ENDIAN +#define _BYTE_ORDER 4321 #elif defined(__i386) -#ifndef _LITTLE_ENDIAN -#define _LITTLE_ENDIAN 1234 -#endif -#define _BYTE_ORDER _LITTLE_ENDIAN +#define _BYTE_ORDER 1234 #else #error Solaris 2.5.1 had ppc support did it not? :-) #endif @@ -98,7 +92,7 @@ typedef unsigned long KeySym; #define _BYTE_ORDER __BYTE_ORDER #endif -#ifndef _LITTLE_ENDIAN +#if !defined(_LITTLE_ENDIAN) && defined(__LITTLE_ENDIAN) #define _LITTLE_ENDIAN __LITTLE_ENDIAN #endif |