1988-03-14 15:58:07 +00:00
|
|
|
EMHOME=../../..
|
|
|
|
LIBS=$(EMHOME)/modules/lib/libstring.a
|
1986-11-24 20:58:35 +00:00
|
|
|
PREFLAGS=-I.
|
|
|
|
PFLAGS=
|
1986-11-24 21:01:42 +00:00
|
|
|
CFLAGS=$(PREFLAGS) $(PFLAGS) -O -DNDEBUG
|
1991-02-19 16:57:39 +00:00
|
|
|
LDFLAGS=$(PFLAGS)
|
1988-06-28 14:41:02 +00:00
|
|
|
LINTOPTS=-bx
|
1988-03-14 15:58:07 +00:00
|
|
|
CDIR=$(EMHOME)/mach/proto/top
|
1986-11-24 21:30:57 +00:00
|
|
|
CFILES=$(CDIR)/top.c $(CDIR)/queue.c
|
|
|
|
OFILES=top.o queue.o
|
1986-11-24 20:58:35 +00:00
|
|
|
|
|
|
|
all: gen.c
|
|
|
|
make top
|
|
|
|
|
|
|
|
top: $(OFILES)
|
|
|
|
$(CC) $(LDFLAGS) $(OFILES) $(LIBS) -o top
|
|
|
|
|
1986-11-24 21:30:57 +00:00
|
|
|
top.o: $(CDIR)/top.c gen.c
|
1986-11-24 20:58:35 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/top.c
|
|
|
|
|
|
|
|
queue.o: $(CDIR)/queue.c
|
|
|
|
$(CC) -c $(CFLAGS) $(CDIR)/queue.c
|
|
|
|
|
|
|
|
install: all
|
1988-03-14 15:58:07 +00:00
|
|
|
$(EMHOME)/mach/install top
|
1986-11-24 20:58:35 +00:00
|
|
|
|
|
|
|
cmp: all
|
1988-03-14 15:58:07 +00:00
|
|
|
-$(EMHOME)/mach/compare top
|
1986-11-24 20:58:35 +00:00
|
|
|
|
|
|
|
gen.c: table
|
1988-03-14 15:58:07 +00:00
|
|
|
$(EMHOME)/lib/topgen table
|
1986-11-24 20:58:35 +00:00
|
|
|
|
|
|
|
lint: $(CFILES)
|
|
|
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o gen.c gen.h top
|
|
|
|
|
|
|
|
top.o: gen.h
|
|
|
|
top.o: $(CDIR)/top.h
|
|
|
|
top.o: $(CDIR)/queue.h
|
|
|
|
queue.o: $(CDIR)/queue.h
|