]> arthur.barton.de Git - netatalk.git/blob - Makefile
da9d5c2d25f8f157c7b36e811cca640c375bd3cb
[netatalk.git] / Makefile
1 # Root of installation. Subdirectories will be ${DESTDIR}/etc,
2 # ${DESTDIR}/bin, and ${DESTDIR}/lib.
3 DESTDIR=/usr/local/atalk
4
5 # for system-level binaries
6 SBINDIR=$(DESTDIR)/sbin
7 # for user-level binaries
8 BINDIR=$(DESTDIR)/bin
9 # for program libraries (*.a)
10 LIBDIR=$(DESTDIR)/lib
11 # for machine-independent resources (pagecount.ps, etc.)
12 RESDIR=$(DESTDIR)/etc
13 # for configuration files (AppleVolumes.system, etc.)
14 ETCDIR=$(DESTDIR)/etc
15 # for include files
16 INCDIR=$(DESTDIR)/include
17 # Root of man pages.  Subdirectories will be
18 # ${MANDIR}/man1, ${MANDIR}/man4, and ${MANDIR}/man8.
19 MANDIR=$(DESTDIR)/man
20
21 #INSTALL_PREFIX=
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
29
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
32 # feature.
33 #DB2DIR=/usr/local/BerkeleyDB
34
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
44
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.
49 #DESDIR=/usr/local
50
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
53 # highly recommended.
54 TCPWRAPDIR=/usr
55
56 # Location of PAM support library and include files. Uncomment this if
57 # you want to enable PAM support.
58 #PAMDIR=/usr
59
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
62 # enable support.
63 #CRACKDIR=/usr
64
65  
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
71
72 ##########################################################################
73 all install depend clean tags kernel kinstall kpatch:   FRC
74         @case `uname -rs` in \
75             "SunOS 4"*) ARCH=sunos \
76                 ;; \
77             "SunOS 5"*) ARCH=solaris \
78                 ;; \
79             ULTRIX*) ARCH=ultrix \
80                 ;; \
81             Linux*) ARCH=linux \
82                 ;; \
83             FreeBSD*) ARCH=freebsd \
84                 ;; \
85             NetBSD*) ARCH=netbsd \
86                 ;; \
87             OpenBSD*) ARCH=openbsd \
88                 ;; \
89             Rhapsody*) ARCH=osx \
90                 ;; \
91             *) ARCH=generic \
92                 ;; \
93         esac; \
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`" \
103             $@
104
105 FRC:    include/netatalk
106
107 include/netatalk:
108         -ln -s ../sys/netatalk include/netatalk
109
110 SYS=sunos ultrix solaris
111 VERSION=`date +%y%m%d`
112 DISTDIR=../netatalk-${VERSION}
113
114 sysclean : FRC
115         for i in ${SYS}; \
116             do (cd sys/$$i; ${MAKE} ${MFLAGS} sysclean); \
117         done
118
119 dist : sysclean clean
120         mkdir ${DISTDIR}
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