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)
|
|
|
|
|
1990-09-27 15:49:13 +00:00
|
|
|
headcp: head
|
|
|
|
../../install head_$(PREF).$(SUF) head_$(PREF)
|
|
|
|
rm -f head_$(PREF).$(SUF)
|
|
|
|
|
|
|
|
head: head_$(PREF).e
|
|
|
|
make -r -f make.proto "CC=$(MACH)" "CFLAGS=-I$(EMHOME)/h $(MACHFL)" head_$(PREF).$(SUF)
|
|
|
|
|
1989-12-19 15:06:03 +00:00
|
|
|
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:
|
1990-12-04 11:42:25 +00:00
|
|
|
MACH=$(MACH) MACHFL="$(MACHFL) -LIB" ASAR=$(ASAR) SUF=$(SUF) \
|
1989-12-19 10:59:33 +00:00
|
|
|
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
|