Annotation of 43BSD/lib/libc/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    4.19 (Berkeley) 3/9/86
                      7: #
                      8: #
                      9: # The system has two monitoring schemes, utilizing either ``prof''
                     10: # or ``gprof''. DFLMON determines the default profiler; mon.o
                     11: # specifies that ``prof'' is the default, gmon.o specifies that
                     12: # ``gprof'' is the default.
                     13: #
                     14: # Machine dependent routines are located in a subtree which parallels
                     15: # the top directories.  This subtree is identified by the machine name.
                     16: #
                     17: # Compatibility routines are kept in directories with a prefixing
                     18: # ``compat'' (so they all sort together).
                     19: # 
                     20: # The C run-time startup code is always machine dependent and expected
                     21: # to be located in ${MACHINE}/csu
                     22: #
                     23: # All files contain sccsid strings, but these are not compiled into
                     24: # library objects by default, as a space-saving measure.  To produce
                     25: # a library that contains these strings in every object except
                     26: # system call stubs, add -DLIBC_SCCS to DEFS below; to put these
                     27: # strings into system call stubs, use -DSYSLIBC_SCCS.
                     28: #
                     29: # There are two possible methods of doing host name look up.  They are
                     30: # to use the name server or /etc/hosts. HOSTLOOKUP defines which method
                     31: # is to be compiled into libc  :
                     32: #                                                                   
                     33: #      defining HOSTLOOKUP to be "named", compiles the         
                     34: #      host lookup routines that use the BIND name server.
                     35: #
                     36: #      defining HOSTLOOKUP to be "hosttable", compiles
                     37: #      the host lookup routines that use /etc/hosts.
                     38: #
                     39: #HOSTLOOKUP=   hosttable
                     40: HOSTLOOKUP=    named
                     41: #                                                      
                     42: DESTDIR=
                     43: INSTALL=install -m 644
                     44: DFLMON=        mon.o
                     45: MACHINE=vax
                     46: DEFS=
                     47: COMPAT=        compat-4.1 compat-sys5
                     48: ALL=   gen inet net ns stdio ${MACHINE} ${COMPAT}
                     49: TAGSFILE=tags
                     50: 
                     51: libc.a libc_p.a: ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}
                     52:        rm -rf t1 tmp
                     53:        -mkdir tmp
                     54:        for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
                     55:        cd tmp; ar x ../net/${HOSTLOOKUP}/hostlib
                     56:        ls tmp/*.o | sort -t/ +1 > t1
                     57:        ar cr libc.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
                     58:        ar ma findiop.o libc.a exit.o
                     59:        ar ma exit.o libc.a fakcu.o
                     60:        rm -f t1 tmp/*
                     61:        for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done
                     62:        cd tmp; ar x ../net/${HOSTLOOKUP}/hostlib_p
                     63:        ls tmp/*.o | sort -t/ +1 > t1
                     64:        ar cr libc_p.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
                     65:        ar ma findiop.o libc_p.a exit.o
                     66:        ar ma exit.o libc_p.a fakcu.o
                     67:        rm -rf t1 tmp
                     68: 
                     69: ${MACHINE}/csu ${ALL} net/${HOSTLOOKUP}: FRC
                     70:        cd $@; make ${MFLAGS} DEFS=${DEFS}
                     71: 
                     72: FRC:
                     73: 
                     74: install: 
                     75:        ${INSTALL} libc.a ${DESTDIR}/lib/libc.a
                     76:        ranlib ${DESTDIR}/lib/libc.a
                     77:        ${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a
                     78:        ranlib ${DESTDIR}/usr/lib/libc_p.a
                     79:        cd ${MACHINE}/csu; make DESTDIR=${DESTDIR} install
                     80: 
                     81: tags:
                     82:        for i in ${ALL}; do \
                     83:                (cd $$i; make ${MFLAGS} TAGSFILE=../${TAGSFILE} tags); \
                     84:        done
                     85:        cd net/${HOSTLOOKUP}; \
                     86:                make ${MFLAGS} TAGSFILE=../../${TAGSFILE} tags
                     87: 
                     88: clean:
                     89:        for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \
                     90:                do (cd $$i; make ${MFLAGS} clean); done
                     91:        rm -f t1 tmp/*.o
                     92:        -rmdir tmp
                     93: 
                     94: depend:
                     95:        for i in ${MACHINE}/csu ${ALL} net/hosttable net/named; \
                     96:                do (cd $$i; make ${MFLAGS} DEFS=${DEFS} depend); done

unix.superglobalmegacorp.com

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