1991-08-23 14:07:27 +00:00
|
|
|
# $Header$
|
|
|
|
|
|
|
|
#PARAMS do not remove this line!
|
|
|
|
|
|
|
|
#MACH_PARAMS do not remove this line!
|
|
|
|
|
|
|
|
SRC_DIR = $(SRC_HOME)/mach/$(MACH)/libsys
|
|
|
|
|
|
|
|
all: libmon head
|
|
|
|
|
|
|
|
libmon: $(SRC_DIR)/libmon_s.a
|
|
|
|
ASAR="$(ASAR)" ; export ASAR ; \
|
|
|
|
RANLIB="$(RANLIB)" ; export RANLIB ; \
|
|
|
|
MACH="$(MACH)" ; export MACH ; \
|
1991-09-18 10:02:37 +00:00
|
|
|
SUF="$(SUF)" ; export SUF ; \
|
|
|
|
MACHFL="$(MACHFL) -I$(SRC_DIR) -I$(TARGET_HOME)/h" ; export MACHFL ; \
|
|
|
|
if [ $(SUF) = o ] ; then march $(SRC_DIR) libmon $(SRC_HOME)/mach/proto/libg/compmodule ; else cp $(SRC_DIR)/libmon_s.a libmon ; fi
|
1991-08-23 14:07:27 +00:00
|
|
|
|
|
|
|
head: $(SRC_DIR)/head_em.s
|
1991-09-18 10:02:37 +00:00
|
|
|
if [ $(SUF) = o ] ; then $(MACH) -c $(MACHFL) -I$(SRC_DIR) -I$(TARGET_HOME)/h $(SRC_DIR)/head_em.s ; else cp $(SRC_DIR)/head_em.s head_em.s ; fi
|
1991-08-23 14:07:27 +00:00
|
|
|
mv head_em.$(SUF) head
|
|
|
|
|
|
|
|
install: all
|
|
|
|
cp libmon $(TARGET_HOME)/lib/$(MACH)/tail_mon
|
|
|
|
$(RANLIB) $(TARGET_HOME)/lib/$(MACH)/tail_mon
|
|
|
|
cp head $(TARGET_HOME)/lib/$(MACH)/head_em
|
|
|
|
|
|
|
|
cmp: all
|
|
|
|
-cmp libmon $(TARGET_HOME)/lib/$(MACH)/tail_mon
|
|
|
|
-cmp head $(TARGET_HOME)/lib/$(MACH)/head_em
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.old *.[ce$(SUF)] head libmon
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr | opr
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr $(SRC_DIR)/head_em.s
|
|
|
|
@arch pv $(SRC_DIR)/libmon_s.a | pr -h $(SRC_DIR)/libmon_s.a
|