|
|
Power 6/32 Unix version 1.2b
#
# Makefile for instruction tests
#
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
LD_FLG = -T 800 -x
OBJ1 = mon.o tbl1.o M_error.o bio.o cp.o setjmp.o \
cadat.o ab_mode.o abs_mode1.o absin_32k.o aincd_mode.o autodi_mode.o \
bdisp_mode.o ca111.o ca112.o ca113.o ca114.o ca123.o ca124.o \
ca134.o ca221.o ca222.o ca223.o ca224.o ca234.o ca331.o ca334.o \
ca441.o ca444.o dispin_mode.o im_mode.o \
lit_mode.o rdi_mode.o reg_mode.o regd_mode.o rel_mode.o \
relb_mode.o reld_mode.o reldb_mode.o reldin_mode.o reldw_mode.o \
relin_mode.o relw_mode.o
OBJ2 = mon.o tbl2.o M_error.o bio.o cp.o setjmp.o \
cadat.o comb_disp.o bb_ssi.o
# dispd_mode.o ldisp_mode.o wdisp_mode.o
# The above 3 files are combined into comb_disp.s to fit
# into 1 floppy
OBJ3 = mon.o tbl3.o M_error.o bio.o cp.o setjmp.o \
add_b2.o add_b3.o add_l2.o add_l3.o add_w2.o add_w3.o adda.o \
and_b2.o and_b3.o and_l2.o and_l3.o and_w2.o and_w3.o aobleq.o \
aoblss.o b_cond.o bb_c.o bb_ssi.o bispsw.o bit_b.o bit_l.o bit_w.o \
breq.o btcs.o \
callf.o calls.o casel.o clr_b.o clr_l.o clr_w.o cmp_b.o cmp_l.o \
cmp_w.o decb.o decl.o decw.o ffc.o ffs.o incb.o incl.o \
incw.o index.o insque.o jmpbr.o loadr.o movab.o movow.o \
moval.o movaw.o movob.o movb.o moveb.o movel.o movew.o movw.o or_b2.o \
or_b3.o or_l2.o or_l3.o or_w2.o or_w3.o pushab.o pushal.o \
shar.o shll.o shlq.o shrl.o shrq.o storer.o sub_b2.o sub_b3.o \
pushaw.o pushb.o pushl.o pushw.o shal.o \
sub_l2.o sub_l3.o sub_w2.o sub_w3.o suba.o tst_b.o tst_l.o \
tst_w.o
OBJC = xor.o mcom.o mneg.o convert.o movz.o mul.o div.o \
adwc.o sbwc.o movblk.o movs.o cmps.o ctail.o chead.o
ALL = macro1 macro2 macro3 dmp1 dmp2 dmp3
all: $(ALL)
#
# For composite test in demand paging mode
#
dmp1.st : init.o ${OBJ1}
${LD} -N -x -o dmp1.st init.o ${OBJ1}
dmp2.st : init.o ${OBJ2}
${LD} -N -x -o dmp2.st init.o ${OBJ2}
dmp3.st : init.o ${OBJ3} ${OBJC}
${LD} -N -x -o dmp3.st init.o ${OBJ3} ${OBJC}
dmp1 : dmp1.st
cp dmp1.st $$dmp1.st
strip $$dmp1.st
dd if=$$dmp1.st of=dmp1 skip=1 bs=2080
rm -f $$dmp1.st
dmp2 : dmp2.st
cp dmp2.st $$dmp2.st
strip $$dmp2.st
dd if=$$dmp2.st of=dmp2 skip=1 bs=2080
rm -f $$dmp2.st
dmp3 : dmp3.st
cp dmp3.st $$dmp3.st
strip $$dmp3.st
dd if=$$dmp3.st of=dmp3 skip=1 bs=2080
rm -f $$dmp3.st
#
# *****************************************
#
macro1.st : ${OBJ1}
${LD} ${LD_FLG} -o macro1.st ${OBJ1}
macro1 : macro1.st
cp macro1.st $$macro1.st
strip $$macro1.st
dd if=$$macro1.st of=macro1 skip=1 bs=1024
rm -f $$macro1.st
macro2.st : ${OBJ2}
${LD} ${LD_FLG} -o macro2.st ${OBJ2}
macro2 : macro2.st
cp macro2.st $$macro2.st
strip $$macro2.st
dd if=$$macro2.st of=macro2 skip=1 bs=1024
rm -f $$macro2.st
macro3.st : ${OBJ3} ${OBJC}
${LD} ${LD_FLG} -o macro3.st ${OBJ3} ${OBJC}
macro3 : macro3.st
cp macro3.st $$macro3.st
strip $$macro3.st
dd if=$$macro3.st of=macro3 skip=1 bs=1024
rm -f $$macro3.st
install: all
for i in $(ALL); \
do install -c $$i ${DESTDIR}/d; \
done
clean:
rm -f a.out *.lst* *.o *.sf *.st *.tst $(ALL)
cleansrc:
rm -f *.[csh] init.x definitions makefile
relb_mode.o : relb_mode.s
${AS} -d1 relb_mode.s -o relb_mode.o
relw_mode.o : relw_mode.s
${AS} -d2 relw_mode.s -o relw_mode.o
reldb_mode.o : reldb_mode.s
${AS} -d1 reldb_mode.s -o reldb_mode.o
reldw_mode.o : reldw_mode.s
${AS} -d2 reldw_mode.s -o reldw_mode.o
init.o: init.x
sed 's/^#\([^id]\)/ #\1/' init.x | /lib/cpp | ${AS} -o $*.o
#
# For temporary problems
#
tmp_aincd.st: tmp_aincd.o tail.o
ld -T 800 -o tmp_aincd.st tmp_aincd.o tail.o
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.