1 # Root of installation. Subdirectories will be ${DESTDIR}/etc,
2 # ${DESTDIR}/bin, and ${DESTDIR}/lib.
3 DESTDIR=/usr/local/atalk
5 # for system-level binaries
6 SBINDIR=$(DESTDIR)/sbin
7 # for user-level binaries
9 # for program libraries (*.a)
11 # for machine-independent resources (pagecount.ps, etc.)
13 # for configuration files (AppleVolumes.system, etc.)
16 INCDIR=$(DESTDIR)/include
17 # Root of man pages. Subdirectories will be
18 # ${MANDIR}/man1, ${MANDIR}/man4, and ${MANDIR}/man8.
22 #SBINDIR=${INSTALL_PREFIX}/usr/sbin
23 #BINDIR=${INSTALL_PREFIX}/usr/bin
24 #LIBDIR=${INSTALL_PREFIX}/usr/lib
25 #RESDIR=${INSTALL_PREFIX}/usr/lib/atalk
26 #ETCDIR=${INSTALL_PREFIX}/etc/atalk
27 #INCDIR=${INSTALL_PREFIX}/usr/include
28 #MANDIR=${INSTALL_PREFIX}/usr/man
30 # Location of the Berkeley v2 db library and include files.
31 # NOTE: leave this commented out for now. it's a placeholder for a future
33 #DB2DIR=/usr/local/BerkeleyDB
35 # Location of the Diffie-Hellman library and include files. Uncomment
36 # this out if you want DHX as an allowable UAM for afpd. Currently,
37 # this is set up expecting libcrypto from the openssl project. As a
38 # result, this option will enable all of the encrypted authentication
39 # methods (including the Randnum Exchange ones). DHX expects cast.h,
40 # dh.h, and bn.h in $CRYPTODIR/include with -lcrypto in
41 # $CRYPTODIR/lib. NOTE: os x server will complain if you use both
42 # randnum exchange and DHX.
43 CRYPTODIR=/usr/local/ssl
45 # Location of the DES library and include files. Uncomment this out if
46 # you want Randnum Exchange and 2-Way Randnum Exchange as allowable
47 # UAMs for afpd. We expect libdes.a in $DESDIR/lib and des.h in
48 # $DESDIR/include. This option will get overridden by CRYPTODIR.
51 # Location of the tcp wrapper library and include files. Comment this out
52 # if you don't want tcp wrapper support. having tcp wrapper support is
56 # Location of PAM support library and include files. Uncomment this if
57 # you want to enable PAM support.
60 # Location of cracklib support library and include files. This is used
61 # in the password changing routines. Uncomment this out if you want to
66 # Location of the AFS and Kerberos libraries and include files. Uncomment
67 # and edit these if you want to include AFS or Kerberos support in afpd
68 # or Kerberos support in papd.
69 #AFSDIR=/usr/local/afs
70 #KRBDIR=/usr/local/kerberos
72 ##########################################################################
73 all install depend clean tags kernel kinstall kpatch: FRC
74 @case `uname -rs` in \
75 "SunOS 4"*) ARCH=sunos \
77 "SunOS 5"*) ARCH=solaris \
79 ULTRIX*) ARCH=ultrix \
83 FreeBSD*) ARCH=freebsd \
85 NetBSD*) ARCH=netbsd \
87 OpenBSD*) ARCH=openbsd \
94 echo "Making $@ for $$ARCH..."; \
95 cd sys/$$ARCH && ${MAKE} ${MFLAGS} \
96 SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}"\
97 ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
98 DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \
99 TCPWRAPDIR="${TCPWRAPDIR}" PAMDIR="${PAMDIR}" DB2DIR="${DB2DIR}" \
100 AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" DESDIR="${DESDIR}" \
101 CRYPTODIR="${CRYPTODIR}" CRACKDIR="${CRACKDIR}" \
102 OSVERSION="`uname -r`" MACHINETYPE="`uname -m`" \
105 FRC: include/netatalk
108 -ln -s ../sys/netatalk include/netatalk
110 SYS=sunos ultrix solaris
111 VERSION=`date +%y%m%d`
112 DISTDIR=../netatalk-${VERSION}
116 do (cd sys/$$i; ${MAKE} ${MFLAGS} sysclean); \
119 dist : sysclean clean
121 tar cfFFX - EXCLUDE . | (cd ${DISTDIR}; tar xvf - )
122 chmod +w ${DISTDIR}/Makefile ${DISTDIR}/include/atalk/paths.h \
123 ${DISTDIR}/sys/solaris/Makefile
124 echo ${VERSION} > ${DISTDIR}/VERSION