File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / lib / libc / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

#	Makefile	4.6	83/07/02
#
# The system has two monitoring schemes, utilizing either ``prof''
# or ``gprof''. DFLMON determines the default profiler; mon.o
# specifies that ``prof'' is the default, gmon.o specifies that
# ``gprof'' is the default.
#
# Machine dependent routines are located in a subtree which parallels
# the top directories.  This subtree is identified by the machine name.
#
# Compatibility routines are kept in directories with a prefixing
# ``compat'' (so they all sort together).
# 
# The C run-time startup code is always machine dependent and expected
# to be located in ${MACHINE}/csu
#
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
DESTDIR=
INSTALL=install
DFLMON=	mon.o
MACHINE=tahoe
# To be used when running in 4.2
COMPAT=	compat-4.1 compat-sys5
# When the network is here, use this:
#COMPAT=	compat-4.1 
ALL=	gen inet net stdio ${MACHINE} ${COMPAT}

all: libc.a libc_p.a libsa.a

libc.a libc_p.a: ${MACHINE}/csu ${ALL}
	-mkdir tmp
	for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib); done
	ls tmp/*.o | sort -t/ +1 > t1
	ar cr libc.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
	ar ma flsbuf.o libc.a exit.o
	rm -f t1 tmp/*
	for i in ${ALL}; do (cd tmp; ar x ../$$i/$${i}lib_p); done
	ls tmp/*.o | sort -t/ +1 > t1
	ar cr libc_p.a `lorder \`cat t1\` | tsort` ${MACHINE}/csu/${DFLMON}
	ar ma flsbuf.o libc_p.a exit.o
	rm -rf t1 tmp

libsa.a:
	cd gen; make ${MFLAGS} ${MAKEPARAM} libsa

${MACHINE}/csu ${ALL}: FRC
	cd $@; make ${MFLAGS} ${MAKEPARAM}

FRC:

clean:
	for i in ${MACHINE}/csu ${ALL}; do (cd $$i; make ${MFLAGS} clean); done
	rm -f t1 tmp/*.o
	-rmdir tmp
	rm -f Makefile

install: all
	${INSTALL} libc.a ${DESTDIR}/lib/libc.a
	ranlib ${DESTDIR}/lib/libc.a
	${INSTALL} libc_p.a ${DESTDIR}/usr/lib/libc_p.a
	ranlib ${DESTDIR}/usr/lib/libc_p.a
	${INSTALL} gen/libsa.a ${DESTDIR}/usr/lib/libsa.a
	cd ${MACHINE}/csu; make ${MAKEPARAM} install

unix.superglobalmegacorp.com

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