Makefile.i386 revision 1.1
11.1Scgd# Copyright 1990 W. Jolitz 21.1Scgd# @(#)Makefile.i386 7.1 5/10/91 31.1Scgd# Makefile for 4.3 BSD-Reno 41.1Scgd# 51.1Scgd# This makefile is constructed from a machine description: 61.1Scgd# config machineid 71.1Scgd# Most changes should be made in the machine description 81.1Scgd# /sys/i386/conf/``machineid'' 91.1Scgd# after which you should do 101.1Scgd# config machineid 111.1Scgd# Generic makefile changes should be made in 121.1Scgd# /sys/i386/conf/Makefile.i386 131.1Scgd# after which config should be rerun for all machines. 141.1Scgd# 151.1Scgd# N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE 161.1Scgd# IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING 171.1Scgd# 181.1Scgd# -DTRACE compile in kernel tracing hooks 191.1Scgd# -DQUOTA compile in file system quotas 201.1Scgd# 211.1ScgdTOUCH= touch -f -c 221.1ScgdLD= /usr/bin/ld 231.1ScgdCC= cc 241.1ScgdCPP= cpp 251.1Scgd 261.1ScgdS= ../.. 271.1ScgdI386= ../../i386 281.1Scgd 291.1ScgdINCLUDES= -I. -I$S -I$S/sys 301.1ScgdCOPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX 311.1ScgdASFLAGS= 321.1ScgdCFLAGS= -O ${COPTS} 331.1Scgd 341.1ScgdNORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $< 351.1ScgdNORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 361.1ScgdDRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $< 371.1ScgdDRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 381.1ScgdSYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o 391.1ScgdSYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS} 401.1ScgdSYSTEM_LD_HEAD= @echo loading $@; rm -f $@ 411.1ScgdSYSTEM_LD= @${LD} -z -T FE000000 -o $@ -X ${SYSTEM_OBJS} 421.1ScgdSYSTEM_LD_TAIL= @echo rearranging symbols; symorder symbols.sort $@; size $@; chmod 755 $@ 431.1Scgd 441.1Scgd%OBJS 451.1Scgd 461.1Scgd%CFILES 471.1Scgd 481.1Scgd%LOAD 491.1Scgd 501.1Scgdclean: 511.1Scgd rm -f eddep *386bsd tags *.o locore.i [a-uw-z]*.s \ 521.1Scgd errs linterrs makelinks 531.1Scgd 541.1Scgdlint: /tmp param.c 551.1Scgd @lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \ 561.1Scgd ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 571.1Scgd grep -v 'struct/union .* never defined' | \ 581.1Scgd grep -v 'possible pointer alignment problem' 591.1Scgd 601.1Scgdsymbols.sort: ${I386}/i386/symbols.raw 611.1Scgd grep -v '^#' ${I386}/i386/symbols.raw \ 621.1Scgd | sed 's/^ //' | sort -u > symbols.sort 631.1Scgd 641.1Scgdlocore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h \ 651.1Scgd machine/pte.h vector.s ${I386}/isa/icu.s ${I386}/isa/isa.h \ 661.1Scgd ${I386}/isa/icu.h 671.1Scgd ${CPP} -I. -DLOCORE ${COPTS} ${I386}/i386/locore.s | \ 681.1Scgd ${AS} ${ASFLAGS} -o locore.o 691.1Scgd 701.1Scgd# the following is necessary because autoconf.o depends on #if GENERIC 711.1Scgdautoconf.o: Makefile 721.1Scgd 731.1Scgd# depend on network configuration 741.1Scgdaf.o uipc_proto.o locore.o: Makefile 751.1Scgd 761.1Scgd# depend on maxusers 771.1Scgdassym.s machdep.o: Makefile 781.1Scgd 791.1Scgd# depends on KDB (cons.o also depends on GENERIC) 801.1Scgdtrap.o cons.o: Makefile 811.1Scgd 821.1Scgdassym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \ 831.1Scgd $S/sys/vmmeter.h \ 841.1Scgd $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h 851.1Scgd 861.1Scgdassym.s: genassym 871.1Scgd ./genassym >assym.s 881.1Scgd 891.1Scgdgenassym: 901.1Scgd ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \ 911.1Scgd ${I386}/i386/genassym.c -o genassym 921.1Scgd 931.1Scgddepend: assym.s param.c 941.1Scgd sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c 951.1Scgd sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c 961.1Scgd 971.1Scgdlinks: 981.1Scgd egrep '#if' ${CFILES} | sed -f $S/conf/defines | \ 991.1Scgd sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink 1001.1Scgd echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \ 1011.1Scgd sort -u | comm -23 - dontlink | \ 1021.1Scgd sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks 1031.1Scgd sh makelinks && rm -f dontlink 1041.1Scgd 1051.1Scgdtags: 1061.1Scgd @echo "see $S/kern/Makefile for tags" 1071.1Scgd 1081.1Scgdioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \ 1091.1Scgd ${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h 1101.1Scgd ${CC} -c ${CFLAGS} ioconf.c 1111.1Scgd 1121.1Scgdconf.o: $S/sys/param.h $S/sys/systm.h $S/sys/buf.h $S/sys/ioctl.h \ 1131.1Scgd $S/sys/tty.h $S/sys/conf.h ${I386}/i386/conf.c 1141.1Scgd ${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c 1151.1Scgd 1161.1Scgdparam.c: $S/conf/param.c 1171.1Scgd -rm -f param.c 1181.1Scgd cp $S/conf/param.c . 1191.1Scgd 1201.1Scgdparam.o: param.c Makefile 1211.1Scgd ${CC} -c ${CFLAGS} ${PARAM} param.c 1221.1Scgd 1231.1Scgd%RULES 1241.1Scgd 1251.1Scgd# DO NOT DELETE THIS LINE -- make depend uses it 1261.1Scgd 127