|
|
1.1 root 1: # ***************************************************************
2: # * Copyright (c) 1990 AT&T *
3: # * All Rights Reserved *
4: # * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T *
5: # * The copyright notice above does not *
6: # * evidence any actual or intended *
7: # * publication of such source code. *
8: # ***************************************************************
9: # @(#)library.mk 1.15 5/5/90 RnD added
10: # ***************************************************************
11: # * Copyright (c) 1989 AT&T *
12: # * All Rights Reserved *
13: # * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T *
14: # * The copyright notice above does not *
15: # * evidence any actual or intended *
16: # * publication of such source code. *
17: # ***************************************************************
18: # this is the make file for library(1)
19: # Note that the help messages are gotten from files that are put at
20: # $INSLIB. If you put them elsewhere change the LIB variable appropriately
21: #
22: #########################################
23: # *** RDS makefile standards applied ***
24: #########################################
25: ROOT =
26: CC = cc
27: INC = $(ROOT)/usr/include
28: MAKE = $(ROOT)/bin/make
29: INCSYS = $(ROOT)/usr/include/sys
30: SHELL = /bin/sh
31: TESTDIR= .
32: INS = $(ROOT)/etc/install
33: INSDIR = $(ROOT)/usr/bin
34: INSLIB = $(ROOT)/usr/lib/library
35: MAN = $(ROOT)/usr/lman/u_man/man1
36: LFILES=[2456].* *help* known.list
37:
38: LDFLAGS= -s $(LDLIBS)
39: # following is for BSD machines.
40: # BSD=`if [ -x /bin/sun ]; then if /bin/sun; then echo "-DBSD4_2 -Dstrchr=index -Dstrrchr=rindex"; fi; fi`
41: BSD=-DBSD4_2
42: DFLAGS=-DWHERE=\"${INSLIB}\" $(BSD)
43: CFLAGS=-O -I. $(DFLAGS)
44:
45: FILES=library
46: OFILES=library.o option1.o option3.o reader.o option2.o checkdoc.o gnamef.o uppercase.o
47:
48: all: $(FILES)
49:
50: library: $(OFILES)
51: $(CC) $(CFLAGS) -o $(TESTDIR)/library $(OFILES) $(LDFLAGS)
52:
53: lint:
54: lint $(LFLAGS) $(DFLAGS) *.c
55:
56: install: library
57: if test ! -d ${INSLIB} ; \
58: then \
59: mkdir ${INSLIB}; \
60: chown bin $(INSLIB); \
61: chgrp bin $(INSLIB); \
62: chmod 775 $(INSLIB); \
63: fi
64: for i in $(LFILES); do $(INS) -m 444 -f $(INSLIB) $(TESTDIR)/$$i; done;
65: $(INS) -m 555 -f $(INSDIR) $(TESTDIR)/library
66: if test -d $(MAN) ; \
67: then \
68: $(INS) -f $(MAN) -m 444 library.1 ; \
69: fi
70:
71: clean:
72: rm -f *.o
73:
74: clobber: clean
75: rm -f library
76:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.