1INCLUDES = -I$(top_srcdir)
2LDADD = ../libvncclient/libvncclient.la @WSOCKLIB@
3
4if WITH_FFMPEG
5FFMPEG_HOME=@with_ffmpeg@
6
7if HAVE_MP3LAME
8MP3LAME_LIB=-lmp3lame
9endif
10
11vnc2mpg_CFLAGS=-I$(FFMPEG_HOME)/libavformat -I$(FFMPEG_HOME)/libavcodec -I$(FFMPEG_HOME)/libavutil
12vnc2mpg_LDADD=$(LDADD) $(FFMPEG_HOME)/libavformat/libavformat.a $(FFMPEG_HOME)/libavcodec/libavcodec.a $(MP3LAME_LIB) -lm
13
14FFMPEG_CLIENT=vnc2mpg
15endif
16
17if HAVE_LIBSDL
18SDLVIEWER=SDLvncviewer
19
20SDLvncviewer_CFLAGS=$(SDL_CFLAGS)
21SDLvncviewer_SOURCES=SDLvncviewer.c scrap.c scrap.h
22
23if HAVE_X11
24X11_LIB=-lX11
25endif
26
27# thanks to autoconf, this looks ugly
28SDLvncviewer_LDADD=$(LDADD) $(SDL_LIBS) $(X11_LIB)
29endif
30
31if HAVE_LIBGTK
32GTKVIEWER=gtkvncviewer
33gtkvncviewer_SOURCES=gtkvncviewer.c
34gtkvncviewer_CFLAGS=$(GTK_CFLAGS)
35gtkvncviewer_LDADD=$(LDADD) $(GTK_LIBS)
36endif
37
38
39noinst_PROGRAMS=ppmtest $(SDLVIEWER) $(GTKVIEWER) $(FFMPEG_CLIENT) backchannel
40
41
42
43