File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.bin / Makefile.crypt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:25:26 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.29	83/08/20
#

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

CFLAGS=	-O -I${INCLDIR}
CURFLGS = -lcurses -ltermlib

# Programs that live in subdirectories, and have makefiles of their own.
#
SUBDIR=	calendar cdb dc diction diff3 dr11 efl eqn f77 learn lex lint m4 neqn \
	nroff prof ratfor refer spell struct tbl tip troff uucp xsend yacc
 
# SUBDIR=calendar dc diff3 efl eqn learn lex lint m4 neqn \
#	 nroff refer spell struct tbl tip troff xsend yacc

# Shell scripts that need only be installed and are never removed.
#
SCRIPT=	install lorder man nohup

# C programs that live in the current directory and do not need
# explicit make lines.
#
STD=	at audfmt audit basename cal cb checkeq col comm crypt deroff \
	fgrep file find join look mesg ptx ranlib \
	rev sleep sort split sum tabs tc timezone tk touch tr tsort tty \
	uniq 

# C programs that live in the current directory and need explicit make lines.
# (make depend has special rules for these files)
#
NSTD=	bc egrep spline units

# the following utilities need the curses and terminal libraries 
CSR = iostat

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

bc egrep:
	${YACC} ${YFLAGS} [email protected]
	${LCC} -c ${CFLAGS} y.tab.c
	mv y.tab.o [email protected]
	${CC} -o $@ [email protected]
	rm -f [email protected]

spline units:
	${CC} ${CFLAGS} -o $@ [email protected]

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

${CSR}:
	${CC} ${CFLAGS} -o $@ [email protected] ${CURFLGS}

install: all
	for i in ${SUBDIR}; do \
		(cd $$i; make ${MFLAGS} ${MAKEPARAM} install); done
	for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/bin/$$i); done
	for i in ${STD} ${NSTD} ${CSR}; do \
		(install -s $$i ${DESTDIR}/usr/bin/$$i); \
	done
	install -c units.lib ${DESTDIR}/usr/lib/units
	-mkdir ${DESTDIR}/usr/spool/at
	chmod 755 ${DESTDIR}/usr/spool/at
	/etc/chown root ${DESTDIR}/usr/spool/at
	-mkdir ${DESTDIR}/usr/spool/at/past
	chmod 755 ${DESTDIR}/usr/spool/at/past
	/etc/chown root ${DESTDIR}/usr/spool/at/past

clean:
	rm -f a.out core *.s *.o
	for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
	rm -f ${STD} ${NSTD} ${CSR}
	
cleansrc:
	rm -f *.[cy] *.sh *.lib Makefile

# beware of the non-standard stuff for bc and egrep
depend:
	cat </dev/null >x.c
	for i in ${STD} ${CSR} ; do \
		(echo $$i: $$i.c >>makedep; \
		/bin/grep '^#[ 	]*include' x.c $$i.c | sed \
			-e '/\.\.\/h/d' \
			-e 's,<\(.*\)>,"/usr/include/\1",' \
			-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
			-e 's/\.c//' >>makedep); done
	for i in bc egrep; do \
		(echo $$i: $$i.y >>makedep; \
		/bin/grep '^#[ 	]*include' x.c $$i.y | sed \
			-e '/\.\.\/h/d' \
			-e 's,<\(.*\)>,"/usr/include/\1",' \
			-e 's/:[^"]*"\([^"]*\)".*/: \1/' \
			-e 's/\.y//' >>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.

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

at: at.c
at: /usr/include/stdio.h
at: /usr/include/ctype.h
at: /usr/include/signal.h
at: /usr/include/sys/time.h
basename: basename.c
basename: /usr/include/stdio.h
cal: cal.c
cb: cb.c
cb: /usr/include/stdio.h
checkeq: checkeq.c
checkeq: /usr/include/stdio.h
col: col.c
col: /usr/include/stdio.h
comm: comm.c
comm: /usr/include/stdio.h
crypt: crypt.c
crypt: /usr/include/stdio.h
deroff: deroff.c
deroff: /usr/include/stdio.h
fgrep: fgrep.c
fgrep: /usr/include/stdio.h
fgrep: /usr/include/ctype.h
file: file.c
file: /usr/include/sys/types.h
file: /usr/include/sys/stat.h
file: /usr/include/stdio.h
file: /usr/include/ctype.h
file: /usr/include/a.out.h
find: find.c
find: /usr/include/stdio.h
find: /usr/include/sys/param.h
find: /usr/include/sys/dir.h
find: /usr/include/sys/stat.h
find: /usr/include/signal.h
join: join.c
join: /usr/include/stdio.h
look: look.c
look: /usr/include/stdio.h
look: /usr/include/ctype.h
mesg: mesg.c
mesg: /usr/include/stdio.h
mesg: /usr/include/sys/types.h
mesg: /usr/include/sys/stat.h
ptx: ptx.c
ptx: /usr/include/stdio.h
ptx: /usr/include/ctype.h
ptx: /usr/include/signal.h
ranlib: ranlib.c
ranlib: /usr/include/sys/types.h
ranlib: /usr/include/ar.h
ranlib: /usr/include/ranlib.h
ranlib: /usr/include/a.out.h
ranlib: /usr/include/stdio.h
rev: rev.c
rev: /usr/include/stdio.h
sleep: sleep.c
sort: sort.c
sort: /usr/include/stdio.h
sort: /usr/include/ctype.h
sort: /usr/include/signal.h
sort: /usr/include/sys/types.h
sort: /usr/include/sys/stat.h
split: split.c
split: /usr/include/stdio.h
sum: sum.c
sum: /usr/include/stdio.h
tabs: tabs.c
tabs: /usr/include/stdio.h
tabs: /usr/include/sgtty.h
tc: tc.c
tc: /usr/include/signal.h
tc: /usr/include/stdio.h
timezone: timezone.c
timezone: /usr/include/stdio.h
timezone: /usr/include/sys/time.h
timezone: /usr/include/utmp.h
tk: tk.c
tk: /usr/include/stdio.h
tk: /usr/include/signal.h
touch: touch.c
touch: /usr/include/stdio.h
touch: /usr/include/sys/types.h
touch: /usr/include/sys/stat.h
tr: tr.c
tr: /usr/include/stdio.h
tsort: tsort.c
tsort: /usr/include/stdio.h
tty: tty.c
uniq: uniq.c
uniq: /usr/include/stdio.h
uniq: /usr/include/ctype.h
bc: bc.y
bc: /usr/include/stdio.h
egrep: egrep.y
egrep: /usr/include/stdio.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.