Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / lint / llib / proto.make
1 # (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
2 # See the copyright notice in the ACK home directory, in the file "Copyright".
3 #
4 # $Id: proto.make,v 1.8 1994/06/24 12:24:08 ceriel Exp $
5
6 #PARAMS         do not remove this line!
7
8 SRC_DIR =       $(SRC_HOME)/lang/cem/lint/llib
9
10 LINT =          $(UTIL_HOME)/bin/lint
11
12 CURSESDIR =     /usr/src/lib/libcurses#         # for a local -lcurses
13 MATHDIR =       /usr/src/lib/libm#              # for a local -lm
14 TERMLIBDIR =    /usr/src/lib/libtermlib#        # for a local -ltermlib
15
16 CLIBDIR =       $(SRC_HOME)/lang/cem/libcc#     # to create c.llb
17 ANSILIBDIR =    $(SRC_HOME)/lang/cem/libcc.ansi## to create c.llb
18 INCLUDE =       $(SRC_HOME)/include/_tail_cc
19 AINCLUDE =      $(SRC_HOME)/lang/cem/libcc.ansi/headers
20 CLIBFLAGS =     -I$(INCLUDE)#                   # to compile $(CLIBDIR)
21 ANSILIBFLAGS =  -I$(AINCLUDE)#                  # to compile $(ANSILIBDIR)
22
23 all:    c.llb ansi_c.llb
24
25 install:        all
26         -mkdir $(TARGET_HOME)/lib.bin/lint
27         -mkdir $(TARGET_HOME)/lib.bin/lint/llib
28         cp $(SRC_DIR)/*.llb $(TARGET_HOME)/lib.bin/lint/llib
29         chmod +w $(TARGET_HOME)/lib.bin/lint/llib/*
30         cp *.llb $(TARGET_HOME)/lib.bin/lint/llib
31         chmod +w $(TARGET_HOME)/lib.bin/lint/llib/*
32
33 cmp:
34         echo "nothing compared"
35
36 pr:
37         echo "nothing printed"
38
39 opr:
40         echo "nothing printed"
41
42 clean:
43         rm -f *.llb Out
44
45 c.llb:  $(SRC_DIR)/unix7.c
46         cp $(SRC_DIR)/c.llb c.llb
47         chmod +w c.llb
48         $(LINT) -Lc.llb $(SRC_DIR)/unix7.c
49
50 ansi_c.llb:     $(SRC_DIR)/unix7.c
51         cp $(SRC_DIR)/ansi_c.llb ansi_c.llb
52         chmod +w ansi_c.llb
53         $(LINT) -ansi -Lansi_c.llb $(SRC_DIR)/unix7.c
54
55 curses.llb:
56         $(LINT) -Lcurses.llb $(CURSESDIR)/*.c
57
58 m.llb:
59         $(LINT) -Lm.llb $(MATHDIR)/*.c
60
61 termlib.llb:
62         $(LINT) -Ltermlib.llb $(TERMLIBDIR)/*.c
63
64 cnew.llb:
65         cp /dev/null cnew.llb
66         $(LINT) -Lcnew.llb $(CLIBFLAGS) $(CLIBDIR)/*/*.c
67         $(LINT) -Lcnew.llb $(SRC_DIR)/unix7.c
68
69 ansi_cnew.llb:
70         cp /dev/null ansi_cnew.llb
71         $(LINT) -ansi -Lansi_cnew.llb $(ANSILIBFLAGS) $(ANSILIBDIR)/*/*.c
72         $(LINT) -Lansi_cnew.llb $(SRC_DIR)/unix7.c