Pristine Ack-5.5
[Ack-5.5.git] / modules / src / assert / proto.make
1 # $Id: proto.make,v 1.6 1994/06/24 11:07:14 ceriel Exp $
2
3 #PARAMS         do not remove this line!
4
5 SRC_DIR = $(SRC_HOME)/modules/src/assert
6 MOD_DIR = $(TARGET_HOME)/modules
7 INCLUDES = -I$(SRC_DIR) -I$(MOD_DIR)/h
8 CFLAGS = $(COPTIONS) $(INCLUDES)
9
10 all:            libassert.$(LIBSUF)
11
12 libassert.$(LIBSUF):    BadAssert.$(SUF)
13                 $(AR) r libassert.$(LIBSUF) BadAssert.$(SUF)
14                 $(RANLIB) libassert.$(LIBSUF)
15
16 install:        all
17                 -mkdir $(MOD_DIR)/lib
18                 -mkdir $(MOD_DIR)/h
19                 cp libassert.$(LIBSUF) $(MOD_DIR)/lib/libassert.$(LIBSUF)
20                 $(RANLIB) $(MOD_DIR)/lib/libassert.$(LIBSUF)
21                 cp $(SRC_DIR)/assert.h $(MOD_DIR)/h/assert.h
22                 if [ $(DO_MACHINE_INDEP) = y ] ; \
23                 then    mk_manpage $(SRC_DIR)/assert.3 $(TARGET_HOME) ; \
24                 fi
25
26 cmp:            all
27                 -cmp libassert.$(LIBSUF) $(MOD_DIR)/lib/libassert.$(LIBSUF)
28                 -cmp $(SRC_DIR)/assert.h $(MOD_DIR)/h/assert.h
29
30 pr:
31                 @pr $(SRC_DIR)/proto.make $(SRC_DIR)/assert.h $(SRC_DIR)/BadAssert.c
32
33 opr:
34                 make pr | opr
35
36 clean:
37                 rm -f *.$(LIBSUF) *.$(SUF)
38
39 lintlib:
40                 $(MK_LINT_LIB) assert $(MOD_DIR)/lib $(INCLUDES) $(SRC_DIR)/BadAssert.c
41
42 BadAssert.$(SUF):       $(SRC_DIR)/BadAssert.c
43                 $(CC) -c $(CFLAGS) $(SRC_DIR)/BadAssert.c