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)/lang/cem/libcc.ansi
|
|
|
|
|
1992-07-28 08:28:48 +00:00
|
|
|
.SUFFIXES: .o .e .c .m .s .so
|
1991-08-23 14:07:27 +00:00
|
|
|
|
1992-07-28 08:28:48 +00:00
|
|
|
.c.o .c.m .c.s .c.so:
|
1991-08-23 14:07:27 +00:00
|
|
|
$(MACH) $(MACHFL) -ansi -c $<
|
|
|
|
|
1992-07-28 08:28:48 +00:00
|
|
|
.e.o .e.m .e.s .e.so:
|
1991-08-23 14:07:27 +00:00
|
|
|
$(MACH) $(MACHFL) -c $<
|
|
|
|
|
|
|
|
fake:
|
|
|
|
all: copy head tail
|
|
|
|
|
|
|
|
head:
|
|
|
|
$(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_ac.e
|
|
|
|
|
|
|
|
copy:
|
1991-12-18 09:44:10 +00:00
|
|
|
cp_dir $(SRC_DIR) .
|
1991-08-23 14:07:27 +00:00
|
|
|
for i in `cat LIST` ; \
|
|
|
|
do cd $$i ; \
|
|
|
|
make `cat LIST` ; \
|
|
|
|
cd .. ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
tail:
|
|
|
|
for i in `cat LIST` ; \
|
|
|
|
do cd $$i ; \
|
|
|
|
rm -f OLIST ; \
|
|
|
|
sed 's/\.[ce]/.$(SUF)/' < LIST | sed '/\.h/D' > OLIST ; \
|
|
|
|
make -f ../Makefile `cat OLIST` ; \
|
|
|
|
cd .. ; \
|
|
|
|
for j in `cat $$i/OLIST` ; \
|
|
|
|
do echo $$i/$$j >> OLIST ; \
|
|
|
|
done ; \
|
|
|
|
done
|
1991-10-16 17:57:53 +00:00
|
|
|
$(ASAR) r tail_ac `cat OLIST`
|
1991-08-23 14:07:27 +00:00
|
|
|
$(RANLIB) tail_ac
|
|
|
|
|
|
|
|
install: all
|
|
|
|
cp head_ac.$(SUF) $(TARGET_HOME)/lib/$(MACH)/head_ac
|
|
|
|
cp tail_ac $(TARGET_HOME)/lib/$(MACH)/tail_ac
|
|
|
|
$(RANLIB) $(TARGET_HOME)/lib/$(MACH)/tail_ac
|
|
|
|
|
|
|
|
cmp: all
|
|
|
|
-cmp head_ac.$(SUF) $(TARGET_HOME)/lib/$(MACH)/head_ac
|
|
|
|
-cmp tail_ac $(TARGET_HOME)/lib/$(MACH)/tail_ac
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.old *.[ce$(SUF)] tail* head* OLIST
|
|
|
|
-rm -rf `cat LIST`
|
|
|
|
-rm -f LIST
|
|
|
|
|
|
|
|
opr:
|
|
|
|
@echo "nothing to be printed"
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@echo "nothing to be printed"
|