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]
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 include ../../../Makefile.cmd
32 SHARECTL_MOD = sharectl
34 SHARECTL_SRC = $(SHARECTL_MOD:%=$(COMMON)/%.c) shareutil.c
36 SHARECTL_OBJ = $(SHARECTL_MOD:%=%.o) shareutil.o
39 MYCPPFLAGS = -I.. -I../../sharemgr
40 CPPFLAGS += $(MYCPPFLAGS)
41 LDLIBS += -lshare -lumem
43 CERRWARN += -_gcc=-Wno-uninitialized
45 SRCS = $(SHARECTL_SRC)
46 OBJS = $(SHARECTL_OBJ)
47 MODS = $(SHARECTL_MOD)
49 CLOBBERFILES = $(MODS) $(POFILE) $(POFILES) shareutil.c
51 POFILES = $(SHARECTL_SRC:.c=.po)
55 install := TARGET= install
56 clean := TARGET= clean
57 clobber := TARGET= clobber
59 _msg:= TARGET= catalog
68 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
71 install: all $(ROOTUSRSBINPROG)
73 lint: $(SHARECTL_MOD).ln $(SHARECTL_SRC:.c=.ln)
79 $(LINT.c) $(SHARECTL_SRC) $(LDLIBS)
81 include ../../../Makefile.targ
84 $(RM) $@; cat $(POFILES) > $@
89 shareutil.c: ../../sharemgr/shareutil.c
90 $(CP) -f ../../sharemgr/shareutil.c shareutil.c