# @(#)Makefile.tahoe 1.24 (Berkeley) 07/23/92 # # Makefile for 4.4 BSD # # This makefile is constructed from a machine description: # config machineid # Most changes should be made in the machine description # /sys/tahoe/conf/``machineid'' # after which you should do # config machineid # Machine generic makefile changes should be made in # /sys/conf/Makefile.``machinetype'' # after which config should be rerun for all machines of that type. # # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE # IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING # # -DTRACE compile in kernel tracing hooks # -DQUOTA compile in file system quotas # CPP= /usr/bin/cpp C2= /usr/old/libexec/c2 LD= /usr/bin/ld S= ../.. TAHOE= ../../tahoe INCLUDES= -I. -I$S -I$S/sys COPTS= ${INCLUDES} ${IDENT} -DKERNEL CFLAGS= -O ${COPTS} INLINECMD= ${TAHOE}/inline/obj/inline INLINE= ${INLINECMD} ${INLINEOPTS} %OBJS %CFILES %LOAD clean: rm -f eddep *vmunix tags *.o locore.i [a-uw-z]*.s \ Errs errs linterrs makelinks lint: /tmp param.c @lint -hbxn -I. -DGENERIC ${COPTS} ${PARAM} \ ${TAHOE}/tahoe/Locore.c ${CFILES} ioconf.c param.c | \ grep -v 'struct/union .* never defined' | \ grep -v 'possible pointer alignment problem' symbols.sort: ${TAHOE}/tahoe/symbols.raw grep -v '^#' ${TAHOE}/tahoe/symbols.raw \ | sed 's/^ //' | sort -u > symbols.sort ${INLINECMD}: cd ${TAHOE}/inline; make locore.o: assym.s ${TAHOE}/tahoe/scb.s vbvec.s ${TAHOE}/tahoe/locore.s locore.o: vbglue.s ${TAHOE}/include/mtpr.h ${TAHOE}/include/trap.h locore.o: ${TAHOE}/include/psl.h ${TAHOE}/include/pte.h ${TAHOE}/tahoe/cp.h locore.o: ${TAHOE}/tahoe/mem.h locore.o: cat assym.s ${TAHOE}/tahoe/scb.s vbvec.s ${TAHOE}/tahoe/locore.s \ vbglue.s > locore.c ${CC} -E -DLOCORE ${COPTS} locore.c > locore.i @echo 'as -o locore.o locore.i' @${AS} -o locore.o locore.i @rm locore.i # the following is necessary because autoconf.o depends on #if GENERIC autoconf.o: Makefile # depend on network configuration af.o uipc_proto.o locore.o: Makefile # depend on maxusers assym.s machdep.o: Makefile # depends on KDB (cons.o also depends on GENERIC) trap.o cons.o: Makefile assym.s: genassym ./genassym >assym.s genassym: ${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym \ ${TAHOE}/tahoe/genassym.c depend: assym.s param.c vnode_if.h mkdep ${COPTS} ${CFILES} ioconf.c mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${TAHOE}/tahoe/genassym.c links: egrep '#if' ${CFILES} | sed -f $S/conf/defines | \ sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \ sort -u | comm -23 - dontlink | \ sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks echo 'rm -f udiv.o;ln -s ../GENERIC/udiv.o udiv.o' >> makelinks echo 'rm -f urem.o;ln -s ../GENERIC/urem.o urem.o' >> makelinks sh makelinks && rm -f dontlink tags: @echo "see $S/kern/Makefile for tags" param.c: $S/conf/param.c rm -f param.c cp $S/conf/param.c . param.o: param.c Makefile ${CC} -c ${CFLAGS} ${PARAM} param.c vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src sh $S/kern/vnode_if.sh $S/kern/vnode_if.src vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src sh $S/kern/vnode_if.sh $S/kern/vnode_if.src %RULES