xref: /titanic_52/usr/src/cmd/tr/Makefile (revision 2c2d21e98a95cba5687ec6574c974a5c6c4a6adb)
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
9# at http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
14#
15
16
17PROG=		tr
18XPG4PROG=	$(PROG)
19XPG6PROG=	$(PROG)
20
21OBJS=		tr.o str.o cset.o cmap.o
22SRCS=	 	$(OBJS:%.o=%.c)
23
24include ../Makefile.cmd
25
26CLOBBERFILES=	$(PROG)
27
28
29C99MODE=	-xc99=%all
30C99LMODE=	-Xc99=%all
31CPPFLAGS +=	-D_ILLUMOS_PRIVATE -I.
32LINTFLAGS +=	-D_ILLUMOS_PRIVATE -I.
33
34# install rules
35$(ROOTINC)/% : %
36	$(INS.file)
37
38.KEEP_STATE:
39
40.PARALLEL: $(OBJS)
41
42all:		$(PROG)
43
44$(PROG):	$(OBJS)
45	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
46	$(POST_PROCESS)
47
48install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
49
50$(ROOTXPG4PROG) $(ROOTXPG6PROG):
51	-$(RM) $@
52	-$(LN) -s ../../bin/$(PROG) $@
53
54lint: 	lint_SRCS
55
56clean:
57	$(RM) $(OBJS)
58
59include ../Makefile.targ
60