1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
# Makefile for vncsnapshot, Unix/Linux platforms.
#
# $Id: Makefile,v 1.6 2004/09/09 00:22:33 grmcdorman Exp $
#
# INSTALLER: Adjust these lines to point to your installation's location of
# Zlib and JPEG lib.
ZLIB_INCLUDE = -I/usr/local/include
ZLIB_LIB = -L/usr/local/lib -lz
JPEG_INCLUDE = -I/usr/local/include
JPEG_LIB = -L/usr/local/lib -ljpeg
# Other libraries:
# SOLARIS:
# EXTRALIBS = -lsocket -lnsl
# EXTRAINCLUDES =
# Linux:
EXTRALIBS =
EXTRAINCLUDES =
# Compilation Flags. Season to taste.
CC = gcc
CDEBUGFLAGS = -O2 -Wall
CXX=g++
# You shouldn't need to change anything below.
INCLUDES = -I. $(ZLIB_INCLUDE) $(JPEG_INCLUDE) $(EXTRAINCLUDES)
CFLAGS = $(CDEBUGFLAGS) $(INCLUDES)
CXXFLAGS = $(CFLAGS)
# Solaris 8 uses CCC and CCFLAGS
CCC=$(CXX)
CCFLAGS = $(CFLAGS)
.SUFFIXES: .cxx
#
SRCS = \
argsresources.c \
buffer.c \
cursor.c \
listen.c \
rfbproto.c \
sockets.cxx \
tunnel.c \
vncsnapshot.c \
d3des.c vncauth.c \
zrle.cxx \
PASSWD_SRCS = vncpasswd.c vncauth.c d3des.c
OBJS1 = $(SRCS:.c=.o)
OBJS = $(OBJS1:.cxx=.o)
PASSWD_OBJS1 = $(PASSWD_SRCS:.c=.o)
PASSWD_OBJS = $(PASSWD_OBJS1:.cxx=.o)
SUBDIRS=rdr.dir
all: $(SUBDIRS:.dir=.all) vncsnapshot vncpasswd
vncsnapshot: $(OBJS) rdr.all
# ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $(OBJS) rdr/librdr.a $(ZLIB_LIB) $(JPEG_LIB) $(EXTRALIBS)
$(LINK.cc) $(CDEBUGFLAGS) -o $@ $(OBJS) rdr/librdr.a $(ZLIB_LIB) $(JPEG_LIB) $(EXTRALIBS)
vncpasswd: $(PASSWD_OBJS)
# ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $(PASSWD_OBJS)
$(LINK.c) $(CDEBUGFLAGS) -o $@ $(PASSWD_OBJS)
clean: $(SUBDIRS:.dir=.clean) $(FINAL_SUBDIRS:.dir=.clean)
-rm -f $(OBJS) $(PASSWD_OBJS) vncpasswd vncsnapshot core
reallyclean: clean $(SUBDIRS:.dir=.reallyclean) $(FINAL_SUBDIRS:.dir=.reallyclean)
-rm -f *~
rdr.all:
$(MAKE) -C rdr all
rdr.clean:
$(MAKE) -C rdr clean
rdr.reallyclean:
$(MAKE) -C rdr reallyclean
vncpasswd.all:
$(MAKE) -C vncpasswd all
vncpasswd.clean:
$(MAKE) -C vncpasswd clean
vncpasswd.reallyclean:
$(MAKE) -C vncpasswd reallyclean
.cxx.o:
$(COMPILE.cc) -o $@ $<
# dependancies
argsresources.o: argsresources.c vncsnapshot.h rfb.h rfbproto.h
buffer.o: buffer.c vncsnapshot.h rfb.h rfbproto.h
cursor.o: cursor.c vncsnapshot.h rfb.h rfbproto.h
listen.o: listen.c vncsnapshot.h rfb.h rfbproto.h
rfbproto.o: rfbproto.c vncsnapshot.h rfb.h rfbproto.h vncauth.h \
protocols/rre.c protocols/corre.c \
protocols/hextile.c protocols/zlib.c protocols/tight.c
sockets.o: sockets.cxx vncsnapshot.h rfb.h rfbproto.h
tunnel.o: tunnel.c vncsnapshot.h rfb.h rfbproto.h
vncsnapshot.o: vncsnapshot.c vncsnapshot.h rfb.h rfbproto.h
vncauth.o: vncauth.c stdhdrs.h rfb.h rfbproto.h vncauth.h d3des.h
zrle.o: zrle.cxx vncsnapshot.h
vncpasswd.o: vncpasswd.c vncauth.h
|