Annotation of 43BSD/sys/conf/Makefile.vax, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1980, 1986 Regents of the University of California.
                      3: # All rights reserved.  The Berkeley software License Agreement
                      4: # specifies the terms and conditions for redistribution.
                      5: #
                      6: #      @(#)Makefile.vax        7.1 (Berkeley) 6/5/86
                      7: #
                      8: # Makefile for 4.3 BSD
                      9: #
                     10: # This makefile is constructed from a machine description:
                     11: #      config machineid
                     12: # Most changes should be made in the machine description
                     13: #      /sys/conf/``machineid''
                     14: # after which you should do
                     15: #       config machineid
                     16: # Generic makefile changes should be made in
                     17: #      /sys/conf/Makefile.``machinetype''
                     18: # after which config should be rerun for all machines.
                     19: #
                     20: # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
                     21: #      IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
                     22: #
                     23: # -DTRACE      compile in kernel tracing hooks
                     24: # -DQUOTA      compile in file system quotas
                     25: # -DUUDMA      compile in unibus tu58 pseudo-dma code
                     26: #
                     27: C2=    /lib/c2
                     28: LD=    /bin/ld
                     29: INLINECMD= ../vax/inline/inline
                     30: INLINE=        ${INLINECMD} ${INLINEOPTS}
                     31: TOUCH= touch -f -c
                     32: 
                     33: INCLUDES= -I. -I../h
                     34: COPTS= ${INCLUDES} ${IDENT} -DKERNEL
                     35: CFLAGS=        -O ${COPTS}
                     36: 
                     37: AHEADS=        ../vax/pcb.m
                     38: 
                     39: %OBJS
                     40: 
                     41: %CFILES
                     42: 
                     43: %LOAD
                     44: 
                     45: clean:
                     46:        rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
                     47:                errs linterrs makelinks
                     48: 
                     49: lint: /tmp param.c
                     50:        @lint -hbxn -DGENERIC ${COPTS} ${PARAM} ../vax/Locore.c \
                     51:          ${CFILES} ../vax/swapgeneric.c ioconf.c param.c | \
                     52:            grep -v 'struct/union .* never defined' | \
                     53:            grep -v 'possible pointer alignment problem'
                     54: 
                     55: ../vax/symbols.sort: ../vax/symbols.raw
                     56:        grep -v '^#' ../vax/symbols.raw \
                     57:            | sed 's/^  //' | sort -u > ../vax/symbols.sort
                     58: 
                     59: ../vax/inline/inline: ../vax/inline/inline.h ../vax/inline/langpats.c
                     60: ../vax/inline/inline: ../vax/inline/libcpats.c ../vax/inline/machdep.c
                     61: ../vax/inline/inline: ../vax/inline/machpats.c ../vax/inline/main.c
                     62:        cd ../vax/inline; make
                     63: 
                     64: locore.o: assym.s ${AHEADS} ../vax/rpb.s ../vax/scb.s ubvec.s \
                     65:     ../vax/locore.s ubglue.s ../vax/mtpr.h ../vax/trap.h ../machine/psl.h \
                     66:     ../machine/pte.h ../vax/cpu.h mba.h
                     67:        cat assym.s ../vax/rpb.s ../vax/scb.s ubvec.s ../vax/locore.s \
                     68:            ubglue.s > locore.c
                     69:        cc -E -DLOCORE -I../vax ${COPTS} locore.c > locore.i
                     70:        @echo 'as -o locore.o $${AHEADS} locore.i'
                     71:        @as -o locore.o ${AHEADS} locore.i
                     72:        @rm locore.i
                     73: 
                     74: emulate.o: ../vax/emulate.s
                     75:        /lib/cpp -I. ${COPTS} ../vax/emulate.s | ${AS} -o emulate.o
                     76: 
                     77: # the following is necessary because autoconf.o depends on #if GENERIC
                     78: autoconf.o tu.o: Makefile
                     79: 
                     80: # the following are necessary because the files depend on the types of
                     81: # vax cpu's included in the system configuration
                     82: clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
                     83: crl.o flp.o mba.o uba.o vaxcpu.o : Makefile
                     84: 
                     85: # depend on network configuration
                     86: af.o uipc_proto.o locore.o: Makefile
                     87: 
                     88: # depend on maxusers
                     89: assym.s: Makefile
                     90: 
                     91: assym.s: ../h/param.h ../machine/pte.h ../h/buf.h ../h/vmparam.h \
                     92:     ../h/vmmeter.h ../h/dir.h ../h/cmap.h ../h/map.h ../vaxuba/ubavar.h \
                     93:     ../vaxuba/ubareg.h ../h/proc.h ../h/msgbuf.h ../h/text.h ../h/user.h \
                     94:     ../vax/rpb.h
                     95:        cc ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
                     96:        ./a.out >assym.s; rm -f a.out
                     97: 
                     98: depend:        assym.s
                     99:        ${CC} -M ${COPTS} ${CFILES} | \
                    100:        sed -e ':loop' \
                    101:            -e 's/\.\.\/[^ /]*\/\.\./../' \
                    102:            -e 't loop' | \
                    103:        awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
                    104:                else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
                    105:                       else rec = rec " " $$2 } } \
                    106:              END { print rec } ' > makedep
                    107:        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
                    108:        echo '$$r makedep' >>eddep
                    109:        echo 'w' >>eddep
                    110:        cp Makefile Makefile.bak
                    111:        ex - Makefile < eddep
                    112:        rm eddep makedep
                    113: 
                    114: 
                    115: links:
                    116:        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
                    117:          sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
                    118:        echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
                    119:          sort -u | comm -23 - dontlink | \
                    120:          sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
                    121:        echo 'rm -f udiv.o;ln -s ../GENERIC/udiv.o udiv.o' >> makelinks
                    122:        echo 'rm -f urem.o;ln -s ../GENERIC/urem.o urem.o' >> makelinks
                    123:        sh makelinks && rm -f dontlink
                    124: 
                    125: tags:
                    126:        /usr/ucb/ctags ${CFILES}
                    127: 
                    128: print:
                    129:        @pr -f Makefile ../sys/TODO linterrs
                    130:        @/usr/ucb/ctags -x ${CFILES} | pr -f -h XREF
                    131:        @(size vmunix *.o) | pr -f -h sizes
                    132:        @ls -ls | pr -f
                    133:        @cd ../h; ls -ls | pr -f ; pr -f *.m *.h
                    134:        @echo 'once upon a time ...'
                    135:        @cd ../vax; pr -f Locore.c scb.s locore.s
                    136:        @cd ../vax/inline; make print
                    137:        @pr -f ${CFILES}
                    138: 
                    139: ioconf.o: ioconf.c ../h/param.h ../machine/pte.h ../h/buf.h ../h/map.h \
                    140:     ../vaxmba/mbavar.h ../h/vm.h ../vaxuba/ubavar.h
                    141:        ${CC} -c -S ${COPTS} ioconf.c
                    142:        ${C2} ioconf.s | ../vax/inline/inline | ${AS} -o ioconf.o
                    143:        rm -f ioconf.s
                    144: 
                    145: param.c: ../conf/param.c
                    146:        -rm -f param.c
                    147:        cp ../conf/param.c .
                    148: 
                    149: param.o: param.c Makefile
                    150:        ${CC} -c ${CFLAGS} ${PARAM} param.c
                    151: 
                    152: %RULES
                    153: 
                    154: # DO NOT DELETE THIS LINE -- make depend uses it
                    155: 

unix.superglobalmegacorp.com

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