New installation mechanism
authorceriel <none@none>
Tue, 27 Aug 1991 10:18:09 +0000 (10:18 +0000)
committerceriel <none@none>
Tue, 27 Aug 1991 10:18:09 +0000 (10:18 +0000)
42 files changed:
util/LLgen/.distr
util/LLgen/proto.make [new file with mode: 0644]
util/LLgen/src/.distr
util/LLgen/src/proto.make [new file with mode: 0644]
util/ack/.distr
util/ack/proto.make [new file with mode: 0644]
util/amisc/.distr
util/amisc/proto.make [new file with mode: 0644]
util/arch/.distr
util/arch/proto.make [new file with mode: 0644]
util/ass/.distr
util/ass/proto.make [new file with mode: 0644]
util/ego/bo/.distr
util/ego/bo/proto.make [new file with mode: 0644]
util/ego/ca/.distr
util/ego/ca/proto.make [new file with mode: 0644]
util/ego/cf/.distr
util/ego/cf/proto.make [new file with mode: 0644]
util/ego/cj/.distr
util/ego/cj/proto.make [new file with mode: 0644]
util/ego/cs/.distr
util/ego/cs/proto.make [new file with mode: 0644]
util/ego/descr/.distr
util/ego/descr/proto.make [new file with mode: 0644]
util/ego/em_ego/.distr
util/ego/em_ego/proto.make [new file with mode: 0644]
util/ego/ic/.distr
util/ego/ic/proto.make [new file with mode: 0644]
util/ego/il/.distr
util/ego/il/proto.make [new file with mode: 0644]
util/ego/lv/.distr
util/ego/lv/proto.make [new file with mode: 0644]
util/ego/ra/.distr
util/ego/ra/proto.make [new file with mode: 0644]
util/ego/share/.distr
util/ego/share/proto.make [new file with mode: 0644]
util/ego/sp/.distr
util/ego/sp/proto.make [new file with mode: 0644]
util/ego/sr/.distr
util/ego/sr/proto.make [new file with mode: 0644]
util/ego/ud/.distr
util/ego/ud/proto.make [new file with mode: 0644]

index e395a7f..0717e0b 100644 (file)
@@ -2,4 +2,5 @@ READ_ME
 lib
 src
 Makefile
+proto.make
 LLgen.1
diff --git a/util/LLgen/proto.make b/util/LLgen/proto.make
new file mode 100644 (file)
index 0000000..38a39be
--- /dev/null
@@ -0,0 +1,46 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+INSTALLDIR=$(TARGET_HOME)/bin
+LIBDIR=$(TARGET_HOME)/lib/LLgen
+MANDIR=$(TARGET_HOME)/man
+
+all:
+       cd src; make
+
+clean:
+       -cd src; make clean
+
+install:
+       cd src; make
+       rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
+       cp src/LLgen $(INSTALLDIR)/LLgen
+       cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec
+       cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl
+       cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1
+
+firstinstall:
+       cd src; make first
+       rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
+       cp src/LLgen $(INSTALLDIR)/LLgen
+       -mkdir $(LIBDIR)
+       cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec
+       cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl
+       cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1
+
+cmp:
+       cd src; make
+       -cmp src/LLgen $(INSTALLDIR)/LLgen
+       -cmp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec
+       -cmp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl
+       -cmp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1
+
+distr:
+       cd src; make distr
+
+opr:
+       make pr | opr
+
+pr:
+       @cd src; make pr
index ef79b24..6147b75 100644 (file)
@@ -5,6 +5,7 @@ LLgen.g
 Lpars.c.dist
 Lpars.h.dist
 Makefile
+proto.make
 alloc.c
 check.c
 compute.c
diff --git a/util/LLgen/src/proto.make b/util/LLgen/src/proto.make
new file mode 100644 (file)
index 0000000..f41be4f
--- /dev/null
@@ -0,0 +1,146 @@
+# $Header$
+
+#PARAMS                do not remove this line
+
+SRC_DIR = $(SRC_HOME)/util/LLgen/src
+INCLUDES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -I$(SRC_DIR) -I.
+CFLAGS = -DNDEBUG $(INCLUDES) $(COPTIONS)
+LDFLAGS=$(LDOPTIONS)
+
+LLOPT= # -vvv -x
+
+OBJECTS = main.$(SUF) gencode.$(SUF) compute.$(SUF) LLgen.$(SUF) tokens.$(SUF) \
+       check.$(SUF) reach.$(SUF) global.$(SUF) name.$(SUF) sets.$(SUF) \
+       Lpars.$(SUF) alloc.$(SUF) machdep.$(SUF) cclass.$(SUF)
+CSRC = $(SRC_DIR)/main.c $(SRC_DIR)/gencode.c $(SRC_DIR)/compute.c \
+       $(SRC_DIR)/check.c $(SRC_DIR)/reach.c $(SRC_DIR)/global.c \
+       $(SRC_DIR)/name.c $(SRC_DIR)/sets.c $(SRC_DIR)/alloc.c \
+       $(SRC_DIR)/machdep.c $(SRC_DIR)/cclass.c
+CFILES = LLgen.c tokens.c Lpars.c $(CSRC)
+GFILES = $(SRC_DIR)/tokens.g $(SRC_DIR)/LLgen.g
+FILES = $(SRC_DIR)/types.h $(SRC_DIR)/tunable.h $(SRC_DIR)/extern.h \
+       $(SRC_DIR)/io.h $(SRC_DIR)/sets.h \
+       $(GFILES) $(CSRC) $(SRC_DIR)/proto.make
+
+all:           parser
+               @make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)"
+
+parser:                $(GFILES)
+               LLgen $(LLOPT) $(GFILES)
+               @touch parser
+
+first:         firstparser
+               @make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)"
+
+firstparser:
+               cp $(SRC_DIR)/LLgen.c.dist LLgen.c
+               cp $(SRC_DIR)/tokens.c.dist tokens.c
+               cp $(SRC_DIR)/Lpars.c.dist Lpars.c
+               cp $(SRC_DIR)/Lpars.h.dist Lpars.h
+               @touch parser
+
+LLgen:         $(OBJECTS)
+               $(CC) $(LDFLAGS) $(OBJECTS) $(TARGET_HOME)/modules/lib/libsystem.$(LIBSUF) -o LLgen
+
+pr : 
+               @pr $(FILES) $(SRC_HOME)/util/LLgen/lib/rec $(SRC_HOME)/util/LLgen/lib/incl
+
+lint:          parser
+               $(LINT) $(LINTFLAGS) $(INCLUDES) $(CFILES)
+
+clean:
+               -rm -f *.$(SUF) LL.temp LL.xxx LL.output LLgen LLgen.c tokens.c Lpars.[ch] parser
+
+distr:
+               -rm -f parser
+               make parser
+               cp Lpars.c $(SRC_DIR)/Lpars.c.dist
+               cp Lpars.h $(SRC_DIR)/Lpars.h.dist
+               cp LLgen.c $(SRC_DIR)/LLgen.c.dist
+               cp tokens.c $(SRC_DIR)/tokens.c.dist
+
+LLgen.$(SUF):  LLgen.c
+               $(CC) -c $(CFLAGS) LLgen.c
+LLgen.$(SUF):  Lpars.h
+LLgen.$(SUF):  $(SRC_DIR)/cclass.h
+LLgen.$(SUF):  $(SRC_DIR)/extern.h
+LLgen.$(SUF):  $(SRC_DIR)/io.h
+LLgen.$(SUF):  $(SRC_DIR)/types.h
+
+Lpars.$(SUF):  Lpars.c
+               $(CC) -c $(CFLAGS) Lpars.c
+Lpars.$(SUF):  Lpars.h
+
+alloc.$(SUF):  $(SRC_DIR)/alloc.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/alloc.c
+alloc.$(SUF):  $(SRC_DIR)/extern.h
+alloc.$(SUF):  $(SRC_DIR)/types.h
+
+cclass.$(SUF): $(SRC_DIR)/cclass.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/cclass.c
+cclass.$(SUF): $(SRC_DIR)/cclass.h
+
+check.$(SUF):  $(SRC_DIR)/check.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/check.c
+check.$(SUF):  $(SRC_DIR)/extern.h
+check.$(SUF):  $(SRC_DIR)/io.h
+check.$(SUF):  $(SRC_DIR)/sets.h
+check.$(SUF):  $(SRC_DIR)/types.h
+
+compute.$(SUF):        $(SRC_DIR)/compute.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/compute.c
+compute.$(SUF):        $(SRC_DIR)/extern.h
+compute.$(SUF):        $(SRC_DIR)/io.h
+compute.$(SUF):        $(SRC_DIR)/sets.h
+compute.$(SUF):        $(SRC_DIR)/types.h
+
+gencode.$(SUF):        $(SRC_DIR)/gencode.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/gencode.c
+gencode.$(SUF):        $(SRC_DIR)/cclass.h
+gencode.$(SUF):        $(SRC_DIR)/extern.h
+gencode.$(SUF):        $(SRC_DIR)/io.h
+gencode.$(SUF):        $(SRC_DIR)/sets.h
+gencode.$(SUF):        $(SRC_DIR)/types.h
+
+global.$(SUF): $(SRC_DIR)/global.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/global.c
+global.$(SUF): $(SRC_DIR)/extern.h
+global.$(SUF): $(SRC_DIR)/io.h
+global.$(SUF): $(SRC_DIR)/types.h
+
+machdep.$(SUF):        $(SRC_DIR)/machdep.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/machdep.c
+machdep.$(SUF):        $(SRC_DIR)/types.h
+
+main.$(SUF):   $(SRC_DIR)/main.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/main.c
+main.$(SUF):   $(SRC_DIR)/extern.h
+main.$(SUF):   $(SRC_DIR)/io.h
+main.$(SUF):   $(SRC_DIR)/sets.h
+main.$(SUF):   $(SRC_DIR)/types.h
+
+name.$(SUF):   $(SRC_DIR)/name.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/name.c
+name.$(SUF):   $(SRC_DIR)/extern.h
+name.$(SUF):   $(SRC_DIR)/io.h
+name.$(SUF):   $(SRC_DIR)/types.h
+
+reach.$(SUF):  $(SRC_DIR)/reach.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/reach.c
+reach.$(SUF):  $(SRC_DIR)/extern.h
+reach.$(SUF):  $(SRC_DIR)/io.h
+reach.$(SUF):  $(SRC_DIR)/types.h
+
+sets.$(SUF):   $(SRC_DIR)/sets.c
+               $(CC) -c $(CFLAGS) $(SRC_DIR)/sets.c
+sets.$(SUF):   $(SRC_DIR)/extern.h
+sets.$(SUF):   $(SRC_DIR)/sets.h
+sets.$(SUF):   $(SRC_DIR)/types.h
+
+tokens.$(SUF): tokens.c
+               $(CC) -c $(CFLAGS) tokens.c
+tokens.$(SUF): Lpars.h
+tokens.$(SUF): $(SRC_DIR)/cclass.h
+tokens.$(SUF): $(SRC_DIR)/extern.h
+tokens.$(SUF): $(SRC_DIR)/io.h
+tokens.$(SUF): $(SRC_DIR)/types.h
index 97a2ab7..4d844dc 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 ack.h
 data.c
 data.h
diff --git a/util/ack/proto.make b/util/ack/proto.make
new file mode 100644 (file)
index 0000000..ffec48b
--- /dev/null
@@ -0,0 +1,190 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ack
+
+HFILES=\
+       $(SRC_DIR)/ack.h \
+       $(SRC_DIR)/list.h \
+       $(SRC_DIR)/trans.h \
+       $(SRC_DIR)/data.h \
+       $(SRC_DIR)/dmach.h \
+       $(SRC_DIR)/grows.h
+
+DSRC=\
+       $(SRC_DIR)/list.c \
+       $(SRC_DIR)/data.c \
+       $(SRC_DIR)/main.c \
+       $(SRC_DIR)/scan.c \
+       $(SRC_DIR)/svars.c \
+       $(SRC_DIR)/trans.c \
+       $(SRC_DIR)/util.c \
+       $(SRC_DIR)/rmach.c \
+       $(SRC_DIR)/run.c \
+       $(SRC_DIR)/grows.c \
+       $(SRC_DIR)/files.c
+
+ISRC=\
+       dmach.c \
+       intable.c
+
+CFILES = $(DSRC) $(ISRC)
+
+OBJ=\
+       list.$(SUF) \
+       data.$(SUF) \
+       main.$(SUF) \
+       scan.$(SUF) \
+       svars.$(SUF) \
+       trans.$(SUF) \
+       util.$(SUF) \
+       rmach.$(SUF) \
+       run.$(SUF) \
+       dmach.$(SUF) \
+       intable.$(SUF) \
+       grows.$(SUF) \
+       files.$(SUF)
+
+ACKDIR=$(TARGET_HOME)/lib
+FE=fe
+INTABLES=sun3
+LNTABLES=acc apc abc ocm m2 vax4 i86 i386 m68k2 m68k4 pmds pmds4 mantra \
+       m68020 z8000 pdp em22 em24 em44 6500 6800 6805 6809 i80 ns s2650 z80 \
+       sun2 xenix3 minix minixST
+INCLUDES=-I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -I$(SRC_DIR)
+CFLAGS= $(INCLUDES) $(COPTIONS)
+UCFLAGS= $(INCLUDES) $(UCOPTIONS)
+LINTFLAGS= $(INCLUDES) $(LINTOPTIONS)
+LDFLAGS= $(LDOPTIONS)
+ULDFLAGS= $(ULDOPTIONS)
+BINDIR=$(TARGET_HOME)/bin
+HDIR=$(TARGET_HOME)/h
+MANDIR=$(TARGET_HOME)/man
+MODDIR=$(TARGET_HOME)/modules/lib
+
+all:           ack ack.1
+
+install:       ack ack.1
+               rm -f $(BINDIR)/ack
+               cp ack $(BINDIR)/ack
+               -cd $(BINDIR) ; \
+               for i in $(INTABLES) $(LNTABLES) ; do rm -f $$i ; ln ack $$i ; done
+               rm -f $(MANDIR)/ack.1
+               cp ack.1 $(MANDIR)/ack.1
+
+cmp:           ack ack.1
+               -cmp ack $(BINDIR)/ack
+               -cmp ack.1 $(MANDIR)/ack.1
+
+ack.1:         $(SRC_DIR)/ack.1.X
+               -sh -c 'tbl < $(SRC_DIR)/ack.1.X > ack.1'
+               -sh -c 'if test -s ack.1 ; then : ; else cp $(SRC_DIR)/ack.1.X ack.1 ; fi'
+
+clean:
+               -rm -f *.old *.$(SUF) mktables *.$(USUF) ack ack.1 $(ISRC)
+
+ack:    $(OBJ)
+       $(CC) $(LDFLAGS) -o ack $(OBJ) $(MODDIR)/libstring.$(LIBSUF)
+
+depend:        $(ISRC)
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(INCLUDES) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+dmach.c intable.c: mktables $(SRC_DIR)/dmach.h
+       : mktables $(ACKDIR) # $(FE) $(INTABLES)
+       mktables $(ACKDIR)
+
+mktables:      mktables.$(USUF)
+       $(UCC) -o mktables $(ULDFLAGS) mktables.$(USUF)
+
+mktables.$(USUF):      $(SRC_DIR)/mktables.c
+       $(UCC) -c $(UCFLAGS) $(SRC_DIR)/mktables.c
+
+pr:
+       @pr $(SRC_DIR)/proto.make $(HFILES) $(DSRC)
+
+opr:
+       make pr | opr
+
+lint:   $(ISRC)
+       $(LINT) $(LINTFLAGS) $(CFILES) $(UTIL_HOME)/modules/lib/$(LINTPREF)string.$(LINTSUF)
+
+# do not remove the next line
+#DEPENDENCIES
+list.$(SUF):   $(SRC_DIR)/list.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/list.c
+list.$(SUF):   $(SRC_DIR)/list.h
+list.$(SUF):   $(SRC_DIR)/ack.h
+data.$(SUF):   $(SRC_DIR)/data.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/data.c
+data.$(SUF):   $(SRC_DIR)/data.h
+data.$(SUF):   $(SRC_DIR)/trans.h
+data.$(SUF):   $(SRC_DIR)/list.h
+data.$(SUF):   $(SRC_DIR)/ack.h
+main.$(SUF):   $(SRC_DIR)/main.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/main.c
+main.$(SUF):   $(SRC_DIR)/data.h
+main.$(SUF):   $(HDIR)/local.h
+main.$(SUF):   $(SRC_DIR)/trans.h
+main.$(SUF):   $(SRC_DIR)/list.h
+main.$(SUF):   $(SRC_DIR)/ack.h
+scan.$(SUF):   $(SRC_DIR)/scan.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/scan.c
+scan.$(SUF):   $(SRC_DIR)/data.h
+scan.$(SUF):   $(SRC_DIR)/trans.h
+scan.$(SUF):   $(SRC_DIR)/list.h
+scan.$(SUF):   $(SRC_DIR)/ack.h
+svars.$(SUF):  $(SRC_DIR)/svars.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/svars.c
+svars.$(SUF):  $(SRC_DIR)/ack.h
+trans.$(SUF):  $(SRC_DIR)/trans.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/trans.c
+trans.$(SUF):  $(SRC_DIR)/data.h
+trans.$(SUF):  $(SRC_DIR)/grows.h
+trans.$(SUF):  $(SRC_DIR)/trans.h
+trans.$(SUF):  $(SRC_DIR)/list.h
+trans.$(SUF):  $(SRC_DIR)/ack.h
+util.$(SUF):   $(SRC_DIR)/util.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/util.c
+util.$(SUF):   $(SRC_DIR)/ack.h
+rmach.$(SUF):  $(SRC_DIR)/rmach.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/rmach.c
+rmach.$(SUF):  $(SRC_DIR)/data.h
+rmach.$(SUF):  $(SRC_DIR)/dmach.h
+rmach.$(SUF):  $(SRC_DIR)/grows.h
+rmach.$(SUF):  $(SRC_DIR)/trans.h
+rmach.$(SUF):  $(SRC_DIR)/list.h
+rmach.$(SUF):  $(HDIR)/em_path.h
+rmach.$(SUF):  $(SRC_DIR)/ack.h
+run.$(SUF):    $(SRC_DIR)/run.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/run.c
+run.$(SUF):    $(SRC_DIR)/data.h
+run.$(SUF):    $(SRC_DIR)/grows.h
+run.$(SUF):    $(SRC_DIR)/trans.h
+run.$(SUF):    $(SRC_DIR)/list.h
+run.$(SUF):    $(SRC_DIR)/ack.h
+grows.$(SUF):  $(SRC_DIR)/grows.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/grows.c
+grows.$(SUF):  $(SRC_DIR)/grows.h
+grows.$(SUF):  $(SRC_DIR)/ack.h
+files.$(SUF):  $(SRC_DIR)/files.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/files.c
+files.$(SUF):  $(HDIR)/em_path.h
+files.$(SUF):  $(SRC_DIR)/data.h
+files.$(SUF):  $(SRC_DIR)/grows.h
+files.$(SUF):  $(SRC_DIR)/trans.h
+files.$(SUF):  $(SRC_DIR)/list.h
+files.$(SUF):  $(SRC_DIR)/ack.h
+dmach.$(SUF):  dmach.c
+       $(CC) -c $(CFLAGS) dmach.c
+dmach.$(SUF):  $(SRC_DIR)/dmach.h
+intable.$(SUF):        intable.c
+       $(CC) -c $(CFLAGS) intable.c
index 4d7e20e..f9ac790 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 anm.c
 asize.c
 astrip.c
diff --git a/util/amisc/proto.make b/util/amisc/proto.make
new file mode 100644 (file)
index 0000000..7ac19b5
--- /dev/null
@@ -0,0 +1,49 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/amisc
+MANDIR = $(TARGET_HOME)/man
+BINDIR  = $(TARGET_HOME)/bin
+LDFLAGS = $(LDOPTIONS)
+INCLUDES = -I$(TARGET_HOME)/h
+CFLAGS = $(INCLUDES) $(COPTIONS)
+LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
+
+ALL    = anm asize astrip
+LIBS   = $(TARGET_HOME)/modules/lib/libobject.$(LIBSUF)
+LINTLIBS = $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF)
+
+all:   $(ALL)
+
+anm:   $(SRC_DIR)/anm.c
+       $(CC) $(CFLAGS) $(LDFLAGS) -o anm $(SRC_DIR)/anm.c $(LIBS)
+asize: $(SRC_DIR)/asize.c
+       $(CC) $(CFLAGS) $(LDFLAGS) -o asize $(SRC_DIR)/asize.c $(LIBS)
+astrip: $(SRC_DIR)/astrip.c
+       $(CC) $(CFLAGS) $(LDFLAGS) -o astrip $(SRC_DIR)/astrip.c $(LIBS)
+#not installed:
+ashow: $(SRC_DIR)/ashow.c
+       $(CC) $(CFLAGS) $(LDFLAGS) -o ashow $(SRC_DIR)/ashow.c $(LIBS)
+
+install:       all
+       for i in $(ALL); do rm -f $(BINDIR)/$$i; cp $$i $(BINDIR)/$$i; done
+       for i in anm.1 asize.1 astrip.1; do rm -f $(MANDIR)/$$i; cp $(SRC_DIR)/$$i $(MANDIR)/$$i; done
+
+cmp:   all
+       -for i in $(ALL); do cmp $$i $(BINDIR)/$$i; done
+       -for i in anm.1 astrip.1 asize.1 ; do cmp $(SRC_DIR)/$$i $(MANDIR)/$$i; done
+
+clean: ; rm -f $(ALL) *.$(SUF)
+
+lint:
+       $(LINT) $(LINTFLAGS) $(SRC_DIR)/anm.c $(LINTLIBS)
+       $(LINT) $(LINTFLAGS) $(SRC_DIR)/asize.c $(LINTLIBS)
+       $(LINT) $(LINTFLAGS) $(SRC_DIR)/astrip.c $(LINTLIBS)
+       $(LINT) $(LINTFLAGS) $(SRC_DIR)/ashow.c $(LINTLIBS)
+
+pr:
+       @pr $(SRC_DIR)/proto.make $(SRC_DIR)/anm.c $(SRC_DIR)/astrip.c $(SRC_DIR)/asize.c $(SRC_DIR)/ashow.c
+
+opr:
+       make pr | opr
index 4c69304..60b6f41 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 aal.1
 arch.1
 arch.5
diff --git a/util/arch/proto.make b/util/arch/proto.make
new file mode 100644 (file)
index 0000000..d29e707
--- /dev/null
@@ -0,0 +1,66 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/arch
+EMH = $(TARGET_HOME)/h
+EMBIN = $(TARGET_HOME)/bin
+EMMAN = $(TARGET_HOME)/man
+LIB = $(TARGET_HOME)/modules/lib
+ULIB = $(UTIL_HOME)/modules/lib
+
+LIBS = $(LIB)/libobject.$(LIBSUF) $(LIB)/libprint.$(LIBSUF) \
+       $(LIB)/libstring.$(LIBSUF) $(LIB)/libsystem.$(LIBSUF)
+LINTLIBS = \
+       $(ULIB)/$(LINTPREF)object.$(LINTSUF) \
+       $(ULIB)/$(LINTPREF)print.$(LINTSUF) \
+       $(ULIB)/$(LINTPREF)string.$(LINTSUF) \
+       $(ULIB)/$(LINTPREF)system.$(LINTSUF)
+
+INCLUDES = -I$(EMH)
+CFLAGS= $(INCLUDES) -DDISTRIBUTION $(COPTIONS)
+LDFLAGS = $(LDOPTIONS)
+LINTFLAGS= $(INCLUDES) -DDISTRIBUTION $(LINTOPTIONS)
+
+all:            arch aal
+
+arch:          arch.$(SUF)
+               $(CC) $(LDFLAGS) -o arch arch.$(SUF) $(LIBS)
+
+aal:           aal.$(SUF)
+               $(CC) $(LDFLAGS) -o aal aal.$(SUF) $(LIBS)
+
+arch.$(SUF):   $(EMH)/arch.h $(SRC_DIR)/archiver.c
+               $(CC) $(CFLAGS) -c $(SRC_DIR)/archiver.c
+               mv archiver.$(SUF) arch.$(SUF)
+
+aal.$(SUF):    $(EMH)/arch.h $(SRC_DIR)/archiver.c $(EMH)/ranlib.h $(EMH)/out.h
+               $(CC) -DAAL $(CFLAGS) -c $(SRC_DIR)/archiver.c
+               mv archiver.$(SUF) aal.$(SUF)
+
+clean:
+               rm -f aal arch *.$(SUF) *.old
+
+lint:
+               $(LINT) $(LINTFLAGS) -DAAL $(SRC_DIR)/archiver.c $(LINTLIBS)
+
+install :       all
+               rm -f $(EMBIN)/arch $(EMBIN)/aal
+               cp aal $(EMBIN)/aal
+               cp arch $(EMBIN)/arch
+               rm -f $(EMMAN)/arch.1 $(EMMAN)/aal.1 $(EMMAN)/arch.5
+               cp aal.1 $(EMMAN)/aal.1
+               cp arch.1 $(EMMAN)/arch.1
+               cp arch.5 $(EMMAN)/arch.5
+
+cmp :           all
+               -cmp aal $(EMBIN)/aal
+               -cmp arch $(EMBIN)/arch
+               -cmp aal.1 $(EMMAN)/aal.1
+               -cmp arch.1 $(EMMAN)/arch.1
+               -cmp arch.5 $(EMMAN)/arch.5
+
+opr:
+               make pr ^ opr
+pr:
+               @pr $(SRC_DIR)/proto.make $(SRC_DIR)/archiver.c
index a38db64..136980a 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 ass00.c
 ass00.h
 ass30.c
diff --git a/util/ass/proto.make b/util/ass/proto.make
new file mode 100644 (file)
index 0000000..5cfd68f
--- /dev/null
@@ -0,0 +1,176 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ass
+INCLUDES = -I$(TARGET_HOME)/h -I$(TARGET_HOME)/config -I$(SRC_DIR)
+CFLAGS= $(INCLUDES) $(COPTIONS)
+UCFLAGS= $(INCLUDES) $(UCOPTIONS)
+LDFLAGS = $(LDOPTIONS)
+ULDFLAGS = $(ULDOPTIONS)
+LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
+
+OBS =  ass00.$(SUF) ass30.$(SUF) ass40.$(SUF) ass50.$(SUF) ass60.$(SUF) \
+       ass70.$(SUF) ass80.$(SUF) assci.$(SUF) assda.$(SUF) assrl.$(SUF) \
+       asstb.$(SUF) asscm.$(SUF)
+CFILES = $(SRC_DIR)/ass00.c $(SRC_DIR)/ass30.c $(SRC_DIR)/ass40.c \
+       $(SRC_DIR)/ass50.c $(SRC_DIR)/ass60.c $(SRC_DIR)/ass70.c \
+       $(SRC_DIR)/ass80.c $(SRC_DIR)/assci.c $(SRC_DIR)/assda.c \
+       $(SRC_DIR)/assrl.c asstb.c $(SRC_DIR)/asscm.c
+
+all:            ass
+
+clean:
+               -rm -f ass *.$(SUF) maktab *.old asstb.c
+
+install :       all
+               rm -f $(TARGET_HOME)/lib.bin/em_ass
+               cp ass $(TARGET_HOME)/lib.bin/em_ass
+               rm -f $(TARGET_HOME)/man/em_ass.6
+               cp $(SRC_DIR)/em_ass.6 $(TARGET_HOME)/man/em_ass.6
+
+cmp :           all
+               -cmp ass $(TARGET_HOME)/lib.bin/em_ass
+               -cmp $(SRC_DIR)/em_ass.6 $(TARGET_HOME)/man/em_ass.6
+
+lint:          asstb.c
+               $(LINT) $(LINTFLAGS) $(CFILES)
+
+ass:           $(OBS)
+               $(CC) $(LDFLAGS) -o ass $(OBS) $(TARGET_HOME)/lib.bin/em_data.$(LIBSUF)
+
+asstb.c:        maktab $(SRC_HOME)/etc/ip_spec.t
+               maktab $(SRC_HOME)/etc/ip_spec.t asstb.c
+
+maktab:         $(SRC_DIR)/maktab.c $(SRC_DIR)/ip_spec.h
+               $(UCC) $(ULDFLAGS) $(UCFLAGS) -o maktab $(SRC_DIR)/maktab.c $(UTIL_HOME)/lib.bin/em_data.$(ULIBSUF)
+
+asprint:       $(SRC_DIR)/asprint.p
+               apc -w -o asprint $(SRC_DIR)/asprint.p
+
+opr:
+               make pr ^ opr
+
+pr:
+               @pr $(SRC_DIR)/ass00.h $(SRC_DIR)/assex.h $(SRC_DIR)/ip_spec.h $(SRC_DIR)/ass?0.c $(SRC_DIR)/ass[rcd]?.c $(SRC_DIR)/maktab.c
+
+depend:        asstb.c
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(INCLUDES) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line.
+#DEPENDENCIES
+ass00.$(SUF):  $(SRC_DIR)/ass00.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass00.c
+ass00.$(SUF):  $(SRC_DIR)/assex.h
+ass00.$(SUF):  $(TARGET_HOME)/h/local.h
+ass00.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass00.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass00.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass00.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass00.$(SUF):  $(SRC_DIR)/ass00.h
+ass30.$(SUF):  $(SRC_DIR)/ass30.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass30.c
+ass30.$(SUF):  $(SRC_DIR)/ip_spec.h
+ass30.$(SUF):  $(SRC_DIR)/assex.h
+ass30.$(SUF):  $(TARGET_HOME)/h/local.h
+ass30.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass30.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass30.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass30.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass30.$(SUF):  $(SRC_DIR)/ass00.h
+ass40.$(SUF):  $(SRC_DIR)/ass40.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass40.c
+ass40.$(SUF):  $(SRC_DIR)/assex.h
+ass40.$(SUF):  $(TARGET_HOME)/h/local.h
+ass40.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass40.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass40.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass40.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass40.$(SUF):  $(SRC_DIR)/ass00.h
+ass50.$(SUF):  $(SRC_DIR)/ass50.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass50.c
+ass50.$(SUF):  $(SRC_DIR)/ip_spec.h
+ass50.$(SUF):  $(SRC_DIR)/assex.h
+ass50.$(SUF):  $(TARGET_HOME)/h/local.h
+ass50.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass50.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass50.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass50.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass50.$(SUF):  $(SRC_DIR)/ass00.h
+ass60.$(SUF):  $(SRC_DIR)/ass60.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass60.c
+ass60.$(SUF):  $(SRC_DIR)/ip_spec.h
+ass60.$(SUF):  $(SRC_DIR)/assex.h
+ass60.$(SUF):  $(TARGET_HOME)/h/local.h
+ass60.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass60.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass60.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass60.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass60.$(SUF):  $(SRC_DIR)/ass00.h
+ass70.$(SUF):  $(SRC_DIR)/ass70.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass70.c
+ass70.$(SUF):  $(SRC_DIR)/assex.h
+ass70.$(SUF):  $(TARGET_HOME)/h/local.h
+ass70.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass70.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass70.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass70.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass70.$(SUF):  $(SRC_DIR)/ass00.h
+ass80.$(SUF):  $(SRC_DIR)/ass80.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ass80.c
+ass80.$(SUF):  $(TARGET_HOME)/h/em_path.h
+ass80.$(SUF):  $(SRC_DIR)/assex.h
+ass80.$(SUF):  $(TARGET_HOME)/h/local.h
+ass80.$(SUF):  $(TARGET_HOME)/h/arch.h
+ass80.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+ass80.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+ass80.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+ass80.$(SUF):  $(SRC_DIR)/ass00.h
+assci.$(SUF):  $(SRC_DIR)/assci.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/assci.c
+assci.$(SUF):  $(TARGET_HOME)/h/em_ptyp.h
+assci.$(SUF):  $(TARGET_HOME)/h/em_pseu.h
+assci.$(SUF):  $(TARGET_HOME)/h/em_mes.h
+assci.$(SUF):  $(SRC_DIR)/assex.h
+assci.$(SUF):  $(TARGET_HOME)/h/local.h
+assci.$(SUF):  $(TARGET_HOME)/h/arch.h
+assci.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+assci.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+assci.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+assci.$(SUF):  $(SRC_DIR)/ass00.h
+assda.$(SUF):  $(SRC_DIR)/assda.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/assda.c
+assda.$(SUF):  $(SRC_DIR)/assex.h
+assda.$(SUF):  $(TARGET_HOME)/h/local.h
+assda.$(SUF):  $(TARGET_HOME)/h/arch.h
+assda.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+assda.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+assda.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+assda.$(SUF):  $(SRC_DIR)/ass00.h
+assrl.$(SUF):  $(SRC_DIR)/assrl.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/assrl.c
+assrl.$(SUF):  $(SRC_DIR)/assex.h
+assrl.$(SUF):  $(TARGET_HOME)/h/local.h
+assrl.$(SUF):  $(TARGET_HOME)/h/arch.h
+assrl.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+assrl.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+assrl.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+assrl.$(SUF):  $(SRC_DIR)/ass00.h
+asstb.$(SUF):  asstb.c
+       $(CC) -c $(CFLAGS) asstb.c
+asscm.$(SUF):  $(SRC_DIR)/asscm.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/asscm.c
+asscm.$(SUF):  $(TARGET_HOME)/h/local.h
+asscm.$(SUF):  $(TARGET_HOME)/h/arch.h
+asscm.$(SUF):  $(TARGET_HOME)/h/em_flag.h
+asscm.$(SUF):  $(TARGET_HOME)/h/as_spec.h
+asscm.$(SUF):  $(TARGET_HOME)/h/em_spec.h
+asscm.$(SUF):  $(SRC_DIR)/ass00.h
index 9c314f6..51e87ef 100644 (file)
@@ -1,2 +1,2 @@
-Makefile
+proto.make
 bo.c
diff --git a/util/ego/bo/proto.make b/util/ego/bo/proto.make
new file mode 100644 (file)
index 0000000..9f0fba9
--- /dev/null
@@ -0,0 +1,78 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/bo
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/bo.c
+
+OFILES=\
+bo.$(SUF)
+
+HFILES=
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   bo
+
+bo:    $(OFILES)
+       $(CC) -o bo $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp bo $(EMLIB)/ego/bo
+
+cmp:   all
+       -cmp bo $(EMLIB)/ego/bo
+
+clean:
+       rm -f *.$(SUF) bo Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+bo.$(SUF):     $(SRC_DIR)/bo.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/bo.c
+bo.$(SUF):     $(SRC_DIR)/../share/go.h
+bo.$(SUF):     $(SRC_DIR)/../share/def.h
+bo.$(SUF):     $(SRC_DIR)/../share/aux.h
+bo.$(SUF):     $(SRC_DIR)/../share/alloc.h
+bo.$(SUF):     $(SRC_DIR)/../share/map.h
+bo.$(SUF):     $(SRC_DIR)/../share/lset.h
+bo.$(SUF):     $(SRC_DIR)/../share/put.h
+bo.$(SUF):     $(SRC_DIR)/../share/get.h
+bo.$(SUF):     $(SRC_DIR)/../share/files.h
+bo.$(SUF):     $(SRC_DIR)/../share/global.h
+bo.$(SUF):     $(SRC_DIR)/../share/debug.h
+bo.$(SUF):     $(SRC_DIR)/../share/types.h
+bo.$(SUF):     $(EMH)/em_flag.h
+bo.$(SUF):     $(EMH)/em_spec.h
+bo.$(SUF):     $(EMH)/em_pseu.h
+bo.$(SUF):     $(EMH)/em_mnem.h
index 65b6335..36cfb62 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 ca.c
 ca.h
 ca_put.c
diff --git a/util/ego/ca/proto.make b/util/ego/ca/proto.make
new file mode 100644 (file)
index 0000000..956d6fe
--- /dev/null
@@ -0,0 +1,90 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/ca
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/ca.c \
+       $(SRC_DIR)/ca_put.c
+
+OFILES=\
+ca.$(SUF) ca_put.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/ca.h \
+       $(SRC_DIR)/ca_put.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   ca
+
+ca:    $(OFILES)
+       $(CC) -o ca $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp ca $(EMLIB)/ego/ca
+
+cmp:   all
+       -cmp ca $(EMLIB)/ego/ca
+
+clean:
+       rm -f *.$(SUF) ca Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+ca.$(SUF):     $(SRC_DIR)/ca.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ca.c
+ca.$(SUF):     $(SRC_DIR)/ca_put.h
+ca.$(SUF):     $(SRC_DIR)/../share/get.h
+ca.$(SUF):     $(SRC_DIR)/../share/alloc.h
+ca.$(SUF):     $(SRC_DIR)/../share/map.h
+ca.$(SUF):     $(SRC_DIR)/../share/files.h
+ca.$(SUF):     $(SRC_DIR)/../share/lset.h
+ca.$(SUF):     $(SRC_DIR)/../share/global.h
+ca.$(SUF):     $(SRC_DIR)/../share/debug.h
+ca.$(SUF):     $(SRC_DIR)/ca.h
+ca.$(SUF):     $(SRC_DIR)/../share/types.h
+ca.$(SUF):     $(EMH)/em_mes.h
+ca.$(SUF):     $(EMH)/em_pseu.h
+ca_put.$(SUF): $(SRC_DIR)/ca_put.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ca_put.c
+ca_put.$(SUF): $(SRC_DIR)/../share/alloc.h
+ca_put.$(SUF): $(SRC_DIR)/../share/map.h
+ca_put.$(SUF): $(SRC_DIR)/../share/def.h
+ca_put.$(SUF): $(SRC_DIR)/../share/debug.h
+ca_put.$(SUF): $(SRC_DIR)/ca.h
+ca_put.$(SUF): $(SRC_DIR)/../share/types.h
+ca_put.$(SUF): $(EMH)/em_mes.h
+ca_put.$(SUF): $(EMH)/em_flag.h
+ca_put.$(SUF): $(EMH)/em_mnem.h
+ca_put.$(SUF): $(EMH)/em_pseu.h
+ca_put.$(SUF): $(EMH)/em_spec.h
index 5d5f159..dffea94 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 cf.c
 cf.h
 cf_idom.c
diff --git a/util/ego/cf/proto.make b/util/ego/cf/proto.make
new file mode 100644 (file)
index 0000000..a961c39
--- /dev/null
@@ -0,0 +1,118 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/cf
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/cf.c \
+       $(SRC_DIR)/cf_succ.c \
+       $(SRC_DIR)/cf_idom.c \
+       $(SRC_DIR)/cf_loop.c
+
+OFILES=\
+cf.$(SUF) cf_succ.$(SUF) cf_idom.$(SUF) cf_loop.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/cf.h \
+       $(SRC_DIR)/cf_succ.h \
+       $(SRC_DIR)/cf_idom.h \
+       $(SRC_DIR)/cf_loop.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   cf
+
+cf:    $(OFILES)
+       $(CC) -o cf $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp cf $(EMLIB)/ego/cf
+
+cmp:   all
+       -cmp cf $(EMLIB)/ego/cf
+
+clean:
+       rm -f *.$(SUF) cf Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+cf.$(SUF):     $(SRC_DIR)/cf.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cf.c
+cf.$(SUF):     $(SRC_DIR)/cf_loop.h
+cf.$(SUF):     $(SRC_DIR)/cf_idom.h
+cf.$(SUF):     $(SRC_DIR)/cf_succ.h
+cf.$(SUF):     $(SRC_DIR)/cf.h
+cf.$(SUF):     $(SRC_DIR)/../share/def.h
+cf.$(SUF):     $(SRC_DIR)/../share/put.h
+cf.$(SUF):     $(SRC_DIR)/../share/get.h
+cf.$(SUF):     $(SRC_DIR)/../share/cset.h
+cf.$(SUF):     $(SRC_DIR)/../share/lset.h
+cf.$(SUF):     $(SRC_DIR)/../share/alloc.h
+cf.$(SUF):     $(SRC_DIR)/../share/global.h
+cf.$(SUF):     $(SRC_DIR)/../share/files.h
+cf.$(SUF):     $(SRC_DIR)/../share/map.h
+cf.$(SUF):     $(SRC_DIR)/../share/debug.h
+cf.$(SUF):     $(SRC_DIR)/../share/types.h
+cf.$(SUF):     $(EMH)/em_mes.h
+cf.$(SUF):     $(EMH)/em_flag.h
+cf.$(SUF):     $(EMH)/em_spec.h
+cf.$(SUF):     $(EMH)/em_pseu.h
+cf.$(SUF):     $(EMH)/em_mnem.h
+cf_succ.$(SUF):        $(SRC_DIR)/cf_succ.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cf_succ.c
+cf_succ.$(SUF):        $(SRC_DIR)/../share/map.h
+cf_succ.$(SUF):        $(SRC_DIR)/cf.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/cset.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/lset.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/global.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/debug.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/def.h
+cf_succ.$(SUF):        $(SRC_DIR)/../share/types.h
+cf_succ.$(SUF):        $(EMH)/em_mnem.h
+cf_succ.$(SUF):        $(EMH)/em_flag.h
+cf_succ.$(SUF):        $(EMH)/em_pseu.h
+cf_succ.$(SUF):        $(EMH)/em_spec.h
+cf_idom.$(SUF):        $(SRC_DIR)/cf_idom.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cf_idom.c
+cf_idom.$(SUF):        $(SRC_DIR)/cf.h
+cf_idom.$(SUF):        $(SRC_DIR)/../share/alloc.h
+cf_idom.$(SUF):        $(SRC_DIR)/../share/lset.h
+cf_idom.$(SUF):        $(SRC_DIR)/../share/debug.h
+cf_idom.$(SUF):        $(SRC_DIR)/../share/types.h
+cf_loop.$(SUF):        $(SRC_DIR)/cf_loop.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cf_loop.c
+cf_loop.$(SUF):        $(SRC_DIR)/cf.h
+cf_loop.$(SUF):        $(SRC_DIR)/../share/aux.h
+cf_loop.$(SUF):        $(SRC_DIR)/../share/alloc.h
+cf_loop.$(SUF):        $(SRC_DIR)/../share/lset.h
+cf_loop.$(SUF):        $(SRC_DIR)/../share/debug.h
+cf_loop.$(SUF):        $(SRC_DIR)/../share/types.h
index 26a94b7..68afa91 100644 (file)
@@ -1,2 +1,2 @@
-Makefile
+proto.make
 cj.c
diff --git a/util/ego/cj/proto.make b/util/ego/cj/proto.make
new file mode 100644 (file)
index 0000000..e9d4171
--- /dev/null
@@ -0,0 +1,77 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/cj
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/cj.c
+
+OFILES=\
+cj.$(SUF)
+
+HFILES=
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   cj
+
+cj:    $(OFILES)
+       $(CC) -o cj $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp cj $(EMLIB)/ego/cj
+
+cmp:   all
+       -cmp cj $(EMLIB)/ego/cj
+
+clean:
+       rm -f *.$(SUF) cj Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+cj.$(SUF):     $(SRC_DIR)/cj.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cj.c
+cj.$(SUF):     $(SRC_DIR)/../share/go.h
+cj.$(SUF):     $(SRC_DIR)/../share/stack_chg.h
+cj.$(SUF):     $(SRC_DIR)/../share/def.h
+cj.$(SUF):     $(SRC_DIR)/../share/aux.h
+cj.$(SUF):     $(SRC_DIR)/../share/alloc.h
+cj.$(SUF):     $(SRC_DIR)/../share/map.h
+cj.$(SUF):     $(SRC_DIR)/../share/lset.h
+cj.$(SUF):     $(SRC_DIR)/../share/put.h
+cj.$(SUF):     $(SRC_DIR)/../share/get.h
+cj.$(SUF):     $(SRC_DIR)/../share/files.h
+cj.$(SUF):     $(SRC_DIR)/../share/global.h
+cj.$(SUF):     $(SRC_DIR)/../share/debug.h
+cj.$(SUF):     $(SRC_DIR)/../share/types.h
+cj.$(SUF):     $(EMH)/em_spec.h
+cj.$(SUF):     $(EMH)/em_mnem.h
index 34928d3..b29cf0d 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 cs.c
 cs.h
 cs_alloc.c
diff --git a/util/ego/cs/proto.make b/util/ego/cs/proto.make
new file mode 100644 (file)
index 0000000..bef7e90
--- /dev/null
@@ -0,0 +1,252 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/cs
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/cs.c \
+       $(SRC_DIR)/cs_alloc.c \
+       $(SRC_DIR)/cs_aux.c \
+       $(SRC_DIR)/cs_avail.c \
+       $(SRC_DIR)/cs_debug.c \
+       $(SRC_DIR)/cs_elim.c \
+       $(SRC_DIR)/cs_entity.c \
+       $(SRC_DIR)/cs_kill.c \
+       $(SRC_DIR)/cs_partit.c \
+       $(SRC_DIR)/cs_profit.c \
+       $(SRC_DIR)/cs_getent.c \
+       $(SRC_DIR)/cs_stack.c \
+       $(SRC_DIR)/cs_vnm.c
+
+OFILES=\
+       cs.$(SUF) \
+       cs_alloc.$(SUF) \
+       cs_aux.$(SUF) \
+       cs_avail.$(SUF) \
+       cs_debug.$(SUF) \
+       cs_elim.$(SUF) \
+       cs_entity.$(SUF) \
+       cs_kill.$(SUF) \
+       cs_partit.$(SUF) \
+       cs_profit.$(SUF) \
+       cs_getent.$(SUF) \
+       cs_stack.$(SUF) \
+       cs_vnm.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/cs.h \
+       $(SRC_DIR)/cs_alloc.h \
+       $(SRC_DIR)/cs_aux.h \
+       $(SRC_DIR)/cs_avail.h \
+       $(SRC_DIR)/cs_debug.h \
+       $(SRC_DIR)/cs_elim.h \
+       $(SRC_DIR)/cs_entity.h \
+       $(SRC_DIR)/cs_kill.h \
+       $(SRC_DIR)/cs_partit.h \
+       $(SRC_DIR)/cs_profit.h \
+       $(SRC_DIR)/cs_getent.h \
+       $(SRC_DIR)/cs_stack.h \
+       $(SRC_DIR)/cs_vnm.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   cs
+
+cs:    $(OFILES)
+       $(CC) -o cs $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp cs $(EMLIB)/ego/cs
+
+cmp:   all
+       -cmp cs $(EMLIB)/ego/cs
+
+clean:
+       rm -f *.$(SUF) cs Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+cs.$(SUF):     $(SRC_DIR)/cs.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs.c
+cs.$(SUF):     $(SRC_DIR)/cs_vnm.h
+cs.$(SUF):     $(SRC_DIR)/cs_stack.h
+cs.$(SUF):     $(SRC_DIR)/cs_profit.h
+cs.$(SUF):     $(SRC_DIR)/cs_entity.h
+cs.$(SUF):     $(SRC_DIR)/cs_elim.h
+cs.$(SUF):     $(SRC_DIR)/cs_debug.h
+cs.$(SUF):     $(SRC_DIR)/cs_avail.h
+cs.$(SUF):     $(SRC_DIR)/cs_aux.h
+cs.$(SUF):     $(SRC_DIR)/cs.h
+cs.$(SUF):     $(SRC_DIR)/../share/go.h
+cs.$(SUF):     $(SRC_DIR)/../share/debug.h
+cs.$(SUF):     $(SRC_DIR)/../share/lset.h
+cs.$(SUF):     $(SRC_DIR)/../share/types.h
+cs_alloc.$(SUF):       $(SRC_DIR)/cs_alloc.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_alloc.c
+cs_alloc.$(SUF):       $(SRC_DIR)/cs.h
+cs_alloc.$(SUF):       $(SRC_DIR)/../share/alloc.h
+cs_alloc.$(SUF):       $(SRC_DIR)/../share/types.h
+cs_aux.$(SUF): $(SRC_DIR)/cs_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_aux.c
+cs_aux.$(SUF): $(SRC_DIR)/cs_entity.h
+cs_aux.$(SUF): $(SRC_DIR)/cs.h
+cs_aux.$(SUF): $(SRC_DIR)/../share/lset.h
+cs_aux.$(SUF): $(SRC_DIR)/../share/global.h
+cs_aux.$(SUF): $(SRC_DIR)/../share/aux.h
+cs_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+cs_aux.$(SUF): $(SRC_DIR)/../share/types.h
+cs_avail.$(SUF):       $(SRC_DIR)/cs_avail.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_avail.c
+cs_avail.$(SUF):       $(SRC_DIR)/cs_getent.h
+cs_avail.$(SUF):       $(SRC_DIR)/cs_alloc.h
+cs_avail.$(SUF):       $(SRC_DIR)/cs_debug.h
+cs_avail.$(SUF):       $(SRC_DIR)/cs_aux.h
+cs_avail.$(SUF):       $(SRC_DIR)/cs.h
+cs_avail.$(SUF):       $(SRC_DIR)/../share/global.h
+cs_avail.$(SUF):       $(SRC_DIR)/../share/lset.h
+cs_avail.$(SUF):       $(SRC_DIR)/../share/aux.h
+cs_avail.$(SUF):       $(SRC_DIR)/../share/debug.h
+cs_avail.$(SUF):       $(SRC_DIR)/../share/types.h
+cs_avail.$(SUF):       $(EMH)/em_mnem.h
+cs_debug.$(SUF):       $(SRC_DIR)/cs_debug.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_debug.c
+cs_debug.$(SUF):       $(SRC_DIR)/cs_entity.h
+cs_debug.$(SUF):       $(SRC_DIR)/cs_avail.h
+cs_debug.$(SUF):       $(SRC_DIR)/cs_aux.h
+cs_debug.$(SUF):       $(SRC_DIR)/cs.h
+cs_debug.$(SUF):       $(SRC_DIR)/../share/lset.h
+cs_debug.$(SUF):       $(SRC_DIR)/../share/debug.h
+cs_debug.$(SUF):       $(SRC_DIR)/../share/types.h
+cs_debug.$(SUF):       $(EMH)/em_spec.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_elim.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_elim.c
+cs_elim.$(SUF):        $(SRC_DIR)/cs_partit.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_profit.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_debug.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_aux.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_alloc.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs_avail.h
+cs_elim.$(SUF):        $(SRC_DIR)/cs.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/debug.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/global.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/aux.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/lset.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/alloc.h
+cs_elim.$(SUF):        $(SRC_DIR)/../share/types.h
+cs_elim.$(SUF):        $(EMH)/em_mnem.h
+cs_elim.$(SUF):        $(EMH)/em_reg.h
+cs_entity.$(SUF):      $(SRC_DIR)/cs_entity.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_entity.c
+cs_entity.$(SUF):      $(SRC_DIR)/cs_aux.h
+cs_entity.$(SUF):      $(SRC_DIR)/cs_alloc.h
+cs_entity.$(SUF):      $(SRC_DIR)/cs.h
+cs_entity.$(SUF):      $(SRC_DIR)/../share/debug.h
+cs_entity.$(SUF):      $(SRC_DIR)/../share/lset.h
+cs_entity.$(SUF):      $(SRC_DIR)/../share/global.h
+cs_entity.$(SUF):      $(SRC_DIR)/../share/types.h
+cs_kill.$(SUF):        $(SRC_DIR)/cs_kill.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_kill.c
+cs_kill.$(SUF):        $(SRC_DIR)/cs_entity.h
+cs_kill.$(SUF):        $(SRC_DIR)/cs_avail.h
+cs_kill.$(SUF):        $(SRC_DIR)/cs_debug.h
+cs_kill.$(SUF):        $(SRC_DIR)/cs_aux.h
+cs_kill.$(SUF):        $(SRC_DIR)/cs.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/map.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/aux.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/cset.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/lset.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/global.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/debug.h
+cs_kill.$(SUF):        $(SRC_DIR)/../share/types.h
+cs_kill.$(SUF):        $(EMH)/em_mnem.h
+cs_partit.$(SUF):      $(SRC_DIR)/cs_partit.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_partit.c
+cs_partit.$(SUF):      $(SRC_DIR)/cs_stack.h
+cs_partit.$(SUF):      $(SRC_DIR)/cs.h
+cs_partit.$(SUF):      $(SRC_DIR)/../share/global.h
+cs_partit.$(SUF):      $(SRC_DIR)/../share/debug.h
+cs_partit.$(SUF):      $(SRC_DIR)/../share/aux.h
+cs_partit.$(SUF):      $(SRC_DIR)/../share/types.h
+cs_partit.$(SUF):      $(EMH)/em_spec.h
+cs_partit.$(SUF):      $(EMH)/em_reg.h
+cs_partit.$(SUF):      $(EMH)/em_pseu.h
+cs_partit.$(SUF):      $(EMH)/em_mnem.h
+cs_profit.$(SUF):      $(SRC_DIR)/cs_profit.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_profit.c
+cs_profit.$(SUF):      $(SRC_DIR)/cs_partit.h
+cs_profit.$(SUF):      $(SRC_DIR)/cs_avail.h
+cs_profit.$(SUF):      $(SRC_DIR)/cs_debug.h
+cs_profit.$(SUF):      $(SRC_DIR)/cs_aux.h
+cs_profit.$(SUF):      $(SRC_DIR)/cs.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/lset.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/cset.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/aux.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/global.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/debug.h
+cs_profit.$(SUF):      $(SRC_DIR)/../share/types.h
+cs_profit.$(SUF):      $(EMH)/em_spec.h
+cs_profit.$(SUF):      $(EMH)/em_mnem.h
+cs_getent.$(SUF):      $(SRC_DIR)/cs_getent.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_getent.c
+cs_getent.$(SUF):      $(SRC_DIR)/cs_stack.h
+cs_getent.$(SUF):      $(SRC_DIR)/cs_entity.h
+cs_getent.$(SUF):      $(SRC_DIR)/cs_aux.h
+cs_getent.$(SUF):      $(SRC_DIR)/cs.h
+cs_getent.$(SUF):      $(SRC_DIR)/../share/global.h
+cs_getent.$(SUF):      $(SRC_DIR)/../share/debug.h
+cs_getent.$(SUF):      $(SRC_DIR)/../share/aux.h
+cs_getent.$(SUF):      $(SRC_DIR)/../share/types.h
+cs_getent.$(SUF):      $(EMH)/em_mnem.h
+cs_stack.$(SUF):       $(SRC_DIR)/cs_stack.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_stack.c
+cs_stack.$(SUF):       $(SRC_DIR)/cs_aux.h
+cs_stack.$(SUF):       $(SRC_DIR)/cs.h
+cs_stack.$(SUF):       $(SRC_DIR)/../share/aux.h
+cs_stack.$(SUF):       $(SRC_DIR)/../share/debug.h
+cs_stack.$(SUF):       $(SRC_DIR)/../share/global.h
+cs_stack.$(SUF):       $(SRC_DIR)/../share/types.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_vnm.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cs_vnm.c
+cs_vnm.$(SUF): $(SRC_DIR)/cs_getent.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_partit.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_kill.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_stack.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_avail.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_entity.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_aux.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs_alloc.h
+cs_vnm.$(SUF): $(SRC_DIR)/cs.h
+cs_vnm.$(SUF): $(SRC_DIR)/../share/aux.h
+cs_vnm.$(SUF): $(SRC_DIR)/../share/debug.h
+cs_vnm.$(SUF): $(SRC_DIR)/../share/global.h
+cs_vnm.$(SUF): $(SRC_DIR)/../share/types.h
+cs_vnm.$(SUF): $(EMH)/em_mnem.h
index 2b9dc14..80ce55b 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 descr.sed
 i86.descr
 m68020.descr
diff --git a/util/ego/descr/proto.make b/util/ego/descr/proto.make
new file mode 100644 (file)
index 0000000..7d1e87e
--- /dev/null
@@ -0,0 +1,72 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/descr
+CPP = $(UTIL_HOME)/lib.bin/cpp
+EMH = $(TARGET_HOME)/h
+
+SOURCES = \
+       $(SRC_DIR)/i86.descr \
+       $(SRC_DIR)/m68k2.descr \
+       $(SRC_DIR)/pdp.descr \
+       $(SRC_DIR)/vax4.descr \
+       $(SRC_DIR)/m68k4.descr \
+       $(SRC_DIR)/m68020.descr \
+       $(SRC_DIR)/sparc.descr \
+       $(SRC_DIR)/em22.descr \
+       $(SRC_DIR)/em24.descr \
+       $(SRC_DIR)/em44.descr
+
+TARGETS = i86descr m68k2descr vax4descr pdpdescr m68k4descr m68020descr \
+         em22descr em24descr em44descr sparcdescr
+
+PRFILES = $(SRC_DIR)/proto.make $(SRC_DIR)/descr.sed $(SOURCES)
+
+all:   $(TARGETS)
+
+install:       all
+       for i in $(TARGETS) ; do cp $$i $(TARGET_HOME)/lib/ego/$$i ; done
+
+cmp:   all
+       -for i in $(TARGETS) ; do cmp $$i $(TARGET_HOME)/lib/ego/$$i ; done
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+clean:
+       rm -f $(TARGETS) *.o Out out nohup.out
+
+i86descr:      $(SRC_DIR)/i86.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/i86.descr | sed -f $(SRC_DIR)/descr.sed > i86descr
+
+pdpdescr:      $(SRC_DIR)/pdp.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/pdp.descr | sed -f $(SRC_DIR)/descr.sed > pdpdescr
+
+m68k2descr:    $(SRC_DIR)/m68k2.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/m68k2.descr | sed -f $(SRC_DIR)/descr.sed > m68k2descr
+
+m68k4descr:    $(SRC_DIR)/m68k4.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/m68k4.descr | sed -f $(SRC_DIR)/descr.sed > m68k4descr
+
+m68020descr:   $(SRC_DIR)/m68020.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/m68020.descr | sed -f $(SRC_DIR)/descr.sed > m68020descr
+
+vax4descr:     $(SRC_DIR)/vax4.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/vax4.descr | sed -f $(SRC_DIR)/descr.sed > vax4descr
+
+em22descr:     $(SRC_DIR)/em22.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/em22.descr | sed -f $(SRC_DIR)/descr.sed > em22descr
+
+em24descr:     $(SRC_DIR)/em24.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/em24.descr | sed -f $(SRC_DIR)/descr.sed > em24descr
+
+em44descr:     $(SRC_DIR)/em44.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/em44.descr | sed -f $(SRC_DIR)/descr.sed > em44descr
+
+sparcdescr:    $(SRC_DIR)/sparc.descr $(SRC_DIR)/descr.sed
+               $(CPP) -P -I$(EMH) $(SRC_DIR)/sparc.descr | sed -f $(SRC_DIR)/descr.sed > sparcdescr
+
index 23be163..3fe6228 100644 (file)
@@ -1,2 +1,2 @@
-Makefile
+proto.make
 em_ego.c
diff --git a/util/ego/em_ego/proto.make b/util/ego/em_ego/proto.make
new file mode 100644 (file)
index 0000000..eab8d7d
--- /dev/null
@@ -0,0 +1,41 @@
+# $Header$
+
+#PARAMS                do not remove this line
+EMH=$(TARGET_HOME)/h
+EMCONFIG=$(TARGET_HOME)/config
+EMLIB=$(TARGET_HOME)/lib.bin
+MODLIB=$(TARGET_HOME)/modules/lib
+MODH=$(TARGET_HOME)/modules/h
+MODS=$(MODLIB)/libprint.$(LIBSUF) $(MODLIB)/libstring.$(LIBSUF) $(MODLIB)/libsystem.$(LIBSUF)
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(EMCONFIG) -I$(MODH)
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+all:   em_ego
+
+em_ego:        em_ego.$(SUF)
+       $(CC) $(LDFLAGS) -o em_ego em_ego.$(SUF) $(MODS)
+
+em_ego.$(SUF): $(SRC_DIR)/em_ego.c $(EMCONFIG)/em_path.h $(MODH)/system.h
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/em_ego.c
+
+install:       all
+       rm -f $(EMLIB)/em_ego
+       cp em_ego $(EMLIB)/em_ego
+
+cmp:   all
+       -cmp em_ego $(EMLIB)/em_ego
+
+pr:
+       @pr $(SRC_DIR)/proto.make $(SRC_DIR)/em_ego.c
+
+opr:
+       make pr | opr
+
+lint:
+       $(LINT) $(LINTFLAGS) $(SRC_DIR)/em_ego.c
+
+clean:
+       rm -f *.$(SUF) em_ego
index 532640c..8b45f78 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 ic.c
 ic.h
 ic_aux.c
diff --git a/util/ego/ic/proto.make b/util/ego/ic/proto.make
new file mode 100644 (file)
index 0000000..96ed9c4
--- /dev/null
@@ -0,0 +1,138 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/ic
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/ic.c \
+       $(SRC_DIR)/ic_aux.c \
+       $(SRC_DIR)/ic_lib.c \
+       $(SRC_DIR)/ic_lookup.c \
+       $(SRC_DIR)/ic_io.c
+
+OFILES=\
+ic.$(SUF) ic_aux.$(SUF) ic_lookup.$(SUF) ic_io.$(SUF) ic_lib.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/ic.h \
+       $(SRC_DIR)/ic_aux.h \
+       $(SRC_DIR)/ic_lib.h \
+       $(SRC_DIR)/ic_lookup.h \
+       $(SRC_DIR)/ic_io.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   ic
+
+ic:    $(OFILES)
+       $(CC) -o ic $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp ic $(EMLIB)/ego/ic
+
+cmp:   all
+       -cmp ic $(EMLIB)/ego/ic
+
+clean:
+       rm -f *.$(SUF) ic Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+ic.$(SUF):     $(SRC_DIR)/ic.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ic.c
+ic.$(SUF):     $(SRC_DIR)/../share/aux.h
+ic.$(SUF):     $(SRC_DIR)/../share/put.h
+ic.$(SUF):     $(SRC_DIR)/../share/files.h
+ic.$(SUF):     $(SRC_DIR)/../share/global.h
+ic.$(SUF):     $(SRC_DIR)/../share/alloc.h
+ic.$(SUF):     $(SRC_DIR)/ic_lib.h
+ic.$(SUF):     $(SRC_DIR)/ic_io.h
+ic.$(SUF):     $(SRC_DIR)/ic_aux.h
+ic.$(SUF):     $(SRC_DIR)/ic_lookup.h
+ic.$(SUF):     $(SRC_DIR)/ic.h
+ic.$(SUF):     $(SRC_DIR)/../share/map.h
+ic.$(SUF):     $(SRC_DIR)/../share/def.h
+ic.$(SUF):     $(SRC_DIR)/../share/debug.h
+ic.$(SUF):     $(SRC_DIR)/../share/types.h
+ic.$(SUF):     $(EMH)/em_mes.h
+ic.$(SUF):     $(EMH)/em_flag.h
+ic.$(SUF):     $(EMH)/em_pseu.h
+ic.$(SUF):     $(EMH)/em_spec.h
+ic_aux.$(SUF): $(SRC_DIR)/ic_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ic_aux.c
+ic_aux.$(SUF): $(SRC_DIR)/ic_aux.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/alloc.h
+ic_aux.$(SUF): $(SRC_DIR)/ic_lookup.h
+ic_aux.$(SUF): $(SRC_DIR)/ic_io.h
+ic_aux.$(SUF): $(SRC_DIR)/ic.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/aux.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/def.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/global.h
+ic_aux.$(SUF): $(SRC_DIR)/../share/types.h
+ic_aux.$(SUF): $(EMH)/em_mnem.h
+ic_aux.$(SUF): $(EMH)/em_spec.h
+ic_aux.$(SUF): $(EMH)/em_pseu.h
+ic_lib.$(SUF): $(SRC_DIR)/ic_lib.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ic_lib.c
+ic_lib.$(SUF): $(SRC_DIR)/ic_lib.h
+ic_lib.$(SUF): $(SRC_DIR)/../share/files.h
+ic_lib.$(SUF): $(SRC_DIR)/../share/global.h
+ic_lib.$(SUF): $(SRC_DIR)/ic_io.h
+ic_lib.$(SUF): $(SRC_DIR)/ic_lookup.h
+ic_lib.$(SUF): $(SRC_DIR)/ic.h
+ic_lib.$(SUF): $(SRC_DIR)/../share/debug.h
+ic_lib.$(SUF): $(SRC_DIR)/../share/types.h
+ic_lib.$(SUF): $(EMH)/arch.h
+ic_lib.$(SUF): $(EMH)/em_mes.h
+ic_lib.$(SUF): $(EMH)/em_pseu.h
+ic_lib.$(SUF): $(EMH)/em_spec.h
+ic_lookup.$(SUF):      $(SRC_DIR)/ic_lookup.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ic_lookup.c
+ic_lookup.$(SUF):      $(SRC_DIR)/../share/alloc.h
+ic_lookup.$(SUF):      $(SRC_DIR)/ic_lookup.h
+ic_lookup.$(SUF):      $(SRC_DIR)/ic.h
+ic_lookup.$(SUF):      $(SRC_DIR)/../share/map.h
+ic_lookup.$(SUF):      $(SRC_DIR)/../share/debug.h
+ic_lookup.$(SUF):      $(SRC_DIR)/../share/types.h
+ic_lookup.$(SUF):      $(EMH)/em_spec.h
+ic_io.$(SUF):  $(SRC_DIR)/ic_io.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ic_io.c
+ic_io.$(SUF):  $(SRC_DIR)/ic_io.h
+ic_io.$(SUF):  $(SRC_DIR)/../share/alloc.h
+ic_io.$(SUF):  $(SRC_DIR)/ic_lookup.h
+ic_io.$(SUF):  $(SRC_DIR)/ic.h
+ic_io.$(SUF):  $(SRC_DIR)/../share/debug.h
+ic_io.$(SUF):  $(SRC_DIR)/../share/types.h
+ic_io.$(SUF):  $(EMH)/arch.h
+ic_io.$(SUF):  $(EMH)/em_spec.h
+ic_io.$(SUF):  $(EMH)/em_pseu.h
index 5766f53..9f8b76d 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 il.c
 il.h
 il1_anal.c
diff --git a/util/ego/il/proto.make b/util/ego/il/proto.make
new file mode 100644 (file)
index 0000000..a852e30
--- /dev/null
@@ -0,0 +1,224 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/il
+EMH=$(TARGET_HOME)/h
+EMCONFIG=$(TARGET_HOME)/config
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(EMCONFIG) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/il.c \
+       $(SRC_DIR)/il1_anal.c \
+       $(SRC_DIR)/il1_cal.c \
+       $(SRC_DIR)/il1_formal.c \
+       $(SRC_DIR)/il1_aux.c \
+       $(SRC_DIR)/il2_aux.c \
+       $(SRC_DIR)/il3_change.c \
+       $(SRC_DIR)/il3_subst.c \
+       $(SRC_DIR)/il3_aux.c \
+       $(SRC_DIR)/il_aux.c
+
+OFILES=\
+       il.$(SUF) il1_anal.$(SUF) il1_cal.$(SUF) il1_formal.$(SUF) \
+       il1_aux.$(SUF) il2_aux.$(SUF) il3_change.$(SUF) il3_subst.$(SUF) \
+       il3_aux.$(SUF) il_aux.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/il.h \
+       $(SRC_DIR)/il1_anal.h \
+       $(SRC_DIR)/il1_cal.h \
+       $(SRC_DIR)/il1_formal.h \
+       $(SRC_DIR)/il1_aux.h \
+       $(SRC_DIR)/il2_aux.h \
+       $(SRC_DIR)/il3_change.h \
+       $(SRC_DIR)/il3_subst.h \
+       $(SRC_DIR)/il3_aux.h \
+       $(SRC_DIR)/il_aux.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   il
+
+il:    $(OFILES)
+       $(CC) -o il $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp il $(EMLIB)/ego/il
+
+cmp:   all
+       -cmp il $(EMLIB)/ego/il
+
+clean:
+       rm -f *.$(SUF) il Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+il.$(SUF):     $(SRC_DIR)/il.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il.c
+il.$(SUF):     $(SRC_DIR)/../share/go.h
+il.$(SUF):     $(SRC_DIR)/../share/put.h
+il.$(SUF):     $(SRC_DIR)/../share/get.h
+il.$(SUF):     $(SRC_DIR)/il3_subst.h
+il.$(SUF):     $(SRC_DIR)/il2_aux.h
+il.$(SUF):     $(SRC_DIR)/il1_anal.h
+il.$(SUF):     $(SRC_DIR)/il_aux.h
+il.$(SUF):     $(SRC_DIR)/../share/map.h
+il.$(SUF):     $(SRC_DIR)/../share/files.h
+il.$(SUF):     $(SRC_DIR)/../share/lset.h
+il.$(SUF):     $(SRC_DIR)/../share/global.h
+il.$(SUF):     $(SRC_DIR)/../share/alloc.h
+il.$(SUF):     $(SRC_DIR)/../share/debug.h
+il.$(SUF):     $(SRC_DIR)/il.h
+il.$(SUF):     $(SRC_DIR)/../share/types.h
+il.$(SUF):     $(EMH)/em_pseu.h
+il.$(SUF):     $(EMH)/em_mnem.h
+il.$(SUF):     $(EMCONFIG)/em_path.h
+il1_anal.$(SUF):       $(SRC_DIR)/il1_anal.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il1_anal.c
+il1_anal.$(SUF):       $(SRC_DIR)/../share/put.h
+il1_anal.$(SUF):       $(SRC_DIR)/il_aux.h
+il1_anal.$(SUF):       $(SRC_DIR)/il1_anal.h
+il1_anal.$(SUF):       $(SRC_DIR)/il1_cal.h
+il1_anal.$(SUF):       $(SRC_DIR)/il1_formal.h
+il1_anal.$(SUF):       $(SRC_DIR)/il1_aux.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/aux.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/lset.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/global.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/alloc.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/debug.h
+il1_anal.$(SUF):       $(SRC_DIR)/il.h
+il1_anal.$(SUF):       $(SRC_DIR)/../share/types.h
+il1_anal.$(SUF):       $(EMH)/em_pseu.h
+il1_anal.$(SUF):       $(EMH)/em_mnem.h
+il1_cal.$(SUF):        $(SRC_DIR)/il1_cal.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il1_cal.c
+il1_cal.$(SUF):        $(SRC_DIR)/../share/parser.h
+il1_cal.$(SUF):        $(SRC_DIR)/il1_aux.h
+il1_cal.$(SUF):        $(SRC_DIR)/../share/lset.h
+il1_cal.$(SUF):        $(SRC_DIR)/../share/global.h
+il1_cal.$(SUF):        $(SRC_DIR)/../share/alloc.h
+il1_cal.$(SUF):        $(SRC_DIR)/../share/debug.h
+il1_cal.$(SUF):        $(SRC_DIR)/il1_cal.h
+il1_cal.$(SUF):        $(SRC_DIR)/il.h
+il1_cal.$(SUF):        $(SRC_DIR)/../share/types.h
+il1_cal.$(SUF):        $(EMH)/em_mnem.h
+il1_cal.$(SUF):        $(EMH)/em_spec.h
+il1_formal.$(SUF):     $(SRC_DIR)/il1_formal.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il1_formal.c
+il1_formal.$(SUF):     $(SRC_DIR)/il1_formal.h
+il1_formal.$(SUF):     $(SRC_DIR)/il1_aux.h
+il1_formal.$(SUF):     $(SRC_DIR)/../share/lset.h
+il1_formal.$(SUF):     $(SRC_DIR)/../share/global.h
+il1_formal.$(SUF):     $(SRC_DIR)/../share/alloc.h
+il1_formal.$(SUF):     $(SRC_DIR)/../share/debug.h
+il1_formal.$(SUF):     $(SRC_DIR)/il.h
+il1_formal.$(SUF):     $(SRC_DIR)/../share/types.h
+il1_aux.$(SUF):        $(SRC_DIR)/il1_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il1_aux.c
+il1_aux.$(SUF):        $(SRC_DIR)/il1_aux.h
+il1_aux.$(SUF):        $(SRC_DIR)/il_aux.h
+il1_aux.$(SUF):        $(SRC_DIR)/../share/lset.h
+il1_aux.$(SUF):        $(SRC_DIR)/../share/global.h
+il1_aux.$(SUF):        $(SRC_DIR)/../share/alloc.h
+il1_aux.$(SUF):        $(SRC_DIR)/../share/debug.h
+il1_aux.$(SUF):        $(SRC_DIR)/il.h
+il1_aux.$(SUF):        $(SRC_DIR)/../share/types.h
+il1_aux.$(SUF):        $(EMH)/em_spec.h
+il2_aux.$(SUF):        $(SRC_DIR)/il2_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il2_aux.c
+il2_aux.$(SUF):        $(SRC_DIR)/../share/aux.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/get.h
+il2_aux.$(SUF):        $(SRC_DIR)/il2_aux.h
+il2_aux.$(SUF):        $(SRC_DIR)/il_aux.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/lset.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/global.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/alloc.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/debug.h
+il2_aux.$(SUF):        $(SRC_DIR)/il.h
+il2_aux.$(SUF):        $(SRC_DIR)/../share/types.h
+il2_aux.$(SUF):        $(EMH)/em_mnem.h
+il2_aux.$(SUF):        $(EMH)/em_spec.h
+il3_change.$(SUF):     $(SRC_DIR)/il3_change.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il3_change.c
+il3_change.$(SUF):     $(SRC_DIR)/il3_aux.h
+il3_change.$(SUF):     $(SRC_DIR)/il3_change.h
+il3_change.$(SUF):     $(SRC_DIR)/il_aux.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/put.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/get.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/aux.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/lset.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/def.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/global.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/alloc.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/debug.h
+il3_change.$(SUF):     $(SRC_DIR)/il.h
+il3_change.$(SUF):     $(SRC_DIR)/../share/types.h
+il3_change.$(SUF):     $(EMH)/em_mes.h
+il3_change.$(SUF):     $(EMH)/em_spec.h
+il3_change.$(SUF):     $(EMH)/em_pseu.h
+il3_change.$(SUF):     $(EMH)/em_mnem.h
+il3_subst.$(SUF):      $(SRC_DIR)/il3_subst.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il3_subst.c
+il3_subst.$(SUF):      $(SRC_DIR)/il3_subst.h
+il3_subst.$(SUF):      $(SRC_DIR)/il3_change.h
+il3_subst.$(SUF):      $(SRC_DIR)/il3_aux.h
+il3_subst.$(SUF):      $(SRC_DIR)/il_aux.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/get.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/lset.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/global.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/alloc.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/debug.h
+il3_subst.$(SUF):      $(SRC_DIR)/il.h
+il3_subst.$(SUF):      $(SRC_DIR)/../share/types.h
+il3_subst.$(SUF):      $(EMH)/em_mnem.h
+il3_aux.$(SUF):        $(SRC_DIR)/il3_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il3_aux.c
+il3_aux.$(SUF):        $(SRC_DIR)/il3_aux.h
+il3_aux.$(SUF):        $(SRC_DIR)/il_aux.h
+il3_aux.$(SUF):        $(SRC_DIR)/../share/global.h
+il3_aux.$(SUF):        $(SRC_DIR)/../share/alloc.h
+il3_aux.$(SUF):        $(SRC_DIR)/../share/debug.h
+il3_aux.$(SUF):        $(SRC_DIR)/il.h
+il3_aux.$(SUF):        $(SRC_DIR)/../share/types.h
+il_aux.$(SUF): $(SRC_DIR)/il_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/il_aux.c
+il_aux.$(SUF): $(SRC_DIR)/il_aux.h
+il_aux.$(SUF): $(SRC_DIR)/../share/map.h
+il_aux.$(SUF): $(SRC_DIR)/../share/lset.h
+il_aux.$(SUF): $(SRC_DIR)/../share/global.h
+il_aux.$(SUF): $(SRC_DIR)/../share/alloc.h
+il_aux.$(SUF): $(SRC_DIR)/../share/put.h
+il_aux.$(SUF): $(SRC_DIR)/../share/get.h
+il_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+il_aux.$(SUF): $(SRC_DIR)/il.h
+il_aux.$(SUF): $(SRC_DIR)/../share/types.h
+il_aux.$(SUF): $(EMH)/em_pseu.h
+il_aux.$(SUF): $(EMH)/em_mnem.h
+il_aux.$(SUF): $(EMH)/em_spec.h
index e99e4af..8ef6fed 100644 (file)
@@ -1,3 +1,3 @@
-Makefile
+proto.make
 lv.c
 lv.h
diff --git a/util/ego/lv/proto.make b/util/ego/lv/proto.make
new file mode 100644 (file)
index 0000000..6904c2c
--- /dev/null
@@ -0,0 +1,85 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/lv
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/lv.c
+
+OFILES=\
+lv.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/lv.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   lv
+
+lv:    $(OFILES)
+       $(CC) -o lv $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp lv $(EMLIB)/ego/lv
+
+cmp:   all
+       -cmp lv $(EMLIB)/ego/lv
+
+clean:
+       rm -f *.$(SUF) lv Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+lv.$(SUF):     $(SRC_DIR)/lv.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/lv.c
+lv.$(SUF):     $(SRC_DIR)/../share/parser.h
+lv.$(SUF):     $(SRC_DIR)/../share/go.h
+lv.$(SUF):     $(SRC_DIR)/../share/locals.h
+lv.$(SUF):     $(SRC_DIR)/../share/init_glob.h
+lv.$(SUF):     $(SRC_DIR)/../share/aux.h
+lv.$(SUF):     $(SRC_DIR)/../share/put.h
+lv.$(SUF):     $(SRC_DIR)/../share/get.h
+lv.$(SUF):     $(SRC_DIR)/../share/map.h
+lv.$(SUF):     $(SRC_DIR)/../share/alloc.h
+lv.$(SUF):     $(SRC_DIR)/../share/files.h
+lv.$(SUF):     $(SRC_DIR)/../share/def.h
+lv.$(SUF):     $(SRC_DIR)/../share/cset.h
+lv.$(SUF):     $(SRC_DIR)/../share/lset.h
+lv.$(SUF):     $(SRC_DIR)/../share/global.h
+lv.$(SUF):     $(SRC_DIR)/../share/debug.h
+lv.$(SUF):     $(SRC_DIR)/lv.h
+lv.$(SUF):     $(SRC_DIR)/../share/types.h
+lv.$(SUF):     $(EMH)/em_ego.h
+lv.$(SUF):     $(EMH)/em_mes.h
+lv.$(SUF):     $(EMH)/em_spec.h
+lv.$(SUF):     $(EMH)/em_pseu.h
+lv.$(SUF):     $(EMH)/em_mnem.h
index 45fa4f2..64079fc 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 itemtab.src
 makeitems.c
 ra.c
diff --git a/util/ego/ra/proto.make b/util/ego/ra/proto.make
new file mode 100644 (file)
index 0000000..670b842
--- /dev/null
@@ -0,0 +1,235 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/ra
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+ULDFLAGS=$(ULDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego -I.
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+UCFLAGS=$(CPPFLAGS) $(UCOPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/ra.c \
+       $(SRC_DIR)/ra_items.c \
+       $(SRC_DIR)/ra_lifet.c \
+       $(SRC_DIR)/ra_allocl.c \
+       $(SRC_DIR)/ra_profits.c \
+       $(SRC_DIR)/ra_interv.c \
+       $(SRC_DIR)/ra_pack.c \
+       $(SRC_DIR)/ra_xform.c \
+       $(SRC_DIR)/ra_aux.c
+
+OFILES=\
+       ra.$(SUF) \
+       ra_items.$(SUF) \
+       ra_lifet.$(SUF) \
+       ra_allocl.$(SUF) \
+       ra_profits.$(SUF) \
+       ra_interv.$(SUF) \
+       ra_pack.$(SUF) \
+       ra_xform.$(SUF) \
+       ra_aux.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/ra.h \
+       $(SRC_DIR)/ra_items.h \
+       $(SRC_DIR)/ra_lifet.h \
+       $(SRC_DIR)/ra_allocl.h \
+       $(SRC_DIR)/ra_profits.h \
+       $(SRC_DIR)/ra_interv.h \
+       $(SRC_DIR)/ra_pack.h \
+       $(SRC_DIR)/ra_xform.h \
+       $(SRC_DIR)/ra_aux.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   ra
+
+ra:    $(OFILES)
+       $(CC) -o ra $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+itemtab.h:     $(SRC_DIR)/itemtab.src $(EMH)/em_mnem.h makeitems
+               makeitems $(EMH)/em_mnem.h $(SRC_DIR)/itemtab.src > itemtab.h
+
+makeitems:     $(SRC_DIR)/makeitems.c
+               $(UCC) $(UCFLAGS) $(ULDFLAGS) -o makeitems $(SRC_DIR)/makeitems.c
+
+install:       all
+       cp ra $(EMLIB)/ego/ra
+
+cmp:   all
+       -cmp ra $(EMLIB)/ego/ra
+
+clean:
+       rm -f *.$(SUF) ra Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:        itemtab.h
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+ra.$(SUF):     $(SRC_DIR)/ra.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra.c
+ra.$(SUF):     $(SRC_DIR)/ra_xform.h
+ra.$(SUF):     $(SRC_DIR)/ra_pack.h
+ra.$(SUF):     $(SRC_DIR)/ra_profits.h
+ra.$(SUF):     $(SRC_DIR)/ra_allocl.h
+ra.$(SUF):     $(SRC_DIR)/ra_items.h
+ra.$(SUF):     $(SRC_DIR)/ra.h
+ra.$(SUF):     $(SRC_DIR)/../share/go.h
+ra.$(SUF):     $(SRC_DIR)/../share/alloc.h
+ra.$(SUF):     $(SRC_DIR)/../share/map.h
+ra.$(SUF):     $(SRC_DIR)/../share/lset.h
+ra.$(SUF):     $(SRC_DIR)/../share/put.h
+ra.$(SUF):     $(SRC_DIR)/../share/get.h
+ra.$(SUF):     $(SRC_DIR)/../share/files.h
+ra.$(SUF):     $(SRC_DIR)/../share/global.h
+ra.$(SUF):     $(SRC_DIR)/../share/debug.h
+ra.$(SUF):     $(SRC_DIR)/../share/types.h
+ra.$(SUF):     $(EMH)/em_reg.h
+ra_items.$(SUF):       $(SRC_DIR)/ra_items.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_items.c
+ra_items.$(SUF):       ./itemtab.h
+ra_items.$(SUF):       $(SRC_DIR)/ra_items.h
+ra_items.$(SUF):       $(SRC_DIR)/ra_aux.h
+ra_items.$(SUF):       $(SRC_DIR)/ra.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/alloc.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/aux.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/lset.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/global.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/def.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/debug.h
+ra_items.$(SUF):       $(SRC_DIR)/../share/types.h
+ra_items.$(SUF):       $(EMH)/em_reg.h
+ra_items.$(SUF):       $(EMH)/em_pseu.h
+ra_items.$(SUF):       $(EMH)/em_spec.h
+ra_items.$(SUF):       $(EMH)/em_mnem.h
+ra_lifet.$(SUF):       $(SRC_DIR)/ra_lifet.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_lifet.c
+ra_lifet.$(SUF):       $(SRC_DIR)/ra_lifet.h
+ra_lifet.$(SUF):       $(SRC_DIR)/ra_items.h
+ra_lifet.$(SUF):       $(SRC_DIR)/ra_aux.h
+ra_lifet.$(SUF):       $(SRC_DIR)/ra.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/alloc.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/aux.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/lset.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/global.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/def.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/debug.h
+ra_lifet.$(SUF):       $(SRC_DIR)/../share/types.h
+ra_lifet.$(SUF):       $(EMH)/em_ego.h
+ra_lifet.$(SUF):       $(EMH)/em_mes.h
+ra_lifet.$(SUF):       $(EMH)/em_reg.h
+ra_lifet.$(SUF):       $(EMH)/em_pseu.h
+ra_lifet.$(SUF):       $(EMH)/em_spec.h
+ra_lifet.$(SUF):       $(EMH)/em_mnem.h
+ra_allocl.$(SUF):      $(SRC_DIR)/ra_allocl.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_allocl.c
+ra_allocl.$(SUF):      $(SRC_DIR)/ra_interv.h
+ra_allocl.$(SUF):      $(SRC_DIR)/ra_allocl.h
+ra_allocl.$(SUF):      $(SRC_DIR)/ra_items.h
+ra_allocl.$(SUF):      $(SRC_DIR)/ra_aux.h
+ra_allocl.$(SUF):      $(SRC_DIR)/ra.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/map.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/alloc.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/aux.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/cset.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/lset.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/global.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/def.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/debug.h
+ra_allocl.$(SUF):      $(SRC_DIR)/../share/types.h
+ra_allocl.$(SUF):      $(EMH)/em_reg.h
+ra_allocl.$(SUF):      $(EMH)/em_pseu.h
+ra_allocl.$(SUF):      $(EMH)/em_spec.h
+ra_allocl.$(SUF):      $(EMH)/em_mnem.h
+ra_profits.$(SUF):     $(SRC_DIR)/ra_profits.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_profits.c
+ra_profits.$(SUF):     $(SRC_DIR)/ra_profits.h
+ra_profits.$(SUF):     $(SRC_DIR)/ra_aux.h
+ra_profits.$(SUF):     $(SRC_DIR)/ra.h
+ra_profits.$(SUF):     $(SRC_DIR)/../share/global.h
+ra_profits.$(SUF):     $(SRC_DIR)/../share/lset.h
+ra_profits.$(SUF):     $(SRC_DIR)/../share/debug.h
+ra_profits.$(SUF):     $(SRC_DIR)/../share/types.h
+ra_profits.$(SUF):     $(EMH)/em_reg.h
+ra_interv.$(SUF):      $(SRC_DIR)/ra_interv.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_interv.c
+ra_interv.$(SUF):      $(SRC_DIR)/ra_interv.h
+ra_interv.$(SUF):      $(SRC_DIR)/ra.h
+ra_interv.$(SUF):      $(SRC_DIR)/../share/lset.h
+ra_interv.$(SUF):      $(SRC_DIR)/../share/alloc.h
+ra_interv.$(SUF):      $(SRC_DIR)/../share/global.h
+ra_interv.$(SUF):      $(SRC_DIR)/../share/debug.h
+ra_interv.$(SUF):      $(SRC_DIR)/../share/types.h
+ra_interv.$(SUF):      $(EMH)/em_reg.h
+ra_pack.$(SUF):        $(SRC_DIR)/ra_pack.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_pack.c
+ra_pack.$(SUF):        $(SRC_DIR)/ra_interv.h
+ra_pack.$(SUF):        $(SRC_DIR)/ra_aux.h
+ra_pack.$(SUF):        $(SRC_DIR)/ra.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/aux.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/alloc.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/cset.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/lset.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/global.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/def.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/debug.h
+ra_pack.$(SUF):        $(SRC_DIR)/../share/types.h
+ra_pack.$(SUF):        $(EMH)/em_reg.h
+ra_xform.$(SUF):       $(SRC_DIR)/ra_xform.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_xform.c
+ra_xform.$(SUF):       $(SRC_DIR)/ra_items.h
+ra_xform.$(SUF):       $(SRC_DIR)/ra_xform.h
+ra_xform.$(SUF):       $(SRC_DIR)/ra_interv.h
+ra_xform.$(SUF):       $(SRC_DIR)/ra.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/alloc.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/aux.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/lset.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/global.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/def.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/debug.h
+ra_xform.$(SUF):       $(SRC_DIR)/../share/types.h
+ra_xform.$(SUF):       $(EMH)/em_reg.h
+ra_xform.$(SUF):       $(EMH)/em_ego.h
+ra_xform.$(SUF):       $(EMH)/em_mes.h
+ra_xform.$(SUF):       $(EMH)/em_pseu.h
+ra_xform.$(SUF):       $(EMH)/em_spec.h
+ra_xform.$(SUF):       $(EMH)/em_mnem.h
+ra_aux.$(SUF): $(SRC_DIR)/ra_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ra_aux.c
+ra_aux.$(SUF): $(SRC_DIR)/ra_aux.h
+ra_aux.$(SUF): $(SRC_DIR)/ra.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/alloc.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/lset.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/global.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/def.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+ra_aux.$(SUF): $(SRC_DIR)/../share/types.h
+ra_aux.$(SUF): $(EMH)/em_reg.h
+ra_aux.$(SUF): $(EMH)/em_pseu.h
+ra_aux.$(SUF): $(EMH)/em_spec.h
+ra_aux.$(SUF): $(EMH)/em_mnem.h
index 402b43d..16be99f 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 alloc.c
 alloc.h
 aux.c
diff --git a/util/ego/share/proto.make b/util/ego/share/proto.make
new file mode 100644 (file)
index 0000000..9cd4eb3
--- /dev/null
@@ -0,0 +1,241 @@
+# $Header$
+
+#PARAMS                do not remove this line
+
+SRC_DIR = $(SRC_HOME)/util/ego/share
+EMH=$(TARGET_HOME)/h
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I.
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+UCFLAGS=$(CPPFLAGS) $(UCOPTIONS)
+ULDFLAGS=$(ULDOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/debug.c \
+       $(SRC_DIR)/global.c \
+       $(SRC_DIR)/files.c \
+       $(SRC_DIR)/go.c \
+       $(SRC_DIR)/map.c \
+       $(SRC_DIR)/aux.c \
+       $(SRC_DIR)/get.c \
+       $(SRC_DIR)/put.c \
+       $(SRC_DIR)/alloc.c \
+       $(SRC_DIR)/lset.c \
+       $(SRC_DIR)/cset.c \
+       $(SRC_DIR)/parser.c \
+       $(SRC_DIR)/stack_chg.c \
+       $(SRC_DIR)/locals.c \
+       $(SRC_DIR)/init_glob.c
+SRC=\
+       $(SRC_DIR)/types.h \
+       $(SRC_DIR)/def.h \
+       $(SRC_DIR)/debug.h \
+       $(SRC_DIR)/global.h \
+       $(SRC_DIR)/files.h \
+       $(SRC_DIR)/go.h \
+       $(SRC_DIR)/map.h \
+       $(SRC_DIR)/aux.h \
+       $(SRC_DIR)/get.h \
+       $(SRC_DIR)/put.h \
+       $(SRC_DIR)/alloc.h\
+       $(SRC_DIR)/lset.h \
+       $(SRC_DIR)/cset.h \
+       $(SRC_DIR)/parser.h \
+       $(SRC_DIR)/stack_chg.h \
+       $(SRC_DIR)/locals.h \
+       $(SRC_DIR)/init_glob.h \
+       $(CFILES)
+
+PRFILES=$(SRC)
+
+OBS =  alloc.$(SUF) cset.$(SUF) debug.$(SUF) \
+       files.$(SUF) go.$(SUF) global.$(SUF) lset.$(SUF) map.$(SUF) \
+       parser.$(SUF) get.$(SUF) put.$(SUF) aux.$(SUF) stack_chg.$(SUF) \
+       locals.$(SUF) init_glob.$(SUF)
+
+all:           classdefs.h pop_push.h $(OBS)
+               $(AR) r share.$(LIBSUF) $(OBS)
+               $(RANLIB) share.$(LIBSUF)
+
+install:       all lintlib
+               -mkdir $(TARGET_HOME)/lib.bin/ego
+               cp share.$(LIBSUF) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
+               $(RANLIB) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
+               cp classdefs.h $(TARGET_HOME)/lib.bin/ego/classdefs.h
+               cp pop_push.h $(TARGET_HOME)/lib.bin/ego/pop_push.h
+
+cmp:           all
+               -cmp share.$(LIBSUF) $(TARGET_HOME)/lib.bin/ego/share.$(LIBSUF)
+               -cmp classdefs.h $(TARGET_HOME)/lib.bin/ego/classdefs.h
+               -cmp pop_push.h $(TARGET_HOME)/lib.bin/ego/pop_push.h
+
+classdefs.h: \
+       makeclassdef \
+       $(SRC_DIR)/cldefs.src
+        makeclassdef $(EMH)/em_mnem.h $(SRC_DIR)/cldefs.src > classdefs.h
+
+makeclassdef: \
+       $(SRC_DIR)/makecldef.c
+        $(UCC) $(UCFLAGS) $(ULDFLAGS) -o makeclassdef $(SRC_DIR)/makecldef.c
+
+pop_push.h: \
+       $(SRC_HOME)/etc/em_table $(SRC_DIR)/pop_push.awk
+        awk -f $(SRC_DIR)/pop_push.awk < $(SRC_HOME)/etc/em_table > pop_push.h
+
+show: \
+       $(SRC_DIR)/show.c
+        $(UCC) $(UCFLAGS) $(ULDFLAGS) -o show show.c $(UTIL_HOME)/lib.bin/em_data.$(ULIBSUF)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+clean:
+       rm -f makeclassdef classdefs.h *.$(SUF) Out out nohup.out
+
+lintlib:
+       $(MK_LINT_LIB) share $(TARGET_HOME)/lib.bin/ego $(CPPFLAGS) $(CFILES)
+
+depend:        pop_push.h classdefs.h
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line.
+#DEPENDENCIES
+debug.$(SUF):  $(SRC_DIR)/debug.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/debug.c
+debug.$(SUF):  $(SRC_DIR)/global.h
+debug.$(SUF):  $(SRC_DIR)/debug.h
+debug.$(SUF):  $(SRC_DIR)/def.h
+debug.$(SUF):  $(SRC_DIR)/types.h
+debug.$(SUF):  $(EMH)/em_spec.h
+global.$(SUF): $(SRC_DIR)/global.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/global.c
+global.$(SUF): $(SRC_DIR)/types.h
+files.$(SUF):  $(SRC_DIR)/files.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/files.c
+go.$(SUF):     $(SRC_DIR)/go.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/go.c
+go.$(SUF):     $(SRC_DIR)/go.h
+go.$(SUF):     $(SRC_DIR)/alloc.h
+go.$(SUF):     $(SRC_DIR)/map.h
+go.$(SUF):     $(SRC_DIR)/lset.h
+go.$(SUF):     $(SRC_DIR)/put.h
+go.$(SUF):     $(SRC_DIR)/get.h
+go.$(SUF):     $(SRC_DIR)/files.h
+go.$(SUF):     $(SRC_DIR)/global.h
+go.$(SUF):     $(SRC_DIR)/debug.h
+go.$(SUF):     $(SRC_DIR)/types.h
+map.$(SUF):    $(SRC_DIR)/map.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/map.c
+map.$(SUF):    $(SRC_DIR)/map.h
+map.$(SUF):    $(SRC_DIR)/types.h
+aux.$(SUF):    $(SRC_DIR)/aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/aux.c
+aux.$(SUF):    $(SRC_DIR)/lset.h
+aux.$(SUF):    $(SRC_DIR)/map.h
+aux.$(SUF):    $(SRC_DIR)/aux.h
+aux.$(SUF):    $(SRC_DIR)/alloc.h
+aux.$(SUF):    $(SRC_DIR)/global.h
+aux.$(SUF):    $(SRC_DIR)/debug.h
+aux.$(SUF):    $(SRC_DIR)/types.h
+aux.$(SUF):    $(EMH)/em_pseu.h
+aux.$(SUF):    $(EMH)/em_mes.h
+get.$(SUF):    $(SRC_DIR)/get.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/get.c
+get.$(SUF):    $(SRC_DIR)/aux.h
+get.$(SUF):    $(SRC_DIR)/map.h
+get.$(SUF):    $(SRC_DIR)/alloc.h
+get.$(SUF):    $(SRC_DIR)/get.h
+get.$(SUF):    $(SRC_DIR)/cset.h
+get.$(SUF):    $(SRC_DIR)/lset.h
+get.$(SUF):    $(SRC_DIR)/global.h
+get.$(SUF):    $(SRC_DIR)/debug.h
+get.$(SUF):    $(SRC_DIR)/def.h
+get.$(SUF):    $(SRC_DIR)/types.h
+get.$(SUF):    $(EMH)/em_mes.h
+get.$(SUF):    $(EMH)/em_pseu.h
+get.$(SUF):    $(EMH)/em_mnem.h
+get.$(SUF):    $(EMH)/em_spec.h
+put.$(SUF):    $(SRC_DIR)/put.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/put.c
+put.$(SUF):    $(SRC_DIR)/put.h
+put.$(SUF):    $(SRC_DIR)/alloc.h
+put.$(SUF):    $(SRC_DIR)/lset.h
+put.$(SUF):    $(SRC_DIR)/map.h
+put.$(SUF):    $(SRC_DIR)/def.h
+put.$(SUF):    $(SRC_DIR)/debug.h
+put.$(SUF):    $(SRC_DIR)/global.h
+put.$(SUF):    $(SRC_DIR)/types.h
+put.$(SUF):    $(EMH)/em_spec.h
+put.$(SUF):    $(EMH)/em_pseu.h
+alloc.$(SUF):  $(SRC_DIR)/alloc.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/alloc.c
+alloc.$(SUF):  $(SRC_DIR)/alloc.h
+alloc.$(SUF):  $(SRC_DIR)/debug.h
+alloc.$(SUF):  $(SRC_DIR)/types.h
+lset.$(SUF):   $(SRC_DIR)/lset.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/lset.c
+lset.$(SUF):   $(SRC_DIR)/debug.h
+lset.$(SUF):   $(SRC_DIR)/alloc.h
+lset.$(SUF):   $(SRC_DIR)/lset.h
+lset.$(SUF):   $(SRC_DIR)/types.h
+cset.$(SUF):   $(SRC_DIR)/cset.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/cset.c
+cset.$(SUF):   $(SRC_DIR)/global.h
+cset.$(SUF):   $(SRC_DIR)/debug.h
+cset.$(SUF):   $(SRC_DIR)/alloc.h
+cset.$(SUF):   $(SRC_DIR)/cset.h
+cset.$(SUF):   $(SRC_DIR)/types.h
+parser.$(SUF): $(SRC_DIR)/parser.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/parser.c
+parser.$(SUF): ./classdefs.h
+parser.$(SUF): $(SRC_DIR)/aux.h
+parser.$(SUF): $(SRC_DIR)/lset.h
+parser.$(SUF): $(SRC_DIR)/global.h
+parser.$(SUF): $(SRC_DIR)/alloc.h
+parser.$(SUF): $(SRC_DIR)/debug.h
+parser.$(SUF): $(SRC_DIR)/types.h
+parser.$(SUF): $(EMH)/em_mnem.h
+parser.$(SUF): $(EMH)/em_spec.h
+stack_chg.$(SUF):      $(SRC_DIR)/stack_chg.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/stack_chg.c
+stack_chg.$(SUF):      ./pop_push.h
+stack_chg.$(SUF):      $(SRC_DIR)/global.h
+stack_chg.$(SUF):      $(SRC_DIR)/debug.h
+stack_chg.$(SUF):      $(SRC_DIR)/types.h
+stack_chg.$(SUF):      $(EMH)/em_mnem.h
+stack_chg.$(SUF):      $(EMH)/em_spec.h
+locals.$(SUF): $(SRC_DIR)/locals.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/locals.c
+locals.$(SUF): $(SRC_DIR)/locals.h
+locals.$(SUF): $(SRC_DIR)/alloc.h
+locals.$(SUF): $(SRC_DIR)/aux.h
+locals.$(SUF): $(SRC_DIR)/get.h
+locals.$(SUF): $(SRC_DIR)/def.h
+locals.$(SUF): $(SRC_DIR)/cset.h
+locals.$(SUF): $(SRC_DIR)/lset.h
+locals.$(SUF): $(SRC_DIR)/global.h
+locals.$(SUF): $(SRC_DIR)/debug.h
+locals.$(SUF): $(SRC_DIR)/types.h
+locals.$(SUF): $(EMH)/em_mes.h
+locals.$(SUF): $(EMH)/em_pseu.h
+locals.$(SUF): $(EMH)/em_spec.h
+locals.$(SUF): $(EMH)/em_mnem.h
+init_glob.$(SUF):      $(SRC_DIR)/init_glob.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/init_glob.c
+init_glob.$(SUF):      $(SRC_DIR)/map.h
+init_glob.$(SUF):      $(SRC_DIR)/alloc.h
+init_glob.$(SUF):      $(SRC_DIR)/global.h
+init_glob.$(SUF):      $(SRC_DIR)/debug.h
+init_glob.$(SUF):      $(SRC_DIR)/types.h
index 7e18704..4baeb1c 100644 (file)
@@ -1,2 +1,2 @@
-Makefile
+proto.make
 sp.c
diff --git a/util/ego/sp/proto.make b/util/ego/sp/proto.make
new file mode 100644 (file)
index 0000000..6f4e2e0
--- /dev/null
@@ -0,0 +1,76 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/sp
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/sp.c
+
+OFILES=\
+sp.$(SUF)
+
+HFILES=
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   sp
+
+sp:    $(OFILES)
+       $(CC) -o sp $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp sp $(EMLIB)/ego/sp
+
+cmp:   all
+       -cmp sp $(EMLIB)/ego/sp
+
+clean:
+       rm -f *.$(SUF) sp Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+sp.$(SUF):     $(SRC_DIR)/sp.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sp.c
+sp.$(SUF):     $(SRC_DIR)/../share/stack_chg.h
+sp.$(SUF):     $(SRC_DIR)/../share/go.h
+sp.$(SUF):     $(SRC_DIR)/../share/aux.h
+sp.$(SUF):     $(SRC_DIR)/../share/alloc.h
+sp.$(SUF):     $(SRC_DIR)/../share/map.h
+sp.$(SUF):     $(SRC_DIR)/../share/lset.h
+sp.$(SUF):     $(SRC_DIR)/../share/put.h
+sp.$(SUF):     $(SRC_DIR)/../share/get.h
+sp.$(SUF):     $(SRC_DIR)/../share/files.h
+sp.$(SUF):     $(SRC_DIR)/../share/global.h
+sp.$(SUF):     $(SRC_DIR)/../share/debug.h
+sp.$(SUF):     $(SRC_DIR)/../share/types.h
+sp.$(SUF):     $(EMH)/em_spec.h
+sp.$(SUF):     $(EMH)/em_mnem.h
index 9cea13b..ae9d662 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 sr.c
 sr.h
 sr_aux.c
diff --git a/util/ego/sr/proto.make b/util/ego/sr/proto.make
new file mode 100644 (file)
index 0000000..aa6eb02
--- /dev/null
@@ -0,0 +1,177 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/sr
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/sr.c \
+       $(SRC_DIR)/sr_aux.c \
+       $(SRC_DIR)/sr_cand.c \
+       $(SRC_DIR)/sr_expr.c \
+       $(SRC_DIR)/sr_iv.c \
+       $(SRC_DIR)/sr_reduce.c \
+       $(SRC_DIR)/sr_xform.c
+
+OFILES=\
+       sr.$(SUF) sr_aux.$(SUF) sr_cand.$(SUF) sr_expr.$(SUF) sr_iv.$(SUF) \
+       sr_reduce.$(SUF) sr_xform.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/sr.h \
+       $(SRC_DIR)/sr_aux.h \
+       $(SRC_DIR)/sr_cand.h \
+       $(SRC_DIR)/sr_expr.h \
+       $(SRC_DIR)/sr_iv.h \
+       $(SRC_DIR)/sr_reduce.h \
+       $(SRC_DIR)/sr_xform.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   sr
+
+sr:    $(OFILES)
+       $(CC) -o sr $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp sr $(EMLIB)/ego/sr
+
+cmp:   all
+       -cmp sr $(EMLIB)/ego/sr
+
+clean:
+       rm -f *.$(SUF) sr Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+sr.$(SUF):     $(SRC_DIR)/sr.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr.c
+sr.$(SUF):     $(SRC_DIR)/sr_iv.h
+sr.$(SUF):     $(SRC_DIR)/sr_aux.h
+sr.$(SUF):     $(SRC_DIR)/../share/aux.h
+sr.$(SUF):     $(SRC_DIR)/../share/go.h
+sr.$(SUF):     $(SRC_DIR)/../share/alloc.h
+sr.$(SUF):     $(SRC_DIR)/../share/map.h
+sr.$(SUF):     $(SRC_DIR)/../share/lset.h
+sr.$(SUF):     $(SRC_DIR)/../share/put.h
+sr.$(SUF):     $(SRC_DIR)/../share/get.h
+sr.$(SUF):     $(SRC_DIR)/../share/files.h
+sr.$(SUF):     $(SRC_DIR)/../share/global.h
+sr.$(SUF):     $(SRC_DIR)/../share/debug.h
+sr.$(SUF):     $(SRC_DIR)/sr.h
+sr.$(SUF):     $(SRC_DIR)/../share/types.h
+sr_aux.$(SUF): $(SRC_DIR)/sr_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_aux.c
+sr_aux.$(SUF): $(SRC_DIR)/sr_xform.h
+sr_aux.$(SUF): $(SRC_DIR)/sr_aux.h
+sr_aux.$(SUF): $(SRC_DIR)/../share/aux.h
+sr_aux.$(SUF): $(SRC_DIR)/../share/lset.h
+sr_aux.$(SUF): $(SRC_DIR)/../share/global.h
+sr_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+sr_aux.$(SUF): $(SRC_DIR)/sr.h
+sr_aux.$(SUF): $(SRC_DIR)/../share/types.h
+sr_aux.$(SUF): $(EMH)/em_pseu.h
+sr_aux.$(SUF): $(EMH)/em_mnem.h
+sr_cand.$(SUF):        $(SRC_DIR)/sr_cand.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_cand.c
+sr_cand.$(SUF):        $(SRC_DIR)/sr_cand.h
+sr_cand.$(SUF):        $(SRC_DIR)/sr_aux.h
+sr_cand.$(SUF):        $(SRC_DIR)/sr.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/aux.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/map.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/global.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/debug.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/cset.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/lset.h
+sr_cand.$(SUF):        $(SRC_DIR)/../share/types.h
+sr_cand.$(SUF):        $(EMH)/em_pseu.h
+sr_cand.$(SUF):        $(EMH)/em_mnem.h
+sr_expr.$(SUF):        $(SRC_DIR)/sr_expr.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_expr.c
+sr_expr.$(SUF):        $(SRC_DIR)/sr_iv.h
+sr_expr.$(SUF):        $(SRC_DIR)/../share/lset.h
+sr_expr.$(SUF):        $(SRC_DIR)/sr_aux.h
+sr_expr.$(SUF):        $(SRC_DIR)/../share/aux.h
+sr_expr.$(SUF):        $(SRC_DIR)/../share/global.h
+sr_expr.$(SUF):        $(SRC_DIR)/../share/debug.h
+sr_expr.$(SUF):        $(SRC_DIR)/sr.h
+sr_expr.$(SUF):        $(SRC_DIR)/../share/types.h
+sr_expr.$(SUF):        $(EMH)/em_mnem.h
+sr_iv.$(SUF):  $(SRC_DIR)/sr_iv.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_iv.c
+sr_iv.$(SUF):  $(SRC_DIR)/sr_iv.h
+sr_iv.$(SUF):  $(SRC_DIR)/sr_cand.h
+sr_iv.$(SUF):  $(SRC_DIR)/sr_aux.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/aux.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/alloc.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/global.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/debug.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/cset.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/lset.h
+sr_iv.$(SUF):  $(SRC_DIR)/sr.h
+sr_iv.$(SUF):  $(SRC_DIR)/../share/types.h
+sr_iv.$(SUF):  $(EMH)/em_pseu.h
+sr_iv.$(SUF):  $(EMH)/em_mnem.h
+sr_reduce.$(SUF):      $(SRC_DIR)/sr_reduce.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_reduce.c
+sr_reduce.$(SUF):      $(SRC_DIR)/sr_expr.h
+sr_reduce.$(SUF):      $(SRC_DIR)/sr_reduce.h
+sr_reduce.$(SUF):      $(SRC_DIR)/sr_xform.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/lset.h
+sr_reduce.$(SUF):      $(SRC_DIR)/sr_aux.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/aux.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/global.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/def.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/alloc.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/debug.h
+sr_reduce.$(SUF):      $(SRC_DIR)/sr.h
+sr_reduce.$(SUF):      $(SRC_DIR)/../share/types.h
+sr_reduce.$(SUF):      $(EMH)/em_spec.h
+sr_reduce.$(SUF):      $(EMH)/em_mnem.h
+sr_reduce.$(SUF):      $(EMH)/em_mes.h
+sr_reduce.$(SUF):      $(EMH)/em_reg.h
+sr_reduce.$(SUF):      $(EMH)/em_pseu.h
+sr_xform.$(SUF):       $(SRC_DIR)/sr_xform.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/sr_xform.c
+sr_xform.$(SUF):       $(SRC_DIR)/sr_xform.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/aux.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/lset.h
+sr_xform.$(SUF):       $(SRC_DIR)/sr_aux.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/get.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/def.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/alloc.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/global.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/debug.h
+sr_xform.$(SUF):       $(SRC_DIR)/sr.h
+sr_xform.$(SUF):       $(SRC_DIR)/../share/types.h
+sr_xform.$(SUF):       $(EMH)/em_spec.h
+sr_xform.$(SUF):       $(EMH)/em_pseu.h
+sr_xform.$(SUF):       $(EMH)/em_mnem.h
index fcd2c11..850242a 100644 (file)
@@ -1,4 +1,4 @@
-Makefile
+proto.make
 ud.c
 ud.h
 ud_aux.c
diff --git a/util/ego/ud/proto.make b/util/ego/ud/proto.make
new file mode 100644 (file)
index 0000000..a0483ad
--- /dev/null
@@ -0,0 +1,159 @@
+# $Header$
+
+#PARAMS                do not remove this line!
+
+SRC_DIR = $(SRC_HOME)/util/ego/ud
+EMH=$(TARGET_HOME)/h
+EMLIB=$(TARGET_HOME)/lib.bin
+
+LDFLAGS=$(LDOPTIONS)
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH) -I$(SRC_DIR) -I$(EMLIB)/ego
+CFLAGS=$(CPPFLAGS) $(COPTIONS)
+LINTFLAGS=$(CPPFLAGS) $(LINTOPTIONS)
+
+CFILES=\
+       $(SRC_DIR)/ud.c \
+       $(SRC_DIR)/ud_defs.c \
+       $(SRC_DIR)/ud_const.c \
+       $(SRC_DIR)/ud_copy.c \
+       $(SRC_DIR)/ud_aux.c
+
+OFILES=\
+       ud.$(SUF) ud_defs.$(SUF) ud_const.$(SUF) ud_copy.$(SUF) \
+       ud_aux.$(SUF)
+
+HFILES=\
+       $(SRC_DIR)/ud.h \
+       $(SRC_DIR)/ud_defs.h \
+       $(SRC_DIR)/ud_const.h \
+       $(SRC_DIR)/ud_copy.h \
+       $(SRC_DIR)/ud_aux.h
+
+PRFILES=\
+       $(CFILES) $(HFILES) $(SRC_DIR)/proto.make
+
+all:   ud
+
+ud:    $(OFILES)
+       $(CC) -o ud $(LDFLAGS) $(OFILES) $(EMLIB)/ego/share.$(LIBSUF) $(EMLIB)/em_data.$(LIBSUF)
+
+install:       all
+       cp ud $(EMLIB)/ego/ud
+
+cmp:   all
+       -cmp ud $(EMLIB)/ego/ud
+
+clean:
+       rm -f *.$(SUF) ud Out out nohup.out
+
+lint:
+       $(LINT) $(LINTFLAGS) $(CFILES)
+
+pr:
+       @pr $(PRFILES)
+
+opr:
+       make pr | opr
+
+depend:
+       sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
+       echo '#DEPENDENCIES' >>Makefile.new
+       for i in $(CFILES) ; do \
+               echo "`basename $$i .c`.$$(SUF):        $$i" >> Makefile.new ; \
+               echo '  $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
+               $(UTIL_HOME)/lib.bin/cpp -d $(CPPFLAGS) $$i | sed "s/^/`basename $$i .c`.$$(SUF):       /" >> Makefile.new ; \
+       done
+       mv Makefile Makefile.old
+       mv Makefile.new Makefile
+
+# do not remove the next line
+#DEPENDENCIES
+ud.$(SUF):     $(SRC_DIR)/ud.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ud.c
+ud.$(SUF):     $(SRC_DIR)/ud_copy.h
+ud.$(SUF):     $(SRC_DIR)/ud_const.h
+ud.$(SUF):     $(SRC_DIR)/ud_defs.h
+ud.$(SUF):     $(SRC_DIR)/../share/go.h
+ud.$(SUF):     $(SRC_DIR)/../share/locals.h
+ud.$(SUF):     $(SRC_DIR)/../share/init_glob.h
+ud.$(SUF):     $(SRC_DIR)/../share/aux.h
+ud.$(SUF):     $(SRC_DIR)/../share/alloc.h
+ud.$(SUF):     $(SRC_DIR)/../share/put.h
+ud.$(SUF):     $(SRC_DIR)/../share/get.h
+ud.$(SUF):     $(SRC_DIR)/../share/map.h
+ud.$(SUF):     $(SRC_DIR)/../share/files.h
+ud.$(SUF):     $(SRC_DIR)/../share/def.h
+ud.$(SUF):     $(SRC_DIR)/../share/cset.h
+ud.$(SUF):     $(SRC_DIR)/../share/lset.h
+ud.$(SUF):     $(SRC_DIR)/../share/global.h
+ud.$(SUF):     $(SRC_DIR)/../share/debug.h
+ud.$(SUF):     $(SRC_DIR)/ud.h
+ud.$(SUF):     $(SRC_DIR)/../share/types.h
+ud.$(SUF):     $(EMH)/em_spec.h
+ud_defs.$(SUF):        $(SRC_DIR)/ud_defs.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ud_defs.c
+ud_defs.$(SUF):        $(SRC_DIR)/../share/aux.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/alloc.h
+ud_defs.$(SUF):        $(SRC_DIR)/ud_defs.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/locals.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/map.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/cset.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/lset.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/global.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/debug.h
+ud_defs.$(SUF):        $(SRC_DIR)/ud.h
+ud_defs.$(SUF):        $(SRC_DIR)/../share/types.h
+ud_defs.$(SUF):        $(EMH)/em_mnem.h
+ud_const.$(SUF):       $(SRC_DIR)/ud_const.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ud_const.c
+ud_const.$(SUF):       $(SRC_DIR)/ud_aux.h
+ud_const.$(SUF):       $(SRC_DIR)/ud_const.h
+ud_const.$(SUF):       $(SRC_DIR)/ud_defs.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/locals.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/aux.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/def.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/cset.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/lset.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/alloc.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/global.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/debug.h
+ud_const.$(SUF):       $(SRC_DIR)/ud.h
+ud_const.$(SUF):       $(SRC_DIR)/../share/types.h
+ud_const.$(SUF):       $(EMH)/em_spec.h
+ud_const.$(SUF):       $(EMH)/em_pseu.h
+ud_const.$(SUF):       $(EMH)/em_mnem.h
+ud_copy.$(SUF):        $(SRC_DIR)/ud_copy.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ud_copy.c
+ud_copy.$(SUF):        $(SRC_DIR)/ud_aux.h
+ud_copy.$(SUF):        $(SRC_DIR)/ud_const.h
+ud_copy.$(SUF):        $(SRC_DIR)/ud_copy.h
+ud_copy.$(SUF):        $(SRC_DIR)/../ud/ud_defs.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/locals.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/aux.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/def.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/cset.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/lset.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/alloc.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/global.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/debug.h
+ud_copy.$(SUF):        $(SRC_DIR)/ud.h
+ud_copy.$(SUF):        $(SRC_DIR)/../share/types.h
+ud_copy.$(SUF):        $(EMH)/em_spec.h
+ud_copy.$(SUF):        $(EMH)/em_pseu.h
+ud_copy.$(SUF):        $(EMH)/em_mnem.h
+ud_aux.$(SUF): $(SRC_DIR)/ud_aux.c
+       $(CC) -c $(CFLAGS) $(SRC_DIR)/ud_aux.c
+ud_aux.$(SUF): $(SRC_DIR)/ud_defs.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/aux.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/locals.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/def.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/cset.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/lset.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/alloc.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/global.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/debug.h
+ud_aux.$(SUF): $(SRC_DIR)/ud.h
+ud_aux.$(SUF): $(SRC_DIR)/../share/types.h
+ud_aux.$(SUF): $(EMH)/em_spec.h
+ud_aux.$(SUF): $(EMH)/em_pseu.h
+ud_aux.$(SUF): $(EMH)/em_mnem.h