Annotation of cci/usr/src/usr.lib/Makefile, revision 1.1.1.2

1.1       root        1: #      Makefile        4.10    83/07/09
                      2: #
                      3: AS=/bin/as
                      4: CC=/bin/cc
                      5: LD=/bin/ld
                      6: INCLDIR=/usr/src/include
                      7: LIBDIR=/lib
                      8: ULIBDIR=/usr/lib
                      9: DESTDIR=
                     10: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
                     11: 
                     12: CFLAGS=        -O -I${INCLDIR}
                     13: 
                     14: # Programs that live in subdirectories, and have makefiles of their own.
                     15: #
                     16: # To make them all, use the next 'SUBDIR':
                     17: # SUBDIR=      learn libcurses libdbm libln \
                     18: #      libm libmp libplot libtermlib lpr sendmail
1.1.1.2 ! root       19: SUBDIR=        learn libF77 libI77 libU77 libcurses libdbm libg libln libm libmp libtermlib libsys5 lpr sendmail tmac
1.1       root       20: 
                     21: # Shell scripts that need only be installed and are never removed.
                     22: #
                     23: SCRIPT=        makewhatis
                     24: 
                     25: # C programs that live in the current directory and do not need
                     26: # explicit make lines.
                     27: #
                     28: STD=   atrun getNAME makekey
                     29: 
                     30: # C programs that live in the current directory and need explicit make lines.
                     31: #
                     32: NSTD=  
                     33: 
                     34: all:   
                     35:        for i in ${SUBDIR}; do \
                     36:                (cd $$i; make ${MFLAGS} ${MAKEPARAM} ); done
                     37:        make ${STD} ${MFLAG} ${MAKEPARAM}
                     38: 
                     39: 
                     40: ${STD}:
                     41:        ${CC} ${CFLAGS} -o $@ [email protected] ${DESTDIR}/lib/libc.a
                     42: 
                     43: install:
                     44:        for i in ${SUBDIR}; do \
                     45:                (cd $$i; make ${MFLAGS} ${MAKEPARAM}; \
                     46:                         make ${MFLAGS} ${MAKEPARAM} install); done
                     47:        make ${STD} ${MFLAG} ${MAKEPARAM}
                     48:        for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/lib/$$i); done
                     49:        for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/lib/$$i); done
                     50:        install -c lib.b ${DESTDIR}/usr/lib/lib.b
1.1.1.2 ! root       51:        install -c Mail.rc ${DESTDIR}/usr/lib/Mail.rc
1.1       root       52:        install -c crontab ${DESTDIR}/usr/lib/crontab
                     53: 
                     54: clean:
                     55:        rm -f a.out core *.s *.o
                     56:        for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
                     57:        rm -f ${STD} ${NSTD}
                     58:        
                     59: cleansrc:
                     60: 
                     61:        rm -f *.[cb] *.sh getNAME* makekey* atrun Makefile 
                     62: 
                     63: depend:
                     64:        cat </dev/null >x.c
                     65:        for i in ${STD} ${NSTD}; do \
                     66:                (echo $$i: $$i.c >>makedep; \
                     67:                /bin/grep '^#[  ]*include' x.c $$i.c | sed \
                     68:                        -e '/\.\.\/h/d' \
                     69:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                     70:                        -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                     71:                        -e 's/\.c//' >>makedep); done
                     72:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                     73:        echo '$$r makedep' >>eddep
                     74:        echo 'w' >>eddep
                     75:        cp Makefile Makefile.bak
                     76:        ed - Makefile < eddep
                     77:        rm eddep makedep x.c
                     78:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                     79:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                     80:        echo '# see make depend above' >> Makefile
                     81: 
                     82: # Files listed in ${NSTD} have explicit make lines given below.
                     83: 
                     84: # DO NOT DELETE THIS LINE -- make depend uses it
                     85: 
                     86: atrun: atrun.c
                     87: atrun: /usr/include/stdio.h
                     88: atrun: /usr/include/sys/param.h
                     89: atrun: /usr/include/sys/dir.h
                     90: atrun: /usr/include/sys/time.h
                     91: atrun: /usr/include/sys/stat.h
                     92: getNAME: getNAME.c
                     93: getNAME: /usr/include/stdio.h
                     94: makekey: makekey.c
                     95: # DEPENDENCIES MUST END AT END OF FILE
                     96: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                     97: # 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.