1 # $Id: proto.make,v 1.6 1994/06/24 11:07:14 ceriel Exp $
3 #PARAMS do not remove this line!
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)
10 all: libassert.$(LIBSUF)
12 libassert.$(LIBSUF): BadAssert.$(SUF)
13 $(AR) r libassert.$(LIBSUF) BadAssert.$(SUF)
14 $(RANLIB) libassert.$(LIBSUF)
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) ; \
27 -cmp libassert.$(LIBSUF) $(MOD_DIR)/lib/libassert.$(LIBSUF)
28 -cmp $(SRC_DIR)/assert.h $(MOD_DIR)/h/assert.h
31 @pr $(SRC_DIR)/proto.make $(SRC_DIR)/assert.h $(SRC_DIR)/BadAssert.c
37 rm -f *.$(LIBSUF) *.$(SUF)
40 $(MK_LINT_LIB) assert $(MOD_DIR)/lib $(INCLUDES) $(SRC_DIR)/BadAssert.c
42 BadAssert.$(SUF): $(SRC_DIR)/BadAssert.c
43 $(CC) -c $(CFLAGS) $(SRC_DIR)/BadAssert.c