|
|
Power 6/32 Unix version 1.21
#
# HDRS included files
#
# SRCS source files
#
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
HDRS1 = prvreg.h psl.h pte.h pcboffset.h const.h scboffset.h \
sptoffset.h trap.h
LD_FLG = -T c0000000
.SUFFIXES:
.SUFFIXES: .x .s .o .c .lst
.x.o:
cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp | ${AS} -o $*.o
.s.o:
cat INCLUDE $*.s | ${AS} -o $*.o
.x.lst:
cat INCLUDE $*.x | sed 's/^#\([^id]\)/ #\1/' | /lib/cpp >temp.s
as temp.s -o /dev/null -P | absaddr > $*.lst
rm temp.s
.s.lst:
cat INCLUDE $*.s | sed 's/^#\([^id]\)/ #\1/' > temp.s
as temp.s -o /dev/null -P | absaddr > $*.lst
rm temp.s
.c.lst:
cc -S -L $*.c
as $*.s -o /dev/null -P | absaddr > $*.lst
rm -f $*.s
TESTS = init.o prvreg.o prvinstr.o be_evt.o roprnd_evt.o \
prvins_evt.o align_evt.o \
raddr_evt.o \
rsvins_evt.o \
arith_evt.o \
bpt_evt.o \
ttrap_evt.o \
softint_evt.o \
vkcall_evt.o \
vtrans_evt.o \
vprobe_evt.o \
vksnv_evt.o \
mulevt.o \
visnv_evt.o \
error.o \
trap.o \
bio.o \
cp.o
all : event a.sym
event.st : $(TESTS)
${LD} $(LD_FLG) -N -x -o event.st $(TESTS)
event : event.st
cp event.st $$event.st
strip $$event.st
dd if=$$event.st of=event skip=1 bs=2080
rm -f $$event.st
#
# a.sym is the symbol table
#
a.sym : event.st absaddr
nm event.st |sed 's/^/_/' |awk -f awknames |sort |sed 's/ _/ /' >a.sym
clean :
rm -f *.o *.lst *.sf *.sp *.st event
cleansrc:
rm -f *.[csh] *.def init.x definitions INCLUDE makefile
install: all
install -c event ${DESTDIR}/d
absaddr: absaddr.c
cc -O -o absaddr absaddr.c
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
bio.o: definitions
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.