]> arthur.barton.de Git - netatalk.git/blob - Makefile
*** empty log message ***
[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 storing server message files
6 MSGDIR=$(DESTDIR)/svrmessage
7 # for system-level binaries
8 SBINDIR=$(DESTDIR)/sbin
9 # for user-level binaries
10 BINDIR=$(DESTDIR)/bin
11 # for program libraries (*.a)
12 LIBDIR=$(DESTDIR)/lib
13 # for machine-independent resources (pagecount.ps, etc.)
14 RESDIR=$(DESTDIR)/etc
15 # for configuration files (AppleVolumes.system, etc.)
16 ETCDIR=$(DESTDIR)/etc
17 # for include files
18 INCDIR=$(DESTDIR)/include
19 # Group that will have "root" access
20 ADMIN_GRP=macadmin
21 # Root of man pages.  Subdirectories will be
22 # ${MANDIR}/man1, ${MANDIR}/man4, and ${MANDIR}/man8.
23 MANDIR=$(DESTDIR)/man
24
25 #INSTALL_PREFIX=
26 #SBINDIR=${INSTALL_PREFIX}/usr/sbin
27 #BINDIR=${INSTALL_PREFIX}/usr/bin
28 #LIBDIR=${INSTALL_PREFIX}/usr/lib
29 #RESDIR=${INSTALL_PREFIX}/usr/lib/atalk
30 #ETCDIR=${INSTALL_PREFIX}/etc/atalk
31 #INCDIR=${INSTALL_PREFIX}/usr/include
32 #MANDIR=${INSTALL_PREFIX}/usr/man
33
34 # Location of the Berkeley v2 db library and include files. 
35 # NOTE: leave this commented out for now. it's a placeholder for a future
36 # feature.
37 #DB2DIR=/usr/local/BerkeleyDB
38
39 # Location of the Diffie-Hellman library and include files. Uncomment
40 # this out if you want DHX as an allowable UAM for afpd. Currently,
41 # this is set up expecting libcrypto from the openssl project. As a
42 # result, this option will enable all of the encrypted authentication
43 # methods (including the Randnum Exchange ones). DHX expects cast.h,
44 # dh.h, and bn.h in $CRYPTODIR/include with -lcrypto in
45 # $CRYPTODIR/lib. NOTE: os x server will complain if you use both
46 # randnum exchange and DHX.
47 # CRYPTODIR=/usr/local/ssl
48
49 # Location of the DES library and include files. Uncomment this out if
50 # you want Randnum Exchange and 2-Way Randnum Exchange as allowable
51 # UAMs for afpd. We expect libdes.a in $DESDIR/lib and des.h in
52 # $DESDIR/include.  This option will get overridden by CRYPTODIR.
53 #DESDIR=/usr/local
54
55 # Location of the tcp wrapper library and include files. Comment this out
56 # if you don't want tcp wrapper support. having tcp wrapper support is
57 # highly recommended.
58 TCPWRAPDIR=/usr
59
60 # Location of PAM support library and include files. Uncomment this if
61 # you want to enable PAM support.
62 PAMDIR=/usr
63
64 # Location of cracklib support library and include files. This is used
65 # in the password changing routines. Uncomment this out if you want to
66 # enable support.
67 #CRACKDIR=/usr
68
69  
70 # Location of the AFS and Kerberos libraries and include files.  Uncomment
71 # and edit these if you want to include AFS or Kerberos support in afpd
72 # or Kerberos support in papd.
73 #AFSDIR=/usr/local/afs
74 #KRBDIR=/usr/local/kerberos
75
76 # Directory to store node addresses and login names for CAP style
77 # authenticated printing.  CAP style authenticated printing requires
78 # that a user mount an appletalk share before they can print.  Afpd
79 # stores the username in a file named after the Appletalk address which
80 # papd reads to determine if the user is allowed to print.  These files
81 # will be stored in the directory below.  Unfortunately, because afpd
82 # drops privledges, this directory must be writable by any user which
83 # connects to the server.  Usually, this means public write access (777
84 # permissions). Uncomment and edit the path if you want CAP style 
85 # authenticated printing support in afpd and papd.
86 #CAPDIR=/var/spool/capsec
87
88 ##########################################################################
89 all install depend clean tags kernel kinstall kpatch:   FRC
90         @case `uname -rs` in \
91             "SunOS 4"*) ARCH=sunos \
92                 ;; \
93             "SunOS 5"*) ARCH=solaris \
94                 ;; \
95             ULTRIX*) ARCH=ultrix \
96                 ;; \
97             Linux*) ARCH=linux \
98                 ;; \
99             FreeBSD*) ARCH=freebsd \
100                 ;; \
101             NetBSD*) ARCH=netbsd \
102                 ;; \
103             OpenBSD*) ARCH=openbsd \
104                 ;; \
105             Rhapsody*) ARCH=osx \
106                 ;; \
107             *) ARCH=generic \
108                 ;; \
109         esac; \
110         echo "Making $@ for $$ARCH..."; \
111         cd sys/$$ARCH && ${MAKE} ${MFLAGS} \
112             ADMIN_GRP="${ADMIN_GRP}" \
113             MSGDIR="${MSGDIR}" \
114             SBINDIR="${SBINDIR}" BINDIR="${BINDIR}" RESDIR="${RESDIR}"\
115             ETCDIR="${ETCDIR}" LIBDIR="${LIBDIR}" INCDIR="${INCDIR}" \
116             DESTDIR="${DESTDIR}" MANDIR="${MANDIR}" \
117             TCPWRAPDIR="${TCPWRAPDIR}" PAMDIR="${PAMDIR}" DB2DIR="${DB2DIR}" \
118             AFSDIR="${AFSDIR}" KRBDIR="${KRBDIR}" DESDIR="${DESDIR}" \
119             CRYPTODIR="${CRYPTODIR}" CRACKDIR="${CRACKDIR}" \
120             CAPDIR="${CAPDIR}" \
121             OSVERSION="`uname -r`" MACHINETYPE="`uname -m`" \
122             $@
123
124 FRC:    include/netatalk
125
126 include/netatalk:
127         -ln -s ../sys/netatalk include/netatalk
128
129 SYS=sunos ultrix solaris
130 VERSION=`date +%y%m%d`
131 DISTDIR=../netatalk-${VERSION}
132
133 sysclean : FRC
134         for i in ${SYS}; \
135             do (cd sys/$$i; ${MAKE} ${MFLAGS} sysclean); \
136         done
137
138 dist : sysclean clean
139         mkdir ${DISTDIR}
140         tar cfFFX - EXCLUDE . | (cd ${DISTDIR}; tar xvf - )
141         chmod +w ${DISTDIR}/Makefile ${DISTDIR}/include/atalk/paths.h \
142                 ${DISTDIR}/sys/solaris/Makefile
143         echo ${VERSION} > ${DISTDIR}/VERSION