1# |
2# $Id: Makefile,v 1.15 1994/09/03 02:38:28 paul Exp $ |
3# 4# Make command line options: 5# -DCLOBBER will remove /usr/include and MOST of /usr/lib 6# -DMAKE_LOCAL to add ./local to the SUBDIR list 7# -DMAKE_PORTS to add ./ports to the SUBDIR list 8# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 9# -DNOCRYPT will prevent building of crypt versions 10# XXX2 -DNOKERBEROS do not build Kerberos 11# -DNOOBJDIR do not run ``${MAKE} obj'' 12# -DNOPROFILE do not build profiled libraries 13# -DNOSECURE do not go into secure subdir |
14# -DNOEBONES do not make eBones (kerberosIV) |
15# 16# XXX2 Mandatory, and Kerberos will not build sucessfully yet 17 18# Put initial settings here. 19NOKERBEROS= yes 20SUBDIR= 21 22.if exists(bin) --- 15 unchanged lines hidden (view full) --- 38SUBDIR+= include 39.endif 40.if exists(lib) 41SUBDIR+= lib 42.endif 43.if exists(kerberosIV) && !defined(NOCRYPT) && !defined(NOKERBEROS) 44SUBDIR+= kerberosIV 45.endif |
46.if exists(eBones) && !defined(NOCRYPT) && defined(NOKERBEROS) \ 47 && !defined(NOEBONES) 48SUBDIR+= eBones 49.endif |
50.if exists(libexec) 51SUBDIR+= libexec 52.endif 53.if exists(sbin) 54SUBDIR+= sbin 55.endif 56.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE) 57SUBDIR+= secure --- 102 unchanged lines hidden (view full) --- 160 rm -rf ${DESTDIR}/usr/include 161 mkdir ${DESTDIR}/usr/include 162 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include 163 chmod 755 ${DESTDIR}/usr/include 164.endif 165 cd ${.CURDIR}/include && ${MAKE} install 166#XXX cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall 167#XXX cd ${.CURDIR}/gnu/usr.bin/cc/libobjc && ${MAKE} beforeinstall |
168.if exists(kerberosIV) && !defined(NOCRYPT) && !defined(NOKERBEROS) |
169 cd ${.CURDIR}/kerberosIV/include && ${MAKE} install 170.endif 171 cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall 172 cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall 173 cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall 174 cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall |
175.if exists(eBones) && !defined(NOCRYPT) && defined(NOKERBEROS) && \ 176 !defined(NOEBONES) 177 cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall 178.endif |
179 180libraries: 181 @echo "--------------------------------------------------------------" 182 @echo " Rebuilding ${DESTDIR}/usr/lib" 183 @echo "--------------------------------------------------------------" 184 @echo 185.if defined(CLOBBER) 186 find ${DESTDIR}/usr/lib \! -name '*.s[ao].*' -a \! -type d | \ --- 8 unchanged lines hidden (view full) --- 195 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 196.endif 197.if exists(lib) 198 cd ${.CURDIR}/lib && \ 199 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 200.endif 201 cd ${.CURDIR}/usr.bin/lex/lib && \ 202 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} |
203.if exists(kerberosIV) && !defined(NOCRYPT) && !defined(NOKERBEROS) |
204 cd ${.CURDIR}/kerberosIV/acl && \ 205 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 206 cd ${.CURDIR}/kerberosIV/des && \ 207 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 208 cd ${.CURDIR}/kerberosIV/kdb && \ 209 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 210 cd ${.CURDIR}/kerberosIV/krb && \ 211 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 212.endif |
213.if exists(eBones) && !defined(NOCRYPT) && defined(NOKERBEROS) && \ 214 !defined(NOEBONES) 215 cd ${.CURDIR}/eBones/des && \ 216 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 217 cd ${.CURDIR}/eBones/acl && \ 218 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 219 cd ${.CURDIR}/eBones/kdb && \ 220 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 221 cd ${.CURDIR}/eBones/krb && \ 222 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 223.endif |
224 225tools: 226 @echo "--------------------------------------------------------------" 227 @echo " Rebuilding ${DESTDIR} Compiler and Make" 228 @echo "--------------------------------------------------------------" 229 @echo 230 cd ${.CURDIR}/gnu/usr.bin/cc && \ 231 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 232 cd ${.CURDIR}/usr.bin/make && \ 233 ${MAKE} depend all install ${CLEANDIR} ${OBJDIR} 234 235.include <bsd.subdir.mk> |