|
|
1.1 root 1: # Copyright 1990 W. Jolitz 1.1.1.4 ! root 2: # from @(#)Makefile.i386 7.1 5/10/91 ! 3: # Makefile.i386,v 1.25 1993/07/19 16:52:16 mycroft Exp ! 4: # ! 5: # Makefile for NetBSD 1.1 root 6: # 7: # This makefile is constructed from a machine description: 8: # config machineid 9: # Most changes should be made in the machine description 10: # /sys/i386/conf/``machineid'' 11: # after which you should do 12: # config machineid 13: # Generic makefile changes should be made in 14: # /sys/i386/conf/Makefile.i386 15: # after which config should be rerun for all machines. 16: # 17: # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE 18: # IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING 19: # 20: # -DTRACE compile in kernel tracing hooks 21: # -DQUOTA compile in file system quotas 22: # 23: TOUCH= touch -f -c 24: LD= /usr/bin/ld 25: CC= cc 26: CPP= cpp 27: 1.1.1.4 ! root 28: S= ../../../.. ! 29: I386= ../.. 1.1 root 30: 1.1.1.4 ! root 31: INCLUDES= -I. -I$S/arch -I$S -I$S/sys ! 32: COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 1.1 root 33: ASFLAGS= 1.1.1.4 ! root 34: CFLAGS= -O ${DEBUG} ${COPTS} 1.1 root 35: 1.1.1.2 root 36: NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $< 37: NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 1.1.1.3 root 38: NORMAL_S= ${CPP} -I. -DLOCORE ${COPTS} $< | ${AS} ${ASFLAGS} -o $*.o 1.1.1.2 root 39: DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $< 40: DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $< 41: SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o 42: SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS} 43: SYSTEM_LD_HEAD= @echo loading $@; rm -f $@ 1.1.1.4 ! root 44: SYSTEM_LD= @${LD} -z -T ${LOAD_ADDRESS} -o $@ -X vers.o ${SYSTEM_OBJS} ! 45: SYSTEM_LD_TAIL= @echo rearranging symbols; symorder symbols.sort $@; /usr/sbin/dbsym -fT ${LOAD_ADDRESS} $@; size $@; chmod 755 $@ 1.1.1.3 root 46: 1.1.1.4 ! root 47: # (XXX) ok, this is weird. but we've got a working ed, and a broken ex, and ! 48: # the script is identical for either... -- cgd ! 49: # ! 50: GPROF.EX= /usr/src/lib/csu/i386/gprof.ex 1.1.1.3 root 51: PROFILE_C= ${CC} -S -c ${CFLAGS} $< ; \ 1.1.1.4 ! root 52: ed - $*.s < ${GPROF.EX} ; \ 1.1.1.3 root 53: ${AS} -o $@ $*.s ; \ 54: rm -f $*.s 1.1.1.2 root 55: 1.1 root 56: %OBJS 57: 58: %CFILES 59: 60: %LOAD 61: 62: clean: 1.1.1.4 ! root 63: rm -f eddep *netbsd tags *.o locore.i [a-uw-z]*.s \ ! 64: errs linterrs makelinks genassym 1.1 root 65: 66: lint: /tmp param.c 67: @lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \ 68: ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \ 69: grep -v 'struct/union .* never defined' | \ 70: grep -v 'possible pointer alignment problem' 71: 72: symbols.sort: ${I386}/i386/symbols.raw 73: grep -v '^#' ${I386}/i386/symbols.raw \ 74: | sed 's/^ //' | sort -u > symbols.sort 75: 76: locore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h \ 1.1.1.4 ! root 77: machine/pte.h ${I386}/isa/vector.s ${I386}/isa/icu.s \ ! 78: $S/sys/errno.h machine/specialreg.h ${I386}/isa/debug.h \ ! 79: ${I386}/isa/icu.h ${I386}/isa/isa.h vector.h $S/net/netisr.h 1.1 root 80: ${CPP} -I. -DLOCORE ${COPTS} ${I386}/i386/locore.s | \ 81: ${AS} ${ASFLAGS} -o locore.o 82: 83: # the following is necessary because autoconf.o depends on #if GENERIC 84: autoconf.o: Makefile 85: 86: # depend on network configuration 87: af.o uipc_proto.o locore.o: Makefile 88: 89: # depend on maxusers 90: assym.s machdep.o: Makefile 91: 92: # depends on KDB (cons.o also depends on GENERIC) 93: trap.o cons.o: Makefile 94: 95: assym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \ 1.1.1.2 root 96: $S/sys/vmmeter.h \ 1.1 root 97: $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h 98: 99: assym.s: genassym 100: ./genassym >assym.s 101: 102: genassym: 103: ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \ 104: ${I386}/i386/genassym.c -o genassym 105: 106: depend: assym.s param.c 1.1.1.4 ! root 107: sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c param.c ${I386}/i386/conf.c 1.1.1.2 root 108: sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c 1.1 root 109: 110: links: 111: egrep '#if' ${CFILES} | sed -f $S/conf/defines | \ 112: sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink 113: echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \ 114: sort -u | comm -23 - dontlink | \ 115: sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks 116: sh makelinks && rm -f dontlink 117: 118: tags: 119: @echo "see $S/kern/Makefile for tags" 120: 1.1.1.2 root 121: ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \ 1.1 root 122: ${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h 1.1.1.2 root 123: ${CC} -c ${CFLAGS} ioconf.c 124: 1.1.1.4 ! root 125: conf.o: ${I386}/i386/conf.c 1.1.1.2 root 126: ${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c 1.1 root 127: 128: param.c: $S/conf/param.c 129: -rm -f param.c 130: cp $S/conf/param.c . 131: 132: param.o: param.c Makefile 133: ${CC} -c ${CFLAGS} ${PARAM} param.c 134: 1.1.1.4 ! root 135: vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} 1.1.1.3 root 136: sh $S/conf/newvers.sh ${KERN_IDENT} ${IDENT} 1.1.1.4 ! root 137: ${CC} ${CFLAGS} -c vers.c 1.1.1.3 root 138: 1.1 root 139: %RULES 140: 141: # DO NOT DELETE THIS LINE -- make depend uses it 142:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.