summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 48f738d0a735ca992f5adfc9f8240ace0214330d (plain)
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
CFLAGS=-g

SUBDIRS=. examples contrib vncterm classes libvncclient test
DIST_SUBDIRS=examples contrib vncterm classes libvncclient test

bin_SCRIPTS = libvncserver-config

includedir=$(prefix)/include/rfb
#include_HEADERS=rfb.h rfbconfig.h rfbint.h rfbproto.h keysym.h rfbregion.h

include_HEADERS=rfb/rfb.h rfb/rfbconfig.h rfb/rfbint.h rfb/rfbproto.h \
	rfb/keysym.h rfb/rfbregion.h rfb/rfbclient.h

noinst_HEADERS=d3des.h zrleDecode.h zrleEncode.h rfb/default8x16.h \
	rdr/Exception.h rdr/FdInStream.h rdr/FdOutStream.h \
	rdr/FixedMemOutStream.h rdr/InStream.h rdr/MemInStream.h \
	rdr/MemOutStream.h rdr/NullOutStream.h rdr/OutStream.h \
	rdr/ZlibInStream.h rdr/ZlibOutStream.h rdr/types.h

ZRLE_SRCS=zrle.cxx rdr/FdInStream.cxx rdr/FdOutStream.cxx rdr/InStream.cxx \
	rdr/NullOutStream.cxx rdr/ZlibInStream.cxx rdr/ZlibOutStream.cxx

EXTRA_DIST=tableinit24.c tableinittctemplate.c tabletranstemplate.c \
	tableinitcmtemplate.c tabletrans24template.c $(ZRLE_SRCS)

LIB_SRCS = main.c rfbserver.c rfbregion.c auth.c sockets.c \
	stats.c corre.c hextile.c rre.c translate.c cutpaste.c \
	zlib.c tight.c httpd.c cursor.c font.c \
	draw.c selbox.c d3des.c vncauth.c cargs.c

if HAVE_CXX
libvncserver_a_SOURCES=$(LIB_SRCS) $(ZRLE_SRCS)
else
libvncserver_a_SOURCES=$(LIB_SRCS)
endif

lib_LIBRARIES=libvncserver.a

if HAVE_RPM
$(PACKAGE)-$(VERSION).tar.gz: dist

# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz libvncserver.spec
	cp $(PACKAGE)-$(VERSION).tar.gz @RPMSOURCEDIR@
	rpm -ba libvncserver.spec
endif

all: make_config_executable

make_config_executable:
	chmod a+x libvncserver-config