xref: /titanic_50/usr/src/cmd/man/Makefile (revision 95c635efb7c3b86efc493e0447eaec7aecca3f0f)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
14# Copyright 2014 Garrett D'Amore <garrett@damore.org>
15#
16
17PROG=		man
18LINKS=		apropos whatis catman
19LIBLINKS =	makewhatis
20OBJS=		makewhatis.o man.o stringlist.o
21SRCS=		$(OBJS:%.o=%.c)
22
23include		$(SRC)/cmd/Makefile.cmd
24
25CFLAGS +=	$(CCVERBOSE)
26
27ROOTLINKS=	$(LINKS:%=$(ROOTBIN)/%) $(LIBLINKS:%=$(ROOTLIB)/%)
28
29.KEEP_STATE :
30
31all:		$(PROG)
32
33clean:
34		$(RM) $(OBJS)
35
36install:	all $(ROOTPROG) $(ROOTLINKS)
37
38lint: 		lint_SRCS
39
40$(PROG):	$(OBJS)
41		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42		$(POST_PROCESS)
43
44$(ROOTLINKS):	$(ROOTPROG)
45		$(RM) $@; $(LN) $(ROOTPROG) $@
46
47include		$(SRC)/cmd/Makefile.targ
48