Pristine Ack-5.5
[Ack-5.5.git] / mach / proto / libg / proto.libdb
1 # $Id: proto.libdb,v 1.2 1994/06/24 13:25:22 ceriel Exp $
2
3 #PARAMS         do not remove this line!
4
5 #MACH_PARAMS    do not remove this line!
6
7 SRC_DIR = $(SRC_HOME)/mach/$(MACH)/libdb
8 CDIR = $(SRC_HOME)/mach/proto/grind
9
10 EMFLAGS= -L -LIB -O -I$(SRC_DIR) -I$(CDIR) -I$(SRC_HOME)/util/grind -m$(MACH)
11
12 LIST =          atlin.$(SUF) lib.$(SUF)\
13                 par_misc.$(SUF) machdep.$(SUF)
14
15 SRC =           $(CDIR)/atlin.c $(CDIR)/lib.e\
16                 $(CDIR)/par_misc.e $(SRC_DIR)/machdep.s
17
18 all:            db_lib.a
19
20 install:        tail_fp
21
22 tail_fp:        db_lib.a
23                 cp db_lib.a $(TARGET_HOME)/lib/$(MACH)/tail_db
24                 $(RANLIB) $(TARGET_HOME)/lib/$(MACH)/tail_db
25
26 clean:
27         rm -f $(LIST) db_lib.a
28
29 opr:
30         make pr | opr
31
32 pr:
33         @pr $(CDIR)/proto.make $(SRC)
34
35 db_lib.a:       $(LIST)
36         $(ASAR) rv $@ $?
37         $(RANLIB) db_lib.a
38
39 atlin.$(SUF):   $(CDIR)/atlin.c $(SRC_HOME)/util/grind/message.h
40         ack $(EMFLAGS) -c $(CDIR)/atlin.c
41
42 lib.$(SUF):     $(CDIR)/lib.e
43         ack $(EMFLAGS) -c $(CDIR)/lib.e
44
45 par_misc.$(SUF):        $(CDIR)/par_misc.e
46         ack $(EMFLAGS) -c $(CDIR)/par_misc.e
47
48 machdep.$(SUF): $(SRC_DIR)/machdep.s
49         ack $(EMFLAGS) -c $(SRC_DIR)/machdep.s