ack/mach/vax4/top/Makefile

43 lines
750 B
Makefile
Raw Normal View History

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
1986-11-24 20:58:35 +00:00
LDFLAGS=-i $(PFLAGS)
LINTOPTS=-hbxac
CDIR=$(EMHOME)/mach/proto/top
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
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
$(EMHOME)/mach/install top
1986-11-24 20:58:35 +00:00
cmp: all
-$(EMHOME)/mach/compare top
1986-11-24 20:58:35 +00:00
gen.c: table
$(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