Makefile.com revision 4bff34e37def8a90f9194d81bc345c52ba20086a
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER START
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# The contents of this file are subject to the terms of the
6185db853e024a486ff8837e6784dd290d866112dougm# Common Development and Distribution License (the "License").
6185db853e024a486ff8837e6784dd290d866112dougm# You may not use this file except in compliance with the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6185db853e024a486ff8837e6784dd290d866112dougm# or http://www.opensolaris.org/os/licensing.
6185db853e024a486ff8837e6784dd290d866112dougm# See the License for the specific language governing permissions
6185db853e024a486ff8837e6784dd290d866112dougm# and limitations under the License.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# When distributing Covered Code, include this CDDL HEADER in each
6185db853e024a486ff8837e6784dd290d866112dougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6185db853e024a486ff8837e6784dd290d866112dougm# If applicable, add the following below this CDDL HEADER, with the
6185db853e024a486ff8837e6784dd290d866112dougm# fields enclosed by brackets "[]" replaced with your own identifying
6185db853e024a486ff8837e6784dd290d866112dougm# information: Portions Copyright [yyyy] [name of copyright owner]
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# CDDL HEADER END
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm# ident "%Z%%M% %I% %E% SMI"
6185db853e024a486ff8837e6784dd290d866112dougm#
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6185db853e024a486ff8837e6784dd290d866112dougm# Use is subject to license terms.
6185db853e024a486ff8837e6784dd290d866112dougm#
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougminclude ../../../Makefile.cmd
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmCOMMON = ..
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmPROG= sharectl
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmSHARECTL_MOD = sharectl
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmSHARECTL_SRC = $(SHARECTL_MOD:%=$(COMMON)/%.c) shareutil.c
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmSHARECTL_OBJ = $(SHARECTL_MOD:%=%.o) shareutil.o
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmMYCPPFLAGS = -I.. -I../../sharemgr
6185db853e024a486ff8837e6784dd290d866112dougmCPPFLAGS += $(MYCPPFLAGS)
6185db853e024a486ff8837e6784dd290d866112dougmLDLIBS += -lshare -lumem
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmSRCS = $(SHARECTL_SRC)
6185db853e024a486ff8837e6784dd290d866112dougmOBJS = $(SHARECTL_OBJ)
6185db853e024a486ff8837e6784dd290d866112dougmMODS = $(SHARECTL_MOD)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmCLOBBERFILES = $(MODS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmPOFILES = $(SHARECTL_SRC:.c=.po)
6185db853e024a486ff8837e6784dd290d866112dougmPOFILE = sharectl.po
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmall := TARGET= all
6185db853e024a486ff8837e6784dd290d866112dougminstall := TARGET= install
6185db853e024a486ff8837e6784dd290d866112dougmclean := TARGET= clean
6185db853e024a486ff8837e6784dd290d866112dougmclobber := TARGET= clobber
6185db853e024a486ff8837e6784dd290d866112dougmlint := TARGET= lint
6185db853e024a486ff8837e6784dd290d866112dougm_msg:= TARGET= catalog
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm.KEEP_STATE:
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmall: $(MODS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmcatalog: $(POFILE)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm$(PROG): $(OBJS)
6185db853e024a486ff8837e6784dd290d866112dougm $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
6185db853e024a486ff8837e6784dd290d866112dougm $(POST_PROCESS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougminstall: all $(ROOTUSRSBINPROG)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmlint: $(SHARECTL_MOD).ln $(SHARECTL_SRC:.c=.ln)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmclean:
6185db853e024a486ff8837e6784dd290d866112dougm $(RM) $(OBJS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm%.ln: FRC
6185db853e024a486ff8837e6784dd290d866112dougm $(LINT.c) $(SHARECTL_SRC) $(LDLIBS)
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougminclude ../../../Makefile.targ
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm$(POFILE): $(POFILES)
6185db853e024a486ff8837e6784dd290d866112dougm $(RM) $@; cat $(POFILES) > $@
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougm%.o: $(COMMON)/%.c
6185db853e024a486ff8837e6784dd290d866112dougm $(COMPILE.c) -o $@ $<
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmshareutil.c: ../../sharemgr/shareutil.c
6185db853e024a486ff8837e6784dd290d866112dougm $(CP) -f ../../sharemgr/shareutil.c shareutil.c
6185db853e024a486ff8837e6784dd290d866112dougm
6185db853e024a486ff8837e6784dd290d866112dougmFRC: