]> arthur.barton.de Git - netatalk.git/blob - etc/afpd/Makefile.am
Merge master
[netatalk.git] / etc / afpd / Makefile.am
1 # Makefile.am for etc/afpd/
2
3 pkgconfdir = @PKGCONFDIR@
4
5 sbin_PROGRAMS = afpd
6 noinst_PROGRAMS = hash fce
7
8 afpd_SOURCES = \
9         afp_avahi.c \
10         afp_config.c \
11         afp_dsi.c \
12         afp_options.c \
13         afp_util.c \
14         afp_zeroconf.c \
15         afprun.c \
16         afs.c \
17         appl.c \
18         auth.c \
19         catsearch.c \
20         desktop.c \
21         dircache.c \
22         directory.c \
23         enumerate.c \
24         extattrs.c \
25         fce_api.c \
26         fce_util.c \
27         file.c \
28         filedir.c \
29         fork.c \
30         gettok.c \
31         hash.c \
32         main.c \
33         mangle.c \
34         messages.c  \
35         nfsquota.c \
36         ofork.c \
37         quota.c \
38         status.c \
39         switch.c \
40         uam.c \
41         uid.c \
42         unix.c \
43         volume.c
44
45 afpd_LDADD =  \
46         $(top_builddir)/libatalk/cnid/libcnid.la \
47         $(top_builddir)/libatalk/libatalk.la \
48         $(top_builddir)/libevent/libevent.la \
49         @LIBGCRYPT_LIBS@ @QUOTA_LIBS@ @SLP_LIBS@ @WRAP_LIBS@ @LIBADD_DL@ @ACL_LIBS@ @ZEROCONF_LIBS@ @PTHREAD_LIBS@
50
51 afpd_LDFLAGS = -export-dynamic -static
52
53 afpd_CFLAGS = \
54         -I$(top_srcdir)/include \
55         -I$(top_srcdir)/sys \
56         @SLP_CFLAGS@ @ZEROCONF_CFLAGS@ \
57         -DAPPLCNAME \
58         -DSERVERTEXT=\"$(SERVERTEXT)/\" \
59         -D_PATH_AFPDDEFVOL=\"$(pkgconfdir)/AppleVolumes.default\" \
60         -D_PATH_AFPDSYSVOL=\"$(pkgconfdir)/AppleVolumes.system\" \
61         -D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\" \
62         -D_PATH_AFPDCONF=\"$(pkgconfdir)/afpd.conf\" \
63         -D_PATH_AFPDSIGCONF=\"$(pkgconfdir)/afp_signature.conf\" \
64         -D_PATH_AFPDUAMPATH=\"$(UAMS_PATH)/\" \
65         -D_PATH_ACL_LDAPCONF=\"$(pkgconfdir)/afp_ldap.conf\" \
66         -D_PATH_AFPDUUIDCONF=\"$(pkgconfdir)/afp_voluuid.conf\"
67
68 if HAVE_ACLS
69 afpd_SOURCES += acls.c
70 endif
71
72
73 noinst_HEADERS = auth.h afp_config.h desktop.h directory.h file.h \
74          filedir.h fork.h icon.h mangle.h misc.h status.h switch.h \
75          uam_auth.h uid.h unix.h volume.h hash.h acls.h acl_mappings.h extattrs.h \
76          dircache.h afp_zeroconf.h afp_avahi.h
77
78 hash_SOURCES = hash.c
79 hash_CFLAGS = -DKAZLIB_TEST_MAIN -I$(top_srcdir)/include
80
81 fce_SOURCES = fce_api.c fce_util.c
82 fce_CFLAGS = -DFCE_TEST_MAIN -I$(top_srcdir)/include
83 fce_LDADD = $(top_builddir)/libatalk/libatalk.la