Annotation of 43BSDTahoe/ucb/pascal/px/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: # Copyright (c) 1980 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    5.5 (Berkeley) 1/3/88
                      7: #
                      8: SCCSID = "@(#)Makefile 5.5 1/3/88"
                      9: 
                     10: DESTDIR =
                     11: BINDIR = /usr/ucb
                     12: LIBDIR = /usr/lib
                     13: SRCDIR = ../src
                     14: LIBPCDIR = ../../../usr.lib/libpc
                     15: CC = cc
                     16: CFLAGS = -O -I${SRCDIR} -I${LIBPCDIR}
                     17: OPT = /lib/c2
                     18: AS = as
                     19: RM = rm -f
                     20: 
                     21: PSHDR =        opc.c pic.c
                     22: 
                     23: PXHDR =        vars.h machdep.h
                     24: 
                     25: PXSRC =        int.c interp.c utilities.c
                     26: 
                     27: PXOBJ =        int.o interp.o utilities.o
                     28: 
                     29: PXUTL =        ${MACHINE}.sed clean.sed version.c
                     30: 
                     31: .c.o:
                     32:        ${CC} ${CFLAGS} -c $*.c
                     33: 
                     34: px: Version.c ${PXOBJ}
                     35:        ${CC} ${CFLAGS} -o px Version.c ${PXOBJ} -lpc -lm
                     36: Version.c: version.c
                     37:        ${CC} ${CFLAGS} -o version version.c
                     38:        ./version >Version.c
                     39:        ${RM}  version
                     40: interp.o interp.s: interp.c ${MACHINE}.sed
                     41:        ${CC} -S -I${SRCDIR} -I${LIBPCDIR} interp.c
                     42:        sed -f ${MACHINE}.sed <interp.s >tmp
                     43:        ${OPT} tmp interp.s
                     44:        /usr/lib/pc2 <interp.s >tmp
                     45:        mv tmp interp.s
                     46:        as -o interp.o interp.s
                     47: h02opcs.h: ${SRCDIR}/OPnames.h opc.c
                     48:        ${CC} ${CFLAGS} opc.c -o opc
                     49:        ./opc >h02opcs.h
                     50:        ${RM} opc
                     51: 
                     52: install: px
                     53:        install -s px ${DESTDIR}/usr/ucb/px
                     54: 
                     55: sources: ${PXHDR} ${PXSRC} ${PXUTL}
                     56: ${PSHDR}:
                     57:        ln -s ${SRCDIR}/$@ $@
                     58: 
                     59: clean:
                     60:        ${RM} *.o *.s px version opc* pic*
                     61:        ${RM} h02opcs.h errs lpr core tmp
                     62: 
                     63: prt: interp.s
                     64:        sed -f clean.sed <interp.s
                     65: 
                     66: grind: sources
                     67:        ${BINDIR}/ctags -v *.h *.c *.s | sort -f >index
                     68:        ${BINDIR}/vgrind -t -x index >lpr
                     69:        ${CC} ${CFLAGS} -o pic pic.c
                     70:        ${BINDIR}/vgrind -t -n READ_ME Makefile lst >>lpr
                     71:        ${BINDIR}/vgrind -t ${PXSRC} >>lpr
                     72:        ./pic >lst
                     73:        ${BINDIR}/vpr lst
                     74:        ${BINDIR}/vpr -t lpr
                     75:        ${RM} index pic lst
                     76: 
                     77: depend:        sources
                     78:        ls *.c | sed 's;^\(.*\)\.c;\1.o: \1.c;' >makedep
                     79:        grep '^#[       ]*include' *.c | sed \
                     80:                -e '/<.*>/d' \
                     81:                -e 's;:[^"]*"\([^"]*\)".*;: \1;' \
                     82:                -e 's/\.c/\.o/' \
                     83:                -e 's;: libpc.h;: ${LIBPCDIR}/libpc.h;' \
                     84:                -e 's;: objfmt.h;: ${SRCDIR}/objfmt.h;' \
                     85:                -e 's;: OPnames.h;: ${SRCDIR}/OPnames.h;' >>makedep
                     86:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                     87:        echo '$$r makedep' >>eddep
                     88:        echo 'w' >>eddep
                     89:        cp Makefile Makefile.bak
                     90:        ed - Makefile < eddep
                     91:        rm eddep makedep
                     92:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     93:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     94:        echo '# see make depend above' >> Makefile
                     95: 
                     96: # DO NOT DELETE THIS LINE -- make depend uses it
                     97: # DEPENDENCIES MUST END AT END OF FILE
                     98: Version.o: Version.c
                     99: int.o: int.c
                    100: interp.o: interp.c
                    101: opc.o: opc.c
                    102: utilities.o: utilities.c
                    103: version.o: version.c
                    104: int.o: whoami.h
                    105: int.o: vars.h
                    106: int.o: ../../../usr.lib/libpc/libpc.h
                    107: int.o: ../src/objfmt.h
                    108: interp.o: whoami.h
                    109: interp.o: vars.h
                    110: interp.o: ../src/objfmt.h
                    111: interp.o: h02opcs.h
                    112: interp.o: machdep.h
                    113: interp.o: ../../../usr.lib/libpc/libpc.h
                    114: opc.o: ../src/OPnames.h
                    115: utilities.o: whoami.h
                    116: utilities.o: vars.h
                    117: utilities.o: ../src/objfmt.h
                    118: # DEPENDENCIES MUST END AT END OF FILE
                    119: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                    120: # see make depend above

unix.superglobalmegacorp.com

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