1# Makefile.am for test/afpd/
2
3pkgconfdir = @PKGCONFDIR@
4
5TESTS = test.sh test
6
7check_PROGRAMS = test
8noinst_HEADERS = test.h subtests.h afpfunc_helpers.h
9EXTRA_DIST = test.sh
10CLEANFILES = test.default test.conf
11
12test_SOURCES =  test.c subtests.c afpfunc_helpers.c \
13				$(top_srcdir)/etc/afpd/afp_avahi.c \
14				$(top_srcdir)/etc/afpd/afp_config.c \
15				$(top_srcdir)/etc/afpd/afp_dsi.c \
16				$(top_srcdir)/etc/afpd/afp_mdns.c \
17				$(top_srcdir)/etc/afpd/afp_options.c \
18				$(top_srcdir)/etc/afpd/afp_util.c \
19				$(top_srcdir)/etc/afpd/afprun.c \
20				$(top_srcdir)/etc/afpd/appl.c \
21				$(top_srcdir)/etc/afpd/auth.c \
22				$(top_srcdir)/etc/afpd/afp_zeroconf.c \
23				$(top_srcdir)/etc/afpd/catsearch.c \
24				$(top_srcdir)/etc/afpd/desktop.c \
25				$(top_srcdir)/etc/afpd/dircache.c \
26				$(top_srcdir)/etc/afpd/directory.c \
27				$(top_srcdir)/etc/afpd/enumerate.c \
28				$(top_srcdir)/etc/afpd/extattrs.c \
29				$(top_srcdir)/etc/afpd/fce_api.c \
30				$(top_srcdir)/etc/afpd/fce_util.c \
31				$(top_srcdir)/etc/afpd/file.c \
32				$(top_srcdir)/etc/afpd/filedir.c \
33				$(top_srcdir)/etc/afpd/fork.c \
34				$(top_srcdir)/etc/afpd/hash.c \
35				$(top_srcdir)/etc/afpd/mangle.c \
36				$(top_srcdir)/etc/afpd/messages.c \
37				$(top_srcdir)/etc/afpd/nfsquota.c \
38				$(top_srcdir)/etc/afpd/ofork.c \
39				$(top_srcdir)/etc/afpd/quota.c \
40				$(top_srcdir)/etc/afpd/status.c \
41				$(top_srcdir)/etc/afpd/switch.c \
42				$(top_srcdir)/etc/afpd/uam.c \
43				$(top_srcdir)/etc/afpd/unix.c \
44				$(top_srcdir)/etc/afpd/volume.c
45
46if HAVE_ACLS
47test_SOURCES += $(top_srcdir)/etc/afpd/acls.c
48endif
49
50test_CFLAGS = \
51	-I$(top_srcdir)/etc/afpd \
52	-I$(top_srcdir)/include \
53	-I$(top_srcdir)/sys \
54	@ZEROCONF_CFLAGS@ @GSSAPI_CFLAGS@ @KRB5_CFLAGS@\
55	-DAPPLCNAME \
56	-DSERVERTEXT=\"$(SERVERTEXT)/\" \
57	-D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\" \
58	-D_PATH_AFPDUAMPATH=\"$(UAMS_PATH)/\" \
59	-D_PATH_CONFDIR=\"$(pkgconfdir)/\" \
60	-D_PATH_STATEDIR='"$(localstatedir)/netatalk/"'
61
62test_LDADD = \
63	$(top_builddir)/libatalk/libatalk.la \
64	@LIBGCRYPT_LIBS@ @QUOTA_LIBS@ @WRAP_LIBS@ @LIBADD_DL@ @ACL_LIBS@ @ZEROCONF_LIBS@ @PTHREAD_LIBS@ @GSSAPI_LIBS@ @KRB5_LIBS@
65
66test_LDFLAGS = -export-dynamic
67
68if WITH_DTRACE
69DTRACE_OBJ = test-afp_dsi.o test-fork.o test-appl.o test-catsearch.o test-directory.o test-enumerate.o test-file.o test-filedir.o
70afp_dtrace.o: $(top_srcdir)/include/atalk/afp_dtrace.d $(DTRACE_OBJ)
71	if test -f afp_dtrace.o ; then rm -f afp_dtrace.o ; fi
72	$(LIBTOOL) --mode=execute dtrace -G -s $(top_srcdir)/include/atalk/afp_dtrace.d -o afp_dtrace.o $(DTRACE_OBJ)
73test_LDADD += afp_dtrace.o @DTRACE_LIBS@
74CLEANFILES += afp_dtrace.o
75endif
76