8672 proc_t changes broke genunix dmods and walker
[unleashed.git] / usr / src / cmd / tr / Makefile
blob8b556040a5f962c603807879e945a88eb5bf6449
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.
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.
13 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
17 PROG= tr
18 XPG4PROG= $(PROG)
19 XPG6PROG= $(PROG)
21 OBJS= tr.o str.o cset.o cmap.o
22 SRCS= $(OBJS:%.o=%.c)
24 include ../Makefile.cmd
26 CLOBBERFILES= $(PROG)
29 C99MODE= -xc99=%all
30 C99LMODE= -Xc99=%all
31 CPPFLAGS += -D_ILLUMOS_PRIVATE -I.
32 LINTFLAGS += -D_ILLUMOS_PRIVATE -I.
34 # install rules
35 $(ROOTINC)/% : %
36 $(INS.file)
38 .KEEP_STATE:
40 .PARALLEL: $(OBJS)
42 all: $(PROG)
44 $(PROG): $(OBJS)
45 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
46 $(POST_PROCESS)
48 install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG) $(ROOTXPG6PROG)
50 $(ROOTXPG4PROG) $(ROOTXPG6PROG):
51 -$(RM) $@
52 -$(LN) -s ../../bin/$(PROG) $@
54 lint: lint_SRCS
56 clean:
57 $(RM) $(OBJS)
59 include ../Makefile.targ