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

#	Makefile	4.17	83/08/19
#

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

# Programs that live in subdirectories, and have makefiles of their own.
#
#        SUBDIR=	awk csh diff make sed sh tp
SUBDIR=	awk csh diff make sed sh as adb

# Shell scripts that need only be installed and are never removed.
#
SCRIPT=	false true

# C programs that live in the current directory and do not need
# explicit make lines.
#
STD=	ar cat cc chgrp chmod cmp date dd du echo expr \
	grep hostid hostname kill ld ln login ls mail mkdir mt nice \
	nm od pagesize passwd pr pwd rm rmail rmdir size stty su sync \
	tar tee test time wall who write

# Programs that must run setuid to root
#
SETUID=	chgrp df login mail passwd su

# C programs that live in the current directory and need explicit make lines.
#
NSTD=	ps df ed

all:	${STD} ${NSTD} cp mv strip
	for i in ${SUBDIR}; do \
		(cd $$i; /bin/make ${MFLAGS} ${MAKEPARAM} ); done

${STD} mv cp strip:
	${CC} ${CFLAGS} -o $@ [email protected]

# take care with cp and mv, install uses them
install: all
	install -s cp ${DESTDIR}/bin/newcp; \
		/bin/mv ${DESTDIR}/bin/newcp ${DESTDIR}/bin/cp;
	/bin/rm -f ${DESTDIR}/bin/mv; /bin/cp mv ${DESTDIR}/bin/mv; /bin/rm -f mv; \
		/bin/strip ${DESTDIR}/bin/mv
	install -c strip ${DESTDIR}/bin; \
		/bin/strip ${DESTDIR}/bin/strip; \
		rm strip
	for i in ${SUBDIR}; do \
		(cd $$i; /bin/make ${MFLAGS} ${MAKEPARAM} install); done
	for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/bin/$$i); done
	for i in ${STD} ${NSTD}; do (install -s $$i ${DESTDIR}/bin/$$i); done
	for i in ${SETUID}; do (/etc/chown root ${DESTDIR}/bin/$$i; \
		chmod 4755 ${DESTDIR}/bin/$$i); done
	rm -f ${DESTDIR}/bin/[; ln ${DESTDIR}/bin/test ${DESTDIR}/bin/[
	rm -f ${DESTDIR}/bin/e; ln ${DESTDIR}/bin/ed ${DESTDIR}/bin/e

clean:
	rm -f a.out core *.s *.o errs
	for i in ${SUBDIR}; do (cd $$i; /bin/make ${MFLAGS} clean); done
	rm -f ${STD} ${NSTD} expr.c
	
cleansrc:
	rm -f *.c *.y *.sh Makefile

depend:
	cat </dev/null >x.c
	for i in ${STD} ${NSTD}; do \
		(echo $$i: $$i.c >>makedep; \
		/bin/grep '^#[ 	]*include' x.c $$i.c | sed \
			-e 's,<\(.*\)>,"$${INCLDIR}/\1",' \
			-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
			-e 's/\.c//' >>makedep); done
	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
	echo '$$r makedep' >>eddep
	echo 'w' >>eddep
	cp Makefile Makefile.bak
	ed - Makefile < eddep
	rm eddep makedep x.c
	echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
	echo '# see make depend above' >> Makefile

# Files listed in ${NSTD} have explicit make lines given below.

ps:
	${CC} ${CFLAGS} -o ps ps.c ${ULIBDIR}/libm.a

df:
	${CC} ${CFLAGS} -o df df.c

ed:
	${CC} ${CFLAGS} -DCRYPT -o ed ed.c

# DO NOT DELETE THIS LINE -- make depend uses it

ar: ar.c
ar: ${INCLDIR}/sys/types.h
ar: ${INCLDIR}/sys/stat.h
ar: ${INCLDIR}/sys/time.h
ar: ${INCLDIR}/stdio.h
ar: ${INCLDIR}/ar.h
ar: ${INCLDIR}/signal.h
cat: cat.c
cat: ${INCLDIR}/stdio.h
cat: ${INCLDIR}/sys/types.h
cat: ${INCLDIR}/sys/stat.h
cc: cc.c
cc: ${INCLDIR}/sys/param.h
cc: ${INCLDIR}/stdio.h
cc: ${INCLDIR}/ctype.h
cc: ${INCLDIR}/signal.h
cc: ${INCLDIR}/sys/dir.h
chgrp: chgrp.c
chgrp: ${INCLDIR}/stdio.h
chgrp: ${INCLDIR}/ctype.h
chgrp: ${INCLDIR}/sys/types.h
chgrp: ${INCLDIR}/sys/stat.h
chgrp: ${INCLDIR}/grp.h
chgrp: ${INCLDIR}/pwd.h
chmod: chmod.c
chmod: ${INCLDIR}/stdio.h
chmod: ${INCLDIR}/sys/types.h
chmod: ${INCLDIR}/sys/stat.h
cmp: cmp.c
cmp: ${INCLDIR}/stdio.h
cmp: ${INCLDIR}/ctype.h
date: date.c
date: ${INCLDIR}/stdio.h
date: ${INCLDIR}/sys/time.h
date: ${INCLDIR}/utmp.h
dd: dd.c
dd: ${INCLDIR}/stdio.h
dd: ${INCLDIR}/signal.h
du: du.c
du: ${INCLDIR}/stdio.h
du: ${INCLDIR}/sys/param.h
du: ${INCLDIR}/sys/stat.h
du: ${INCLDIR}/sys/dir.h
echo: echo.c
echo: ${INCLDIR}/stdio.h
ed: ed.c
ed: ${INCLDIR}/signal.h
ed: ${INCLDIR}/sgtty.h
ed: ${INCLDIR}/setjmp.h
expr: expr.c
expr: ${INCLDIR}/stdio.h
grep: grep.c
grep: ${INCLDIR}/stdio.h
grep: ${INCLDIR}/ctype.h
hostid: hostid.c
hostname: hostname.c
hostname: ${INCLDIR}/stdio.h
kill: kill.c
kill: ${INCLDIR}/signal.h
kill: ${INCLDIR}/ctype.h
ld: ld.c
ld: ${INCLDIR}/sys/types.h
ld: ${INCLDIR}/signal.h
ld: ${INCLDIR}/stdio.h
ld: ${INCLDIR}/ctype.h
ld: ${INCLDIR}/ar.h
ld: ${INCLDIR}/a.out.h
ld: ${INCLDIR}/ranlib.h
ld: ${INCLDIR}/sys/stat.h
ln: ln.c
ln: ${INCLDIR}/stdio.h
ln: ${INCLDIR}/sys/types.h
ln: ${INCLDIR}/sys/stat.h
ln: ${INCLDIR}/errno.h
login: login.c
login: ${INCLDIR}/sys/param.h
login: ${INCLDIR}/sys/quota.h
login: ${INCLDIR}/sys/stat.h
login: ${INCLDIR}/sys/time.h
login: ${INCLDIR}/sys/resource.h
login: ${INCLDIR}/sgtty.h
login: ${INCLDIR}/utmp.h
login: ${INCLDIR}/signal.h
login: ${INCLDIR}/pwd.h
login: ${INCLDIR}/stdio.h
login: ${INCLDIR}/lastlog.h
login: ${INCLDIR}/errno.h
ls: ls.c
ls: ${INCLDIR}/sys/param.h
ls: ${INCLDIR}/sys/stat.h
ls: ${INCLDIR}/sys/dir.h
ls: ${INCLDIR}/stdio.h
ls: ${INCLDIR}/sgtty.h
ls: ${INCLDIR}/pwd.h
ls: ${INCLDIR}/grp.h
ls: ${INCLDIR}/utmp.h
mail: mail.c
mail: ${INCLDIR}/ctype.h
mail: ${INCLDIR}/stdio.h
mail: ${INCLDIR}/pwd.h
mail: ${INCLDIR}/utmp.h
mail: ${INCLDIR}/signal.h
mail: ${INCLDIR}/sys/types.h
mail: ${INCLDIR}/sys/stat.h
mail: ${INCLDIR}/setjmp.h
mail: ${INCLDIR}/sysexits.h
mail: ${INCLDIR}/sys/socket.h
mail: ${INCLDIR}/netinet/in.h
mail: ${INCLDIR}/netdb.h
mkdir: mkdir.c
mkdir: ${INCLDIR}/stdio.h
mt: mt.c
mt: ${INCLDIR}/stdio.h
mt: ${INCLDIR}/ctype.h
mt: ${INCLDIR}/sys/types.h
mt: ${INCLDIR}/sys/mtio.h
mt: ${INCLDIR}/sys/ioctl.h
nice: nice.c
nice: ${INCLDIR}/stdio.h
nice: ${INCLDIR}/sys/time.h
nice: ${INCLDIR}/sys/resource.h
nm: nm.c
nm: ${INCLDIR}/sys/types.h
nm: ${INCLDIR}/ar.h
nm: ${INCLDIR}/stdio.h
nm: ${INCLDIR}/ctype.h
nm: ${INCLDIR}/a.out.h
nm: ${INCLDIR}/stab.h
nm: ${INCLDIR}/sys/stat.h
od: od.c
od: ${INCLDIR}/stdio.h
od: ${INCLDIR}/sys/types.h
od: ${INCLDIR}/sys/stat.h
pagesize: pagesize.c
passwd: passwd.c
passwd: ${INCLDIR}/sys/file.h
passwd: ${INCLDIR}/stdio.h
passwd: ${INCLDIR}/signal.h
passwd: ${INCLDIR}/pwd.h
passwd: ${INCLDIR}/errno.h
pr: pr.c
pr: ${INCLDIR}/stdio.h
pr: ${INCLDIR}/signal.h
pr: ${INCLDIR}/sys/types.h
pr: ${INCLDIR}/sys/stat.h
pwd: pwd.c
pwd: ${INCLDIR}/stdio.h
pwd: ${INCLDIR}/sys/param.h
rm: rm.c
rm: ${INCLDIR}/stdio.h
rm: ${INCLDIR}/sys/param.h
rm: ${INCLDIR}/sys/stat.h
rm: ${INCLDIR}/sys/dir.h
rmail: rmail.c
rmail: ${INCLDIR}/stdio.h
rmail: ${INCLDIR}/sysexits.h
rmdir: rmdir.c
rmdir: ${INCLDIR}/stdio.h
size: size.c
size: ${INCLDIR}/stdio.h
size: ${INCLDIR}/a.out.h
stty: stty.c
stty: ${INCLDIR}/stdio.h
stty: ${INCLDIR}/sgtty.h
su: su.c
su: ${INCLDIR}/stdio.h
su: ${INCLDIR}/pwd.h
su: ${INCLDIR}/sys/types.h
su: ${INCLDIR}/sys/time.h
su: ${INCLDIR}/sys/resource.h
sync: sync.c
tar: tar.c
tar: ${INCLDIR}/stdio.h
tar: ${INCLDIR}/sys/param.h
tar: ${INCLDIR}/sys/stat.h
tar: ${INCLDIR}/sys/dir.h
tar: ${INCLDIR}/sys/ioctl.h
tar: ${INCLDIR}/sys/mtio.h
tar: ${INCLDIR}/sys/time.h
tar: ${INCLDIR}/signal.h
tar: ${INCLDIR}/errno.h
tee: tee.c
tee: ${INCLDIR}/signal.h
tee: ${INCLDIR}/sys/types.h
tee: ${INCLDIR}/sys/stat.h
tee: ${INCLDIR}/errno.h
test: test.c
test: ${INCLDIR}/stdio.h
test: ${INCLDIR}/sys/types.h
test: ${INCLDIR}/sys/stat.h
time: time.c
time: ${INCLDIR}/stdio.h
time: ${INCLDIR}/signal.h
time: ${INCLDIR}/sys/types.h
time: ${INCLDIR}/sys/time.h
time: ${INCLDIR}/sys/resource.h
wall: wall.c
wall: ${INCLDIR}/stdio.h
wall: ${INCLDIR}/utmp.h
wall: ${INCLDIR}/sys/time.h
wall: ${INCLDIR}/signal.h
who: who.c
who: ${INCLDIR}/stdio.h
who: ${INCLDIR}/utmp.h
who: ${INCLDIR}/pwd.h
who: ${INCLDIR}/ctype.h
write: write.c
write: ${INCLDIR}/stdio.h
write: ${INCLDIR}/sys/types.h
write: ${INCLDIR}/sys/stat.h
write: ${INCLDIR}/signal.h
write: ${INCLDIR}/utmp.h
write: ${INCLDIR}/sys/time.h
ps: ps.c
ps: ${INCLDIR}/stdio.h
ps: ${INCLDIR}/ctype.h
ps: ${INCLDIR}/nlist.h
ps: ${INCLDIR}/pwd.h
ps: ${INCLDIR}/sys/param.h
ps: ${INCLDIR}/sys/tty.h
ps: ${INCLDIR}/sys/dir.h
ps: ${INCLDIR}/sys/user.h
ps: ${INCLDIR}/sys/proc.h
ps: ${INCLDIR}/machine/pte.h
ps: ${INCLDIR}/sys/vm.h
ps: ${INCLDIR}/sys/text.h
ps: ${INCLDIR}/sys/stat.h
ps: ${INCLDIR}/sys/mbuf.h
ps: ${INCLDIR}/math.h
df: df.c
df: ${INCLDIR}/sys/param.h
df: ${INCLDIR}/sys/fs.h
df: ${INCLDIR}/sys/stat.h
df: ${INCLDIR}/stdio.h
df: ${INCLDIR}/fstab.h
df: ${INCLDIR}/mtab.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# 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.