1if WITH_X11VNC
2X11VNC=x11vnc
3endif
4
5SUBDIRS=libvncserver examples libvncclient vncterm webclients client_examples test $(X11VNC)
6DIST_SUBDIRS=libvncserver examples libvncclient vncterm webclients client_examples test
7EXTRA_DIST = CMakeLists.txt rfb/rfbint.h.cmake rfb/rfbconfig.h.cmake
8
9bin_SCRIPTS = libvncserver-config
10
11pkgconfigdir = $(libdir)/pkgconfig
12pkgconfig_DATA = libvncserver.pc libvncclient.pc
13
14includedir=$(prefix)/include/rfb
15#include_HEADERS=rfb.h rfbconfig.h rfbint.h rfbproto.h keysym.h rfbregion.h
16
17include_HEADERS=rfb/rfb.h rfb/rfbconfig.h rfb/rfbint.h rfb/rfbproto.h \
18	rfb/keysym.h rfb/rfbregion.h rfb/rfbclient.h
19
20$(PACKAGE)-$(VERSION).tar.gz: dist
21
22if HAVE_RPM
23# Rule to build RPM distribution package
24rpm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).spec
25	cp $(PACKAGE)-$(VERSION).tar.gz @RPMSOURCEDIR@
26	rpmbuild -ba $(PACKAGE).spec
27endif
28
29t:
30	$(MAKE) -C test test
31
32