1987-01-13 10:43:12 +00:00
|
|
|
EMHOME=../../..
|
|
|
|
EMH=$(EMHOME)/h
|
|
|
|
EMLIB=$(EMHOME)/lib
|
1991-03-05 12:44:05 +00:00
|
|
|
SHR=../share
|
1987-01-13 10:43:12 +00:00
|
|
|
|
1991-02-19 16:51:50 +00:00
|
|
|
LDFLAGS=
|
1991-03-05 12:44:05 +00:00
|
|
|
CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
|
1987-01-13 10:43:12 +00:00
|
|
|
CFLAGS=$(CPPFLAGS) -O
|
1990-12-17 14:55:03 +00:00
|
|
|
LINTFLAGS=-hbu
|
1984-11-26 15:15:07 +00:00
|
|
|
|
1990-12-17 14:55:03 +00:00
|
|
|
CFILES=\
|
|
|
|
debug.c global.c files.c go.c map.c aux.c get.c put.c alloc.c lset.c\
|
|
|
|
cset.c parser.c stack_chg.c locals.c init_glob.c
|
1985-02-11 10:52:49 +00:00
|
|
|
SRC=\
|
1990-12-17 14:55:03 +00:00
|
|
|
types.h def.h debug.h global.h files.h go.h map.h aux.h get.h put.h alloc.h\
|
|
|
|
lset.h cset.h parser.h stack_chg.h locals.h init_glob.h $(CFILES)
|
1985-02-11 10:52:49 +00:00
|
|
|
|
|
|
|
PRFILES=$(SRC)
|
|
|
|
|
|
|
|
.SUFFIXES: .m
|
|
|
|
.c.m:
|
|
|
|
$(CC) -c.m $(CFLAGS) $<
|
|
|
|
|
|
|
|
all:\
|
|
|
|
classdefs.h pop_push.h wordlen.h alloc.o cset.o debug.o files.o go.o\
|
|
|
|
global.o lset.o map.o parser.o get.o put.o aux.o stack_chg.o locals.o\
|
|
|
|
init_glob.o
|
|
|
|
|
1987-01-13 10:43:12 +00:00
|
|
|
install: all
|
|
|
|
|
|
|
|
cmp: all
|
1985-02-11 10:52:49 +00:00
|
|
|
|
1987-03-11 09:49:33 +00:00
|
|
|
distr: pop_push.h
|
|
|
|
|
1985-02-11 10:52:49 +00:00
|
|
|
em_files:\
|
|
|
|
classdefs.h pop_push.h wordlen.h alloc.m cset.m debug.m\
|
|
|
|
files.m go.m global.m lset.m map.m parser.m get.m put.m aux.m stack_chg.m\
|
|
|
|
locals.m init_glob.m
|
1984-12-04 15:04:01 +00:00
|
|
|
|
1984-11-26 15:15:07 +00:00
|
|
|
classdefs.h: \
|
|
|
|
makeclassdef \
|
|
|
|
cldefs.src
|
|
|
|
makeclassdef $(EMH)/em_mnem.h cldefs.src > classdefs.h
|
1987-01-13 10:43:12 +00:00
|
|
|
|
1984-11-26 15:15:07 +00:00
|
|
|
makeclassdef: \
|
|
|
|
makecldef.c
|
1984-11-27 12:59:18 +00:00
|
|
|
$(CC) -o makeclassdef makecldef.c
|
1984-12-04 15:04:01 +00:00
|
|
|
|
1984-11-26 15:15:07 +00:00
|
|
|
pop_push.h: \
|
1987-03-11 09:49:33 +00:00
|
|
|
$(EMHOME)/etc/em_table pop_push.awk
|
|
|
|
awk -f pop_push.awk < $(EMHOME)/etc/em_table > pop_push.h
|
1984-12-04 15:04:01 +00:00
|
|
|
|
|
|
|
wordlen.h: makewordlen
|
|
|
|
makewordlen > wordlen.h
|
1985-02-11 10:52:49 +00:00
|
|
|
rm makewordlen
|
1987-01-13 10:43:12 +00:00
|
|
|
|
1984-12-04 15:04:01 +00:00
|
|
|
makewordlen: makewlen.c
|
|
|
|
$(CC) -o makewordlen makewlen.c
|
1987-01-13 10:43:12 +00:00
|
|
|
|
1984-11-26 15:15:07 +00:00
|
|
|
show: \
|
|
|
|
show.c
|
1987-01-13 10:43:12 +00:00
|
|
|
$(CC) -o show show.c $(EMLIB)/em_data.a
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr $(PRFILES)
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr | opr
|
|
|
|
|
|
|
|
clean:
|
1988-04-29 09:12:29 +00:00
|
|
|
@echo "make clean does not remove anything, because it is also done"
|
|
|
|
@echo "by the installation script, and this directory should not be"
|
|
|
|
@echo "cleaned. Type 'make oclean' instead."
|
|
|
|
|
|
|
|
oclean:
|
1988-04-27 10:57:37 +00:00
|
|
|
rm -f makeclassdef classdefs.h makewordlen wordlen.h *.o Out out nohup.out *.m
|
1987-01-13 10:43:12 +00:00
|
|
|
|
1985-02-11 10:52:49 +00:00
|
|
|
lint:
|
|
|
|
lint $(LINTFLAGS) $(CPPFLAGS) $(CFILES)
|
|
|
|
|
1987-01-13 10:43:12 +00:00
|
|
|
print: $(PRFILES)
|
1985-02-11 10:52:49 +00:00
|
|
|
@pr $?
|
1987-01-13 10:43:12 +00:00
|
|
|
@touch print
|
1985-02-11 10:52:49 +00:00
|
|
|
|
|
|
|
depend:
|
|
|
|
$(SHR)/makedepend
|
|
|
|
|
1984-11-26 15:15:07 +00:00
|
|
|
# the next lines are generated automatically
|
|
|
|
# AUTOAUTOAUTOAUTOAUTOAUTO
|
|
|
|
alloc.o: alloc.h
|
|
|
|
alloc.o: debug.h
|
|
|
|
alloc.o: types.h
|
1991-03-05 12:44:05 +00:00
|
|
|
aux.o: alloc.h
|
|
|
|
aux.o: aux.h
|
|
|
|
aux.o: debug.h
|
|
|
|
aux.o: global.h
|
|
|
|
aux.o: lset.h
|
|
|
|
aux.o: map.h
|
|
|
|
aux.o: types.h
|
1984-11-26 15:15:07 +00:00
|
|
|
cset.o: alloc.h
|
|
|
|
cset.o: cset.h
|
|
|
|
cset.o: debug.h
|
|
|
|
cset.o: global.h
|
|
|
|
cset.o: types.h
|
|
|
|
debug.o: debug.h
|
|
|
|
debug.o: def.h
|
|
|
|
debug.o: global.h
|
|
|
|
debug.o: types.h
|
|
|
|
get.o: alloc.h
|
|
|
|
get.o: aux.h
|
|
|
|
get.o: cset.h
|
|
|
|
get.o: debug.h
|
|
|
|
get.o: def.h
|
|
|
|
get.o: get.h
|
|
|
|
get.o: global.h
|
|
|
|
get.o: lset.h
|
|
|
|
get.o: map.h
|
|
|
|
get.o: types.h
|
|
|
|
global.o: types.h
|
1991-03-05 12:44:05 +00:00
|
|
|
go.o: alloc.h
|
|
|
|
go.o: debug.h
|
|
|
|
go.o: files.h
|
|
|
|
go.o: get.h
|
|
|
|
go.o: global.h
|
|
|
|
go.o: go.h
|
|
|
|
go.o: lset.h
|
|
|
|
go.o: map.h
|
|
|
|
go.o: put.h
|
|
|
|
go.o: types.h
|
|
|
|
init_glob.o: alloc.h
|
|
|
|
init_glob.o: debug.h
|
|
|
|
init_glob.o: global.h
|
|
|
|
init_glob.o: map.h
|
|
|
|
init_glob.o: types.h
|
1984-11-26 15:15:07 +00:00
|
|
|
locals.o: alloc.h
|
|
|
|
locals.o: aux.h
|
|
|
|
locals.o: cset.h
|
|
|
|
locals.o: debug.h
|
|
|
|
locals.o: def.h
|
|
|
|
locals.o: get.h
|
|
|
|
locals.o: global.h
|
|
|
|
locals.o: locals.h
|
|
|
|
locals.o: lset.h
|
|
|
|
locals.o: types.h
|
|
|
|
lset.o: alloc.h
|
|
|
|
lset.o: debug.h
|
|
|
|
lset.o: lset.h
|
|
|
|
lset.o: types.h
|
|
|
|
map.o: map.h
|
|
|
|
map.o: types.h
|
|
|
|
parser.o: alloc.h
|
|
|
|
parser.o: aux.h
|
|
|
|
parser.o: classdefs.h
|
|
|
|
parser.o: debug.h
|
|
|
|
parser.o: global.h
|
|
|
|
parser.o: lset.h
|
|
|
|
parser.o: types.h
|
|
|
|
put.o: alloc.h
|
|
|
|
put.o: debug.h
|
|
|
|
put.o: def.h
|
|
|
|
put.o: global.h
|
|
|
|
put.o: lset.h
|
|
|
|
put.o: map.h
|
|
|
|
put.o: put.h
|
|
|
|
put.o: types.h
|
1991-03-05 12:44:05 +00:00
|
|
|
show.o: def.h
|
|
|
|
show.o: global.h
|
|
|
|
show.o: types.h
|
|
|
|
stack_chg.o: debug.h
|
|
|
|
stack_chg.o: global.h
|
1984-11-26 15:15:07 +00:00
|
|
|
stack_chg.o: pop_push.h
|
1991-03-05 12:44:05 +00:00
|
|
|
stack_chg.o: types.h
|