Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / usr / src / cmd / rcap / rcapadm / Makefile
blobc43d6efc225933fcf5b50f86c91d2d5fcbc9db72
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 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
27 .KEEP_STATE:
28 .SUFFIXES:
30 include ../../Makefile.cmd
32 COMMON_DIR= ../common # for Makefile.com
33 SRCS = rcapadm.c \
34 rcapd_stat.c \
35 utils.c
37 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
38 CPPFLAGS += -I$(COMMON_DIR)
39 LDLIBS += -lumem -lscf -lzonecfg
42 PROG = rcapadm
43 OBJS = $(SRCS:%.c=%.o) rcapd_conf.o
45 POFILES = $(OBJS:%.o=%.po)
46 POFILE = p$(PROG).po
48 CLOBBERFILES += $(POFILES) $(POFILE)
50 .NO_PARALLEL:
51 .PARALLEL: $(OBJS)
53 all: $(PROG)
55 include ../Makefile.com
57 $(PROG): $(OBJS) $(MAPFILE.NGB)
58 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
59 $(POST_PROCESS)
61 $(POFILE): $(POFILES)
62 $(RM) $@
63 $(CAT) $(POFILES) > $@
65 clean:
66 $(RM) $(OBJS)
67 $(RM) rcapd_conf.c
69 $(ROOTUSRSBIN):
70 $(MKDIR) -p $(ROOTUSRSBIN)
72 install: all $(ROOTUSRSBIN) $(ROOTUSRSBINPROG)
74 include ../../Makefile.targ