## Copyright (c) H. Andres Lagar-Cavilla, University of Toronto, 2006-2007
## Modifications to vncviewer code made in the context of the vmgl project
  
#ifdef SunArchitecture
EXTRA_DEFINES = -D__EXTENSIONS__
#endif

XCOMM Shared memory support works OK on x86 linux, not tested elsewhere but
XCOMM seems to cause problems on Digital Unix.

#if defined(i386Architecture) && defined(LinuxArchitecture)
DEFINES = -DMITSHM
#endif

ZLIB_INC = -I/usr/local/include
JPEG_INC = -I/usr/local/include
VMGLSTUB_INC = -I../../cr/stub-daemon/libvmglstubdaemon
INCLUDES = -I../include -I. $(ZLIB_INC) $(JPEG_INC) $(VMGLSTUB_INC) -I/usr/include
VNCAUTH_LIB = ../libvncauth/libvncauth.a
ZLIB_LIB = -L/usr/local/lib -lz
#ifdef OSF1Architecture
XCOMM Avoid linking with different libjpeg in /usr/shlib under Tru64.
JPEG_LIB = /usr/local/lib/libjpeg.a
#else
JPEG_LIB = -L/usr/local/lib -ljpeg
#endif
VMGLSTUB_LIB = ../../cr/dist/lib/libvmglstubdaemon.a -lpthread

DEPLIBS = XawClientDepLibs $(VNCAUTH_LIB)
LOCAL_LIBRARIES = XawClientLibs $(VNCAUTH_LIB) $(ZLIB_LIB) $(JPEG_LIB) $(VMGLSTUB_LIB)

SRCS = \
  argsresources.c \
  caps.c \
  colour.c \
  cursor.c \
  desktop.c \
  dialogs.c \
  fullscreen.c \
  listen.c \
  misc.c \
  popup.c \
  rfbproto.c \
  selection.c \
  shm.c \
  sockets.c \
  tunnel.c \
  vncviewer.c

OBJS = $(SRCS:.c=.o)

ComplexProgramTarget(vncviewer)
