
#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

LIBWNCK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/startup-notification-1.0 -I/usr/include/libwnck-1.0
LIBXML_CFLAGS = -I/usr/include/libxml2
#if defined(LinuxArchitecture) || defined(SVR4Architecture)
VNC_EXTRA_LIBRARIES = -ldl
#endif

#if !defined(SVR4Architecture)
VNC_EXTRA_LIBRARIES += -rdynamic
#endif

INCLUDES = -I../include -I. -I/usr/local/include $(LIBWNCK_CFLAGS) $(LIBXML_CFLAGS)
VNCAUTH_LIB = ../libvncauth/libvncauth.a
WNCK_LIB = -lwnck-1
LIBXML_LIB = -lxml2 -lz -lm

DEPLIBS = $(VNCAUTH_LIB)
LOCAL_LIBRARIES = $(VNCAUTH_LIB) $(WNCK_LIB) $(LIBXML_LIB) $(VNC_EXTRA_LIBRARIES)

SRCS = \
  argsresources.c \
  caps.c \
  clipboard.c \
  launcher.c \
  rfbproto.c \
  sockets.c \
  windowcontrol.c \
  windowmonitor.c

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

ComplexProgramTarget(windowmonitor)
