1985-02-12 14:20:30 +00:00
|
|
|
# $Header$
|
|
|
|
|
1987-01-12 14:50:25 +00:00
|
|
|
EMHOME=../../..
|
1987-01-12 15:10:49 +00:00
|
|
|
#preprocessor flags for table
|
|
|
|
TABLEFLAGS=
|
|
|
|
#cgg options
|
|
|
|
CGGFLAGS=
|
|
|
|
|
1989-07-10 16:52:02 +00:00
|
|
|
PREFLAGS=-I$(EMHOME)/h -I. -I$(EMHOME)/mach -I$(EMHOME)/modules/h -DNDEBUG
|
1985-02-12 14:20:30 +00:00
|
|
|
PFLAGS=
|
1987-01-28 12:49:42 +00:00
|
|
|
CFLAGS=$(PREFLAGS) $(PFLAGS) -O
|
1985-02-12 14:20:30 +00:00
|
|
|
LDFLAGS=-i $(PFLAGS)
|
1988-06-28 14:36:21 +00:00
|
|
|
LINTOPTS=-bx
|
1989-07-10 16:52:02 +00:00
|
|
|
LIBS=$(EMHOME)/lib/em_data.a $(EMHOME)/modules/lib/libflt.a
|
1987-01-12 14:50:25 +00:00
|
|
|
CDIR=$(EMHOME)/mach/proto/ncg
|
|
|
|
CGG=$(EMHOME)/lib/ncgg
|
1989-10-20 11:05:00 +00:00
|
|
|
CPP=$(EMHOME)/lib/cpp
|
1985-02-12 14:20:30 +00:00
|
|
|
CFILES=$(CDIR)/codegen.c $(CDIR)/compute.c $(CDIR)/equiv.c $(CDIR)/fillem.c \
|
|
|
|
$(CDIR)/gencode.c $(CDIR)/glosym.c $(CDIR)/main.c $(CDIR)/move.c \
|
|
|
|
$(CDIR)/nextem.c $(CDIR)/reg.c $(CDIR)/regvar.c $(CDIR)/salloc.c \
|
|
|
|
$(CDIR)/state.c $(CDIR)/subr.c $(CDIR)/var.c
|
|
|
|
OFILES=codegen.o compute.o equiv.o fillem.o gencode.o glosym.o main.o\
|
|
|
|
move.o nextem.o reg.o regvar.o salloc.o state.o subr.o var.o
|
|
|
|
|
1987-04-03 11:18:49 +00:00
|
|
|
all: tables.c
|
1987-06-30 18:30:45 +00:00
|
|
|
make "EMHOME="$(EMHOME) cg
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
cg: tables.o $(OFILES)
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) $(LDFLAGS) $(OFILES) tables.o $(LIBS) -o cg
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
tables.o: tables.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(PREFLAGS) -I$(CDIR) tables.c
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
codegen.o: $(CDIR)/codegen.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/codegen.c
|
1985-02-12 14:20:30 +00:00
|
|
|
compute.o: $(CDIR)/compute.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/compute.c
|
1985-02-12 14:20:30 +00:00
|
|
|
equiv.o: $(CDIR)/equiv.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/equiv.c
|
1985-02-12 14:20:30 +00:00
|
|
|
fillem.o: $(CDIR)/fillem.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/fillem.c
|
1985-02-12 14:20:30 +00:00
|
|
|
gencode.o: $(CDIR)/gencode.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/gencode.c
|
1985-02-12 14:20:30 +00:00
|
|
|
glosym.o: $(CDIR)/glosym.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/glosym.c
|
1985-02-12 14:20:30 +00:00
|
|
|
main.o: $(CDIR)/main.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/main.c
|
1985-02-12 14:20:30 +00:00
|
|
|
move.o: $(CDIR)/move.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/move.c
|
1985-02-12 14:20:30 +00:00
|
|
|
nextem.o: $(CDIR)/nextem.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/nextem.c
|
1985-02-12 14:20:30 +00:00
|
|
|
reg.o: $(CDIR)/reg.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/reg.c
|
1985-02-12 14:20:30 +00:00
|
|
|
regvar.o: $(CDIR)/regvar.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/regvar.c
|
1985-02-12 14:20:30 +00:00
|
|
|
salloc.o: $(CDIR)/salloc.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/salloc.c
|
1985-02-12 14:20:30 +00:00
|
|
|
state.o: $(CDIR)/state.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/state.c
|
1985-02-12 14:20:30 +00:00
|
|
|
subr.o: $(CDIR)/subr.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/subr.c
|
1985-02-12 14:20:30 +00:00
|
|
|
var.o: $(CDIR)/var.c
|
1987-01-28 12:49:42 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/var.c
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
install: all
|
1987-01-12 14:50:25 +00:00
|
|
|
$(EMHOME)/mach/install cg
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
cmp: all
|
1987-01-12 14:50:25 +00:00
|
|
|
-$(EMHOME)/mach/compare cg
|
1985-02-12 14:20:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
tables.c: table $(CGG)
|
1989-10-20 11:05:00 +00:00
|
|
|
$(CPP) $(TABLEFLAGS) table | $(CGG) $(CGGFLAGS)
|
1985-02-12 14:20:30 +00:00
|
|
|
-cmp tables.h tables.H || cp tables.H tables.h
|
|
|
|
|
1988-06-28 14:36:21 +00:00
|
|
|
lint: $(CFILES) tables.c
|
|
|
|
lint $(LINTOPTS) $(PREFLAGS) -I$(CDIR) $(CFILES) tables.c
|
1985-02-12 14:20:30 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o tables.c tables.h debug.out cg tables.H
|
|
|
|
|
1987-03-19 10:12:51 +00:00
|
|
|
distr: tables.c
|
|
|
|
rm -f tables1.c tables1.h
|
|
|
|
cp tables.c tables1.c
|
|
|
|
cp tables.h tables1.h
|
|
|
|
chmod -w tables1.[ch]
|
|
|
|
|
1987-01-12 14:50:25 +00:00
|
|
|
codegen.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
codegen.o: $(CDIR)/data.h
|
|
|
|
codegen.o: $(CDIR)/equiv.h
|
|
|
|
codegen.o: $(CDIR)/extern.h
|
|
|
|
codegen.o: $(CDIR)/param.h
|
|
|
|
codegen.o: $(CDIR)/result.h
|
|
|
|
codegen.o: $(CDIR)/state.h
|
|
|
|
codegen.o: tables.h
|
|
|
|
codegen.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
compute.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
compute.o: $(CDIR)/data.h
|
|
|
|
compute.o: $(CDIR)/extern.h
|
|
|
|
compute.o: $(CDIR)/glosym.h
|
|
|
|
compute.o: $(CDIR)/param.h
|
|
|
|
compute.o: $(CDIR)/result.h
|
|
|
|
compute.o: tables.h
|
|
|
|
compute.o: $(CDIR)/types.h
|
|
|
|
equiv.o: $(CDIR)/assert.h
|
1987-01-12 14:50:25 +00:00
|
|
|
equiv.o: $(CDIR)/data.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
equiv.o: $(CDIR)/equiv.h
|
|
|
|
equiv.o: $(CDIR)/extern.h
|
|
|
|
equiv.o: $(CDIR)/param.h
|
|
|
|
equiv.o: $(CDIR)/result.h
|
|
|
|
equiv.o: tables.h
|
|
|
|
equiv.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
fillem.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
fillem.o: $(CDIR)/data.h
|
|
|
|
fillem.o: $(CDIR)/extern.h
|
|
|
|
fillem.o: mach.c
|
|
|
|
fillem.o: mach.h
|
|
|
|
fillem.o: $(CDIR)/param.h
|
|
|
|
fillem.o: $(CDIR)/regvar.h
|
|
|
|
fillem.o: $(CDIR)/result.h
|
|
|
|
fillem.o: tables.h
|
|
|
|
fillem.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
gencode.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
gencode.o: $(CDIR)/data.h
|
|
|
|
gencode.o: $(CDIR)/extern.h
|
|
|
|
gencode.o: $(CDIR)/param.h
|
|
|
|
gencode.o: $(CDIR)/result.h
|
|
|
|
gencode.o: tables.h
|
|
|
|
gencode.o: $(CDIR)/types.h
|
|
|
|
glosym.o: $(CDIR)/glosym.h
|
|
|
|
glosym.o: $(CDIR)/param.h
|
|
|
|
glosym.o: tables.h
|
|
|
|
glosym.o: $(CDIR)/types.h
|
|
|
|
main.o: $(CDIR)/param.h
|
|
|
|
main.o: tables.h
|
1987-01-12 14:50:25 +00:00
|
|
|
move.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
move.o: $(CDIR)/data.h
|
|
|
|
move.o: $(CDIR)/extern.h
|
|
|
|
move.o: $(CDIR)/param.h
|
|
|
|
move.o: $(CDIR)/result.h
|
|
|
|
move.o: tables.h
|
|
|
|
move.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
nextem.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
nextem.o: $(CDIR)/data.h
|
|
|
|
nextem.o: $(CDIR)/extern.h
|
|
|
|
nextem.o: $(CDIR)/param.h
|
|
|
|
nextem.o: $(CDIR)/result.h
|
|
|
|
nextem.o: tables.h
|
|
|
|
nextem.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
reg.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
reg.o: $(CDIR)/data.h
|
|
|
|
reg.o: $(CDIR)/extern.h
|
|
|
|
reg.o: $(CDIR)/param.h
|
|
|
|
reg.o: $(CDIR)/result.h
|
|
|
|
reg.o: tables.h
|
|
|
|
reg.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
regvar.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
regvar.o: $(CDIR)/data.h
|
|
|
|
regvar.o: $(CDIR)/extern.h
|
|
|
|
regvar.o: $(CDIR)/param.h
|
|
|
|
regvar.o: $(CDIR)/regvar.h
|
|
|
|
regvar.o: $(CDIR)/result.h
|
|
|
|
regvar.o: tables.h
|
|
|
|
regvar.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
salloc.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
salloc.o: $(CDIR)/data.h
|
|
|
|
salloc.o: $(CDIR)/extern.h
|
|
|
|
salloc.o: $(CDIR)/param.h
|
|
|
|
salloc.o: $(CDIR)/result.h
|
|
|
|
salloc.o: tables.h
|
|
|
|
salloc.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
state.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
state.o: $(CDIR)/data.h
|
|
|
|
state.o: $(CDIR)/extern.h
|
|
|
|
state.o: $(CDIR)/param.h
|
|
|
|
state.o: $(CDIR)/result.h
|
|
|
|
state.o: $(CDIR)/state.h
|
|
|
|
state.o: tables.h
|
|
|
|
state.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
subr.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
subr.o: $(CDIR)/data.h
|
|
|
|
subr.o: $(CDIR)/extern.h
|
|
|
|
subr.o: $(CDIR)/param.h
|
|
|
|
subr.o: $(CDIR)/result.h
|
|
|
|
subr.o: tables.h
|
|
|
|
subr.o: $(CDIR)/types.h
|
1987-01-12 14:50:25 +00:00
|
|
|
var.o: $(CDIR)/data.h $(EMHOME)/h/cgg_cg.h
|
1985-02-12 14:20:30 +00:00
|
|
|
var.o: $(CDIR)/param.h
|
|
|
|
var.o: $(CDIR)/result.h
|
|
|
|
var.o: tables.h
|
|
|
|
var.o: $(CDIR)/types.h
|