]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/Makefile.am
commit dircache rewrite.
[netatalk.git] / etc / afpd / Makefile.am
index 50d75bc645ad0b6978b1d6ea6c441552d516130f..ae937ecc3976b78b5456c515a63ad876c38c8866 100644 (file)
@@ -1,20 +1,37 @@
 # Makefile.am for etc/afpd/
 
-SUBDIRS = nls
+pkgconfdir = @PKGCONFDIR@
 
 sbin_PROGRAMS = afpd
+noinst_PROGRAMS = hash
 
-afpd_SOURCES = unix.c ofork.c main.c switch.c auth.c volume.c directory.c file.c enumerate.c desktop.c filedir.c fork.c appl.c gettok.c status.c afp_options.c afp_asp.c afp_dsi.c messages.c afp_config.c nfsquota.c codepage.c quota.c uam.c afs.c
-afpd_LDADD = $(top_srcdir)/libatalk/libatalk.a -latalk
+afpd_SOURCES = unix.c ofork.c main.c switch.c auth.c volume.c directory.c \
+        file.c enumerate.c desktop.c filedir.c fork.c appl.c gettok.c \
+        mangle.c status.c afp_options.c afp_asp.c afp_dsi.c messages.c  \
+        afp_config.c nfsquota.c quota.c uam.c afs.c uid.c afp_util.c \
+       catsearch.c afprun.c hash.c extattrs.c dircache.c
 
-noinst_HEADERS = auth.h codepage.h afp_config.h desktop.h directory.h file.h filedir.h fork.h globals.h icon.h misc.h status.h switch.h uam_auth.h unix.h volume.h
+if USE_NFSv4_ACLS
+afpd_SOURCES += acls.c
+endif
 
-CFLAGS = @CFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/sys \
-        -D_PATH_AFPDDEFVOL=\"$(CONFIG_DIR)/AppleVolumes.default\" \
-        -D_PATH_AFPDSYSVOL=\"$(CONFIG_DIR)/AppleVolumes.system\" \
-        -D_PATH_AFPDPWFILE=\"$(CONFIG_DIR)/afpd.passwd\" \
-        -D_PATH_AFPDCONF=\"$(CONFIG_DIR)/afpd.conf\" \
+afpd_LDADD =  $(top_builddir)/libatalk/cnid/libcnid.la $(top_builddir)/libatalk/libatalk.la @QUOTA_LIBS@ @SLP_LIBS@ @WRAP_LIBS@ @LIBADD_DL@
+afpd_LDFLAGS = -export-dynamic 
+afpd_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/sys \
+        @SLP_CFLAGS@ \
+        -D_PATH_AFPDDEFVOL=\"$(pkgconfdir)/AppleVolumes.default\" \
+        -D_PATH_AFPDSYSVOL=\"$(pkgconfdir)/AppleVolumes.system\" \
+        -D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\" \
+        -D_PATH_AFPDCONF=\"$(pkgconfdir)/afpd.conf\" \
         -D_PATH_AFPDUAMPATH=\"$(UAMS_PATH)/\" \
-        -D_PATH_AFPDNLSPATH=\"$(CONFIG_DIR)/nls/\" \
+        -D_PATH_ACL_LDAPCONF=\"$(pkgconfdir)/afp_ldap.conf\" \
         -DAPPLCNAME \
-        -DVERSION=\"$(NETATALK_VERSION)\"
+        -DSERVERTEXT=\"$(SERVERTEXT)/\"
+
+noinst_HEADERS = auth.h afp_config.h desktop.h directory.h file.h \
+        filedir.h fork.h globals.h icon.h mangle.h misc.h status.h switch.h \
+        uam_auth.h uid.h unix.h volume.h hash.h acls.h acl_mappings.h extattrs.h \
+        dircache.h
+
+hash_SOURCES = hash.c
+hash_CFLAGS = -DKAZLIB_TEST_MAIN -I$(top_srcdir)/include