1
2if HAVE_LIBJPEG
3# TurboJPEG wrapper tests
4noinst_PROGRAMS=tjunittest tjbench
5tjunittest_SOURCES=tjunittest.c ../common/turbojpeg.c ../common/turbojpeg.h \
6	tjutil.c tjutil.h
7tjbench_SOURCES=tjbench.c ../common/turbojpeg.c ../common/turbojpeg.h \
8	tjutil.c tjutil.h bmp.c bmp.h
9tjbench_LDADD=$(LDADD) -lm
10endif
11
12AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/common
13LDADD = ../libvncserver/libvncserver.la ../libvncclient/libvncclient.la @WSOCKLIB@
14
15if HAVE_LIBPTHREAD
16BACKGROUND_TEST=blooptest
17ENCODINGS_TEST=encodingstest
18endif
19
20copyrecttest_LDADD=$(LDADD) -lm
21
22check_PROGRAMS=$(ENCODINGS_TEST) cargstest copyrecttest $(BACKGROUND_TEST) \
23	cursortest
24
25test: encodingstest$(EXEEXT) cargstest$(EXEEXT) copyrecttest$(EXEEXT)
26	./encodingstest && ./cargstest
27
28