ack/mach/proto/libg/proto.libcc.ansi
1994-06-24 14:02:31 +00:00

64 lines
1.2 KiB
Plaintext

# $Id$
#PARAMS do not remove this line!
#MACH_PARAMS do not remove this line!
SRC_DIR = $(SRC_HOME)/lang/cem/libcc.ansi
.SUFFIXES: .o .e .c .m .s .so
.c.o .c.m .c.s .c.so:
$(MACH) $(MACHFL) -LIB -ansi -c $<
.e.o .e.m .e.s .e.so:
$(MACH) $(MACHFL) -c -LIB $<
fake:
all: copy head tail
head:
$(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_ac.e
copy:
cp_dir $(SRC_DIR) .
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
$(ASAR) r tail_ac `cat OLIST`
$(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"