|
|
Power 6/32 Unix version 1.2b
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
SP = rtclk.sp ioboth.sp
IOLIB = bio.o cp.o
LD_FLG = -T 0
.SUFFIXES:
.SUFFIXES: .x .s .o .c .st .sp
ALL = ioboth rtclk
all: $(ALL)
.x.o:
cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp | ${AS} -o $*.o
.s.o:
cat INCLUDE $*.s | ${AS} -o $*.o
.st.sp:
rm -f $*.sp;cp $*.st tmp$$;strip tmp$$
dd if=tmp$$ of=$*.sp skip=1 bs=1024
rm tmp$$
#
# i/o tests
#
ioboth.st: ioboth.o tail.o
${LD} -T 800 -o ioboth.st ioboth.o tail.o
ioboth: ioboth.sp
mv ioboth.sp ioboth
rtclk.st: rtclk.o tail.o ctail.o bio.o cp.o
${LD} -T 800 -o rtclk.st rtclk.o tail.o ctail.o bio.o cp.o
rtclk: rtclk.sp
mv rtclk.sp rtclk
bio.o: Lib/bio.c
${CC} -c Lib/bio.c
cp.o: Lib/cp.c
${CC} -c Lib/cp.c
#
TESTS = init.o restart.o bio.o cp.o
pwfail.st : $(TESTS)
${LD} $(LD_FLG) -N -x -o pwfail.st $(TESTS)
pwfail : pwfail.st
dd if=pwfail.st of=pwfail skip=1 bs=2080
clean :
rm *.o *.st
cleansrc:
rm -f *.[csh] init.x INCLUDE makefile
rm -f Lib/*.c Lib/README
install: all
for i in $(ALL); \
do install -c $$i ${DESTDIR}/d; \
done
depend:
grep '^#include' *.[cs] | grep -v '<' | \
sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \
sed 's/\.c/.o/' | \
awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec } ' > makedep
echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
echo '$$r makedep' >>eddep
echo 'w' >>eddep
cp makefile makefile.bak
ed - makefile < eddep
rm -f eddep makedep
# DO NOT DELETE THIS LINE -- make depend uses it
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.