From 095539cd8c13a18b86f33eec817908cb10c2efbc Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 2 Oct 2001 02:44:03 +0000 Subject: support for server side colour maps, fix for non-pthread, support for 3bpp --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8554699..5fed831 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,15 @@ INCLUDES=-I. VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg # Uncomment these two lines to enable use of PThreads -PTHREADDEF = -DHAVE_PTHREADS -PTHREADLIB = -lpthread +#PTHREADDEF = -DHAVE_PTHREADS +#PTHREADLIB = -lpthread + +# Comment the following line to disable the use of 3 Bytes/Pixel. +# The code for 3 Bytes/Pixel is not very efficient! +FLAG24 = -DALLOW24BPP #CC=cc -CFLAGS=-g -Wall $(PTHREADDEF) $(INCLUDES) +CFLAGS=-g -Wall $(PTHREADDEF) $(FLAG24) $(INCLUDES) #CFLAGS=-O2 -Wall RANLIB=ranlib @@ -34,6 +38,8 @@ install_OSX: OSXvnc-server .c.o: $(CC) $(CFLAGS) -c $< +$(OBJS): Makefile rfb.h + libvncserver.a: $(OBJS) $(AR) cru $@ $(OBJS) $(RANLIB) $@ @@ -62,6 +68,11 @@ blooptest: blooptest.o libvncserver.a blooptest.o: example.c $(CC) $(CFLAGS) -DBACKGROUND_LOOP_TEST -c -o blooptest.o example.c +pnmshow24: pnmshow24.o libvncserver.a + $(CC) -o pnmshow24 pnmshow24.o $(LIBS) + +pnmshow24.o: Makefile + clean: rm -f $(OBJS) *~ core "#"* *.bak *.orig storepasswd.o \ mac.o example.o pnmshow.o sratest.o $(OBJS) -- cgit v1.2.3