1984-05-21 16:33:30 +00:00
|
|
|
# $Header$
|
1984-05-21 16:30:36 +00:00
|
|
|
d=../../..
|
|
|
|
h=$d/h
|
1985-02-18 01:03:51 +00:00
|
|
|
|
|
|
|
# Use apc -m.... for cross-compilation.
|
|
|
|
APC=apc
|
1985-02-18 01:06:58 +00:00
|
|
|
# The call to acc has to produce an executable file
|
|
|
|
# Add an -m parameter if needed.
|
1985-02-18 01:03:51 +00:00
|
|
|
ACC=acc
|
|
|
|
|
1984-05-21 16:30:36 +00:00
|
|
|
PEM=$d/lib/pc_pem
|
|
|
|
PEM_OUT=$d/lib/pc_pem.out
|
1987-02-24 16:07:04 +00:00
|
|
|
MAN=$d/man/em_pem.6
|
1984-05-21 16:30:36 +00:00
|
|
|
|
|
|
|
HEAD=$h/em_spec.h $h/em_pseu.h $h/em_mnem.h $h/em_mes.h $h/pc_size.h
|
|
|
|
LDFLAG=-i
|
|
|
|
|
|
|
|
all: pem pem.out
|
|
|
|
|
|
|
|
pem.out: pem.m
|
|
|
|
apc -mint --t -o pem.out pem.m
|
|
|
|
|
|
|
|
pem: pem.m
|
1985-02-18 01:03:51 +00:00
|
|
|
$(APC) $(LDFLAG) -o pem pem.m
|
1984-05-21 16:30:36 +00:00
|
|
|
|
1984-05-21 16:33:30 +00:00
|
|
|
# pem.m is system dependent and may NOT be distributed
|
1984-05-21 16:30:36 +00:00
|
|
|
pem.m: pem.p $(HEAD)
|
|
|
|
-rm -f pem.m
|
1985-02-18 01:03:51 +00:00
|
|
|
-if $(APC) -I$h -O -c.m pem.p ; then :; else \
|
|
|
|
$(ACC) -o move move.c ; move ; rm -f move move.[oskm] ; \
|
1984-05-21 16:30:36 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cmp: pem
|
1987-02-24 16:07:04 +00:00
|
|
|
-cmp pem $(PEM)
|
|
|
|
-cmp em_pem.6 $(MAN)
|
1984-05-21 16:30:36 +00:00
|
|
|
|
|
|
|
install: pem
|
1987-02-24 16:07:04 +00:00
|
|
|
rm -f $(PEM)
|
1984-05-21 16:30:36 +00:00
|
|
|
cp pem $(PEM)
|
1987-02-24 16:07:04 +00:00
|
|
|
rm -f $(MAN)
|
|
|
|
cp em_pem.6 $(MAN)
|
1984-05-21 16:30:36 +00:00
|
|
|
|
|
|
|
distr:
|
1987-02-07 00:52:30 +00:00
|
|
|
rm -f pem22.[mp] ; ln pem.p pem22.p
|
1985-02-04 02:53:18 +00:00
|
|
|
apc -mpdp -c.m -I$h pem22.p ; rm -f pem22.p
|
1987-02-07 00:52:30 +00:00
|
|
|
rm -f pem24.[mp] ; ln pem.p pem24.p
|
1987-02-24 16:07:04 +00:00
|
|
|
apc -mm68k2 -c.m -I$h pem24.p ; rm -f pem24.p
|
1987-02-07 00:52:30 +00:00
|
|
|
rm -f pem44.[mp] ; ln pem.p pem44.p
|
1987-02-24 16:07:04 +00:00
|
|
|
apc -mm68k4 -c.m -I$h pem44.p ; rm -f pem44.p
|
1986-07-21 09:40:20 +00:00
|
|
|
|
1984-05-21 16:30:36 +00:00
|
|
|
clean:
|
|
|
|
-rm -f pem pem.out *.[os] *.old
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr pem.p
|
|
|
|
|
|
|
|
xref:
|
|
|
|
xref pem.p^pr -h "XREF PEM.P"
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr ^ opr
|