1 # $Id: proto.make,v 1.3 1994/06/24 13:28:53 ceriel Exp $
3 #PARAMS do not remove this line!
5 #MACH_DEFINE do not remove this or the next line!
8 SRC_DIR = $(SRC_HOME)/mach/$(MACH)/top
9 LIBS=$(TARGET_HOME)/modules/lib/libstring.$(LIBSUF)
12 CFLAGS=$(PREFLAGS) $(PFLAGS) $(COPTIONS)
13 LDFLAGS=$(PFLAGS) $(LDOPTIONS)
14 LINTFLAGS=$(PREFLAGS) $(LINTOPTIONS)
15 CDIR=$(SRC_HOME)/mach/proto/top
16 CFILES=$(CDIR)/top.c $(CDIR)/queue.c
17 OFILES=top.$(SUF) queue.$(SUF)
23 $(CC) $(LDFLAGS) $(OFILES) $(LIBS) -o top
25 top.$(SUF): $(CDIR)/top.c gen.c
26 $(CC) -c $(CFLAGS) $(CDIR)/top.c
28 queue.$(SUF): $(CDIR)/queue.c
29 $(CC) -c $(CFLAGS) $(CDIR)/queue.c
32 -mkdir $(TARGET_HOME)/lib.bin/$(MACH)
33 cp top $(TARGET_HOME)/lib.bin/$(MACH)/top
36 -cmp top $(TARGET_HOME)/lib.bin/$(MACH)/top
38 gen.c: $(SRC_DIR)/table
39 $(UTIL_HOME)/lib.bin/topgen $(SRC_DIR)/table
42 $(LINT) $(LINTFLAGS) $(CFILES)
45 rm -f *.$(SUF) gen.c gen.h top
48 top.$(SUF): $(CDIR)/top.h
49 top.$(SUF): $(CDIR)/queue.h
50 queue.$(SUF): $(CDIR)/queue.h