BSD 4_3_Net_2 release
[unix-history] / usr / src / sys / vax / conf / Makefile.vax
# @(#)Makefile.vax 7.18 (Berkeley) 12/16/90
# 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/vax/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 VISIBLE 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
# -DUUDMA compile in unibus tu58 pseudo-dma code
#
C2= /usr/libexec/c2
LD= /usr/bin/ld
S= ../..
VAX= ../../vax
INCLUDES= -I. -I$S -I$S/sys
COPTS= ${INCLUDES} ${IDENT} -DKERNEL
CFLAGS= -O ${COPTS}
INLINECMD= ${VAX}/inline/obj/inline
INLINE= ${INLINECMD} ${INLINEOPTS}
AHEADS= ${VAX}/vax/pcb.m
%OBJS
%CFILES
%LOAD
clean:
rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
Errs errs linterrs makelinks
lint: /tmp param.c
@lint -hbxn -DGENERIC ${COPTS} ${PARAM} \
${VAX}/vax/Locore.c ${CFILES} ioconf.c param.c | \
grep -v 'struct/union .* never defined' | \
grep -v 'possible pointer alignment problem'
symbols.sort: ${VAX}/vax/symbols.raw
grep -v '^#' ${VAX}/vax/symbols.raw \
| sed 's/^ //' | sort -u > symbols.sort
${INLINECMD}:
cd ${VAX}/inline; make
locore.o: assym.s ${AHEADS} ${VAX}/vax/rpb.s ${VAX}/vax/scb.s ubvec.s
locore.o: ${VAX}/vax/locore.s ubglue.s ${VAX}/include/mtpr.h
locore.o: ${VAX}/include/trap.h ${VAX}/include/psl.h ${VAX}/include/pte.h
locore.o: ${VAX}/include/cpu.h mba.h
locore.o:
cat assym.s ${VAX}/vax/rpb.s ${VAX}/vax/scb.s ubvec.s \
${VAX}/vax/locore.s ubglue.s > locore.c
${CC} -E -DLOCORE ${COPTS} locore.c > locore.i
@echo 'as -o locore.o $${AHEADS} locore.i'
@as -o locore.o ${AHEADS} locore.i
@rm locore.i
emulate.o: ${VAX}/vax/emulate.s
cpp -I. ${COPTS} ${VAX}/vax/emulate.s | ${AS} -o emulate.o
# the following is necessary because autoconf.o depends on #if GENERIC
autoconf.o tu.o: Makefile
# the following are necessary because the files depend on the types of
# vax cpu's included in the system configuration
clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
crl.o flp.o mba.o uba.o vaxcpu.o : Makefile
# depend on network configuration
af.o uipc_proto.o uipc_domain.o locore.o: Makefile
# depends on kdb being configured
trap.o: Makefile
# depend on maxusers
assym.s: Makefile
assym.s: genassym
./genassym >assym.s
genassym:
${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${VAX}/vax/genassym.c
depend: assym.s ${CFILES}
mkdep ${COPTS} ${.ALLSRC:M*.c} ioconf.c
mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${VAX}/vax/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"
ioconf.o:
${CC} -c -S ${COPTS} ioconf.c
${C2} ioconf.s | ${INLINE} | ${AS} -o ioconf.o
rm -f ioconf.s
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
%RULES