1989-12-19 10:59:33 +00:00
|
|
|
# $Header$
|
|
|
|
# This Makefile is used for building the source archive as well as the
|
|
|
|
# actual library.
|
|
|
|
|
|
|
|
EMHOME=../../..
|
|
|
|
MACH=acc
|
1989-12-19 15:06:03 +00:00
|
|
|
MACHFL=-O -L -Rcem=$(EMHOME)/lib/em_cemcom.ansi -I../headers $(DEFS)
|
|
|
|
PREF=ac
|
1989-12-19 10:59:33 +00:00
|
|
|
SUB=
|
|
|
|
ASAR=arch
|
|
|
|
HEADSRC=$(HOME)
|
|
|
|
OLIB=tail_$(PREF)$(SUB)
|
|
|
|
|
1989-12-19 15:06:03 +00:00
|
|
|
install:
|
1989-12-19 10:59:33 +00:00
|
|
|
MakeArch
|
1990-01-03 16:07:05 +00:00
|
|
|
-mkdir $(EMHOME)/include/tail_ac
|
1989-12-19 15:32:51 +00:00
|
|
|
( cd headers; tar cf - `cat LIST` ) | ( cd $(EMHOME)/include/tail_ac ; tar xf - )
|
1989-12-19 10:59:33 +00:00
|
|
|
|
1989-12-19 15:06:03 +00:00
|
|
|
clean:
|
|
|
|
rm -f OLIST */OLIST
|
|
|
|
(cd ctype; make clean)
|
|
|
|
(cd stdlib; make clean)
|
|
|
|
|
|
|
|
tail: lib
|
1989-12-19 10:59:33 +00:00
|
|
|
|
|
|
|
tailcp: tail
|
|
|
|
../../install $(OLIB)
|
|
|
|
rm -f $(OLIB)
|
|
|
|
|
1989-12-19 15:06:03 +00:00
|
|
|
lib:
|
1989-12-19 10:59:33 +00:00
|
|
|
MACH=$(MACH) MACHFL="$(MACHFL) -LIB" ASAR=$(ASAR) \
|
|
|
|
OLIB=$(OLIB) MakeArch -o
|
|
|
|
|
1989-12-19 15:06:03 +00:00
|
|
|
ar aal arch:
|
1989-12-19 10:59:33 +00:00
|
|
|
@rm -f OLIST
|
|
|
|
@sed 's/\.[ce]/.$(SUF)/' < LIST | sed '/\.h/D' > OLIST
|
1989-12-19 15:06:03 +00:00
|
|
|
make -r -f ../make.proto "CC=$(MACH)" "CFLAGS=$(MACHFL)" `cat OLIST`
|
1989-12-19 10:59:33 +00:00
|
|
|
|
|
|
|
# arch doesn't work recursively, tar does, which is what we actually want
|
|
|
|
tar:
|
|
|
|
@rm -f OLIST
|
|
|
|
make `cat LIST`
|
|
|
|
cp LIST OLIST
|