Annotation of Net2/arch/i386/conf/makefile.i386, revision 1.1.1.2

1.1       root        1: # Copyright 1990 W. Jolitz
                      2: # @(#)Makefile.i386    7.1 5/10/91
                      3: # Makefile for 4.3 BSD-Reno
                      4: #
                      5: # This makefile is constructed from a machine description:
                      6: #      config machineid
                      7: # Most changes should be made in the machine description
                      8: #      /sys/i386/conf/``machineid''
                      9: # after which you should do
                     10: #       config machineid
                     11: # Generic makefile changes should be made in
                     12: #      /sys/i386/conf/Makefile.i386
                     13: # after which config should be rerun for all machines.
                     14: #
                     15: # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE INVISIBLE TO MAKEFILE
                     16: #      IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
                     17: #
                     18: # -DTRACE      compile in kernel tracing hooks
                     19: # -DQUOTA      compile in file system quotas
                     20: #
                     21: TOUCH= touch -f -c
                     22: LD=    /usr/bin/ld
                     23: CC=    cc 
                     24: CPP=   cpp
                     25: 
                     26: S=     ../..
                     27: I386=  ../../i386
                     28: 
                     29: INCLUDES= -I. -I$S -I$S/sys
                     30: COPTS= ${INCLUDES} ${IDENT} -DKERNEL -Di386 -DNPX
                     31: ASFLAGS=
                     32: CFLAGS=        -O ${COPTS}
                     33: 
1.1.1.2 ! root       34: NORMAL_C= ${CC} -c ${CFLAGS} ${PROF} $<
        !            35: NORMAL_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
        !            36: DRIVER_C= ${CC} -c ${CFLAGS} ${PROF} $<
        !            37: DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
        !            38: SYSTEM_OBJS=locore.o ${OBJS} param.o ioconf.o conf.o
        !            39: SYSTEM_DEP=Makefile symbols.sort ${SYSTEM_OBJS}
        !            40: SYSTEM_LD_HEAD=        @echo loading $@; rm -f $@
        !            41: SYSTEM_LD= @${LD} -z -T FE000000 -o $@ -X ${SYSTEM_OBJS}
        !            42: SYSTEM_LD_TAIL= @echo rearranging symbols; symorder symbols.sort $@; size $@; chmod 755 $@
        !            43: 
1.1       root       44: %OBJS
                     45: 
                     46: %CFILES
                     47: 
                     48: %LOAD
                     49: 
                     50: clean:
1.1.1.2 ! root       51:        rm -f eddep *386bsd tags *.o locore.i [a-uw-z]*.s \
1.1       root       52:                errs linterrs makelinks
                     53: 
                     54: lint: /tmp param.c
                     55:        @lint -hbxn -I. -DGENERIC -Dvolatile= ${COPTS} ${PARAM} \
                     56:          ${I386}/i386/Locore.c ${CFILES} ioconf.c param.c | \
                     57:            grep -v 'struct/union .* never defined' | \
                     58:            grep -v 'possible pointer alignment problem'
                     59: 
                     60: symbols.sort: ${I386}/i386/symbols.raw
                     61:        grep -v '^#' ${I386}/i386/symbols.raw \
                     62:            | sed 's/^  //' | sort -u > symbols.sort
                     63: 
                     64: locore.o: assym.s ${I386}/i386/locore.s machine/trap.h machine/psl.h \
                     65:        machine/pte.h vector.s ${I386}/isa/icu.s ${I386}/isa/isa.h \
                     66:        ${I386}/isa/icu.h
                     67:        ${CPP} -I. -DLOCORE ${COPTS} ${I386}/i386/locore.s | \
                     68:                ${AS} ${ASFLAGS} -o locore.o
                     69: 
                     70: # the following is necessary because autoconf.o depends on #if GENERIC
                     71: autoconf.o: Makefile
                     72: 
                     73: # depend on network configuration
                     74: af.o uipc_proto.o locore.o: Makefile
                     75: 
                     76: # depend on maxusers
                     77: assym.s machdep.o: Makefile
                     78: 
                     79: # depends on KDB (cons.o also depends on GENERIC)
                     80: trap.o cons.o: Makefile
                     81: 
                     82: assym.s: $S/sys/param.h machine/pte.h $S/sys/buf.h \
1.1.1.2 ! root       83:     $S/sys/vmmeter.h \
1.1       root       84:     $S/sys/proc.h $S/sys/msgbuf.h machine/vmparam.h
                     85: 
                     86: assym.s: genassym
                     87:        ./genassym >assym.s
                     88: 
                     89: genassym:
                     90:        ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} \
                     91:                 ${I386}/i386/genassym.c -o genassym
                     92: 
                     93: depend: assym.s param.c
1.1.1.2 ! root       94:        sh /usr/bin/mkdep ${COPTS} ${CFILES} ioconf.c
        !            95:        sh /usr/bin/mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${I386}/i386/genassym.c
1.1       root       96: 
                     97: links:
                     98:        egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
                     99:          sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
                    100:        echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
                    101:          sort -u | comm -23 - dontlink | \
                    102:          sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
                    103:        sh makelinks && rm -f dontlink
                    104: 
                    105: tags:
                    106:        @echo "see $S/kern/Makefile for tags"
                    107: 
1.1.1.2 ! root      108: ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
1.1       root      109:     ${I386}/isa/isa_device.h ${I386}/isa/isa.h ${I386}/isa/icu.h
1.1.1.2 ! root      110:        ${CC} -c ${CFLAGS} ioconf.c
        !           111: 
        !           112: conf.o: $S/sys/param.h $S/sys/systm.h $S/sys/buf.h $S/sys/ioctl.h \
        !           113:        $S/sys/tty.h $S/sys/conf.h ${I386}/i386/conf.c
        !           114:        ${CC} -traditional -c ${CFLAGS} ${I386}/i386/conf.c
1.1       root      115: 
                    116: param.c: $S/conf/param.c
                    117:        -rm -f param.c
                    118:        cp $S/conf/param.c .
                    119: 
                    120: param.o: param.c Makefile
                    121:        ${CC} -c ${CFLAGS} ${PARAM} param.c
                    122: 
                    123: %RULES
                    124: 
                    125: # DO NOT DELETE THIS LINE -- make depend uses it
                    126: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.