Pristine Ack-5.5
[Ack-5.5.git] / mach / proto / libg / proto.make
1 # $Id: proto.make,v 1.4 1994/06/24 13:25:55 ceriel Exp $
2
3 #PARAMS         do not remove this line!
4
5 MACHFL= -O -L
6 SUB =
7 ASAR = aal
8 RANLIB = :
9 COMPILE = compmodule
10 #PREF = pc
11 #SRC=lang/pc/libpc
12 #MACH=MACHINE
13 #SUF=o
14
15 HEADSRC=$(SRC_HOME)/$(SRC)/head_$(PREF).e
16
17 all:    head tail
18
19 head:   head_$(PREF)
20
21 tail:   tail_$(PREF)$(SUB)
22
23 headcp: head
24         cp head_$(PREF) $(TARGET_HOME)/lib/$(MACH)/head_$(PREF)
25         rm -f head_$(PREF)
26
27 tailcp: tail
28         cp tail_$(PREF)$(SUB) $(TARGET_HOME)/lib/$(MACH)/tail_$(PREF)$(SUB)
29         $(RANLIB) $(TARGET_HOME)/lib/$(MACH)/tail_$(PREF)$(SUB)
30         rm -f tail_$(PREF)$(SUB)
31
32 cp:     headcp tailcp
33
34 head_$(PREF):  $(HEADSRC)
35         cp $(HEADSRC) head_$(PREF).e
36         $(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_$(PREF).e
37         mv head_$(PREF).$(SUF) head_$(PREF)
38         -rm -f head_$(PREF).[ekm$(SUF)]
39
40 tail_$(PREF)$(SUB):
41         @echo translation test
42         @$(MACH) $(MACHFL) -c $(SRC_HOME)/mach/proto/libg/barrier.c
43         @-rm -f barrier.[oeskm] barrier.so
44         @echo OK
45         -rm -f tail_$(PREF)$(SUB)
46         MACH="$(MACH)" MACHFL="$(MACHFL) -LIB -L" ASAR=$(ASAR) SRC=$(SRC) \
47                 RANLIB="$(RANLIB)" SUF="$(SUF)" \
48                 march $(SRC_HOME)/$(SRC) tail_$(PREF)$(SUB) $(COMPILE)