dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / pgrep / Makefile
blobf81c0e54635cd1beaa36e1da301f3ff493daa7e3
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 PROG = pgrep
27 PKILLFILE = pkill
29 ROOTLINKS = $(ROOTBIN)/$(PKILLFILE)
31 OBJS = pgrep.o idtab.o psexp.o
32 SRCS = $(OBJS:.o=.c)
33 POFILES = $(OBJS:.o=.po)
35 include ../Makefile.cmd
37 CLOBBERFILES += $(PKILLFILE)
38 CERRWARN += -Wno-parentheses
39 LDLIBS += -luutil -lproject -lcontract
41 POFILE = ppgrep.po
42 XGETFLAGS = -a -x pgrep.xcl
44 FILEMODE = 0555
46 .KEEP_STATE:
48 all: $(PROG) $(PKILLFILE)
50 $(PKILLFILE): $(PROG)
51 $(RM) $@
52 $(LN) $(PROG) $@
54 $(PROG): $(OBJS)
55 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
56 $(POST_PROCESS)
58 $(POFILE): $(POFILES)
59 $(RM) $@; cat $(POFILES) > $@
61 install: all $(ROOTLINKS)
63 $(ROOTLINKS): $(ROOTPROG)
64 $(RM) $@
65 $(LN) $(ROOTPROG) $@
67 clean:
68 $(RM) $(OBJS)
71 include ../Makefile.targ