Pristine Ack-5.5
[Ack-5.5.git] / mach / proto / libg / proto.libf77
1 # $Id: proto.libf77,v 1.5 1994/06/24 13:25:31 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)/lang/fortran/lib
8
9 .SUFFIXES: .o .e .c .m .s .so
10
11 .c.o .c.m .c.s .c.so .e.o .e.m .e.s .e.so:
12                 $(MACH) $(MACHFL) -LIB -DSkip_f2c_Undefs -ansi -DNON_UNIX_STDIO -wo -c $<
13
14 fake:
15 all:            copy tail
16
17 copy:
18                 ( cd $(SRC_DIR) ; tar cf - LIST `cat LIST` ) | \
19                         tar xf -
20
21 tail:
22                 for i in `cat LIST` ; \
23                 do cd $$i ; \
24                    rm -f OLIST ; \
25                    sed 's/\.[ce]/.$(SUF)/' < LIST | sed '/\.h/D' > OLIST ; \
26                    make -f ../Makefile `cat OLIST` ; \
27                    cd .. ; \
28                    for j in `cat $$i/OLIST` ; \
29                    do echo $$i/$$j >> OLIST ; \
30                    done ; \
31                 done
32                 $(ASAR) r tail_f77 `cat OLIST`
33                 $(RANLIB) tail_f77
34
35 install:        all
36                 cp tail_f77 $(TARGET_HOME)/lib/$(MACH)/tail_f77
37                 $(RANLIB) $(TARGET_HOME)/lib/$(MACH)/tail_f77
38
39 cmp:            all
40                 -cmp tail_f77 $(TARGET_HOME)/lib/$(MACH)/tail_f77
41
42 clean:
43                 -rm -f *.old *.[ce$(SUF)] tail* head* OLIST
44                 -rm -rf `cat LIST`
45                 -rm -f LIST
46
47 opr:
48                 @echo "nothing to be printed"
49
50 pr:
51                 @echo "nothing to be printed"