New installation mechanism
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
Makefile
|
||||
proto.make
|
||||
bo.c
|
||||
|
||||
78
util/ego/bo/proto.make
Normal file
78
util/ego/bo/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
ca.c
|
||||
ca.h
|
||||
ca_put.c
|
||||
|
||||
90
util/ego/ca/proto.make
Normal file
90
util/ego/ca/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
cf.c
|
||||
cf.h
|
||||
cf_idom.c
|
||||
|
||||
118
util/ego/cf/proto.make
Normal file
118
util/ego/cf/proto.make
Normal file
@@ -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
|
||||
@@ -1,2 +1,2 @@
|
||||
Makefile
|
||||
proto.make
|
||||
cj.c
|
||||
|
||||
77
util/ego/cj/proto.make
Normal file
77
util/ego/cj/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
cs.c
|
||||
cs.h
|
||||
cs_alloc.c
|
||||
|
||||
252
util/ego/cs/proto.make
Normal file
252
util/ego/cs/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
descr.sed
|
||||
i86.descr
|
||||
m68020.descr
|
||||
|
||||
72
util/ego/descr/proto.make
Normal file
72
util/ego/descr/proto.make
Normal file
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Makefile
|
||||
proto.make
|
||||
em_ego.c
|
||||
|
||||
41
util/ego/em_ego/proto.make
Normal file
41
util/ego/em_ego/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
ic.c
|
||||
ic.h
|
||||
ic_aux.c
|
||||
|
||||
138
util/ego/ic/proto.make
Normal file
138
util/ego/ic/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
il.c
|
||||
il.h
|
||||
il1_anal.c
|
||||
|
||||
224
util/ego/il/proto.make
Normal file
224
util/ego/il/proto.make
Normal file
@@ -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
|
||||
@@ -1,3 +1,3 @@
|
||||
Makefile
|
||||
proto.make
|
||||
lv.c
|
||||
lv.h
|
||||
|
||||
85
util/ego/lv/proto.make
Normal file
85
util/ego/lv/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
itemtab.src
|
||||
makeitems.c
|
||||
ra.c
|
||||
|
||||
235
util/ego/ra/proto.make
Normal file
235
util/ego/ra/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
alloc.c
|
||||
alloc.h
|
||||
aux.c
|
||||
|
||||
241
util/ego/share/proto.make
Normal file
241
util/ego/share/proto.make
Normal file
@@ -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
|
||||
@@ -1,2 +1,2 @@
|
||||
Makefile
|
||||
proto.make
|
||||
sp.c
|
||||
|
||||
76
util/ego/sp/proto.make
Normal file
76
util/ego/sp/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
sr.c
|
||||
sr.h
|
||||
sr_aux.c
|
||||
|
||||
177
util/ego/sr/proto.make
Normal file
177
util/ego/sr/proto.make
Normal file
@@ -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
|
||||
@@ -1,4 +1,4 @@
|
||||
Makefile
|
||||
proto.make
|
||||
ud.c
|
||||
ud.h
|
||||
ud_aux.c
|
||||
|
||||
159
util/ego/ud/proto.make
Normal file
159
util/ego/ud/proto.make
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user