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

#	Makefile	4.3	83/07/05
#

DESTDIR=
AS=/bin/as
CC=/bin/cc
LD=/bin/ld
INCLDIR=${DESTDIR}/usr/include
LIBDIR=${DESTDIR}/lib
ULIBDIR=${DESTDIR}/usr/lib
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}

INSTALL=install
ALL=	gen sys 

all: libsys5.a libsys5_p.a

libsys5.a libsys5_p.a: ${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 libsys5.a `lorder \`cat t1\` | tsort`
	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 libsys5_p.a `lorder \`cat t1\` | tsort` 
	rm -rf t1 tmp

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

FRC:

clean:
	for i in ${ALL}; do (cd $$i; make ${MFLAGS} clean); done
	rm -f tmp/*.o;
	rm libsys5.a libsys5_p.a
	-rmdir tmp

cleansrc: clean
	rm -f Makefile

install: all
	${INSTALL} libsys5.a ${DESTDIR}/usr/lib/libsys5.a
	ranlib ${DESTDIR}/usr/lib/libsys5.a
	${INSTALL} libsys5_p.a ${DESTDIR}/usr/lib/libsys5_p.a
	ranlib ${DESTDIR}/usr/lib/libsys5_p.a

unix.superglobalmegacorp.com

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