San Mehat | a430b2b | 2014-09-23 08:30:51 -0700 | [diff] [blame] | 1 | if HAVE_SYSTEM_LIBVNCSERVER |
| 2 | LDADD = @SYSTEM_LIBVNCSERVER_LIBS@ @WSOCKLIB@ |
| 3 | else |
| 4 | LDADD = ../libvncserver/libvncserver.la ../libvncclient/libvncclient.la @WSOCKLIB@ |
| 5 | endif |
| 6 | |
| 7 | if OSX |
| 8 | FRAMEWORKS = -framework ApplicationServices -framework Carbon -framework IOKit -framework Cocoa |
| 9 | if OSX_OPENGL |
| 10 | FRAMEWORKS += -framework OpenGL |
| 11 | if HAVE_X11 |
| 12 | GL = /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib |
| 13 | FRAMEWORKS += -dylib_file $(GL):$(GL) |
| 14 | endif |
| 15 | endif |
| 16 | x11vnc_LDFLAGS = $(FRAMEWORKS) |
| 17 | x11vnc_CFLAGS = -ObjC |
| 18 | endif |
| 19 | |
| 20 | SUBDIRS = misc |
| 21 | DIST_SUBDIRS = misc |
| 22 | |
| 23 | desktopdir = $(datadir)/applications |
| 24 | desktop_DATA = x11vnc.desktop |
| 25 | |
| 26 | man_MANS=x11vnc.1 |
| 27 | EXTRA_DIST=ChangeLog README RELEASE-NOTES tkx11vnc $(man_MANS) $(desktop_DATA) |
| 28 | |
| 29 | if CYGIPC |
| 30 | LD_CYGIPC=-lcygipc |
| 31 | endif |
| 32 | |
| 33 | bin_PROGRAMS=x11vnc |
| 34 | x11vnc_SOURCES = 8to24.c appshare.c avahi.c cleanup.c connections.c cursor.c gui.c help.c inet.c keyboard.c linuxfb.c macosx.c macosxCG.c macosxCGP.c macosxCGS.c macosx_opengl.c options.c pm.c pointer.c rates.c remote.c scan.c screen.c selection.c solid.c sslcmds.c sslhelper.c uinput.c unixpw.c user.c userinput.c util.c v4l.c win_utils.c x11vnc.c x11vnc_defs.c xdamage.c xevents.c xinerama.c xkb_bell.c xrandr.c xrecord.c xwrappers.c 8to24.h allowed_input_t.h avahi.h blackout_t.h cleanup.h connections.h cursor.h enc.h enums.h gui.h help.h inet.h keyboard.h linuxfb.h macosx.h macosxCG.h macosxCGP.h macosxCGS.h macosx_opengl.h nox11.h nox11_funcs.h options.h params.h pm.h pointer.h rates.h remote.h scan.h screen.h scrollevent_t.h selection.h solid.h sslcmds.h sslhelper.h ssltools.h tkx11vnc.h uinput.h unixpw.h user.h userinput.h util.h v4l.h win_utils.h winattr_t.h x11vnc.h xdamage.h xevents.h xinerama.h xkb_bell.h xrandr.h xrecord.h xwrappers.h |
| 35 | |
| 36 | if HAVE_SYSTEM_LIBVNCSERVER |
| 37 | INCLUDES_LIBVNCSERVER = @SYSTEM_LIBVNCSERVER_CFLAGS@ |
| 38 | else |
| 39 | INCLUDES_LIBVNCSERVER = -I${top_srcdir} |
| 40 | endif |
| 41 | INCLUDES = $(INCLUDES_LIBVNCSERVER) @X_CFLAGS@ @AVAHI_CFLAGS@ |
| 42 | |
| 43 | x11vnc_LDADD=$(LDADD) @SSL_LIBS@ @CRYPT_LIBS@ @X_LIBS@ @AVAHI_LIBS@ $(LD_CYGIPC) |