396N/A# CDDL HEADER START
396N/A#
396N/A# The contents of this file are subject to the terms of the
396N/A# Common Development and Distribution License (the "License").
396N/A# You may not use this file except in compliance with the License.
396N/A#
396N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
396N/A# or http://www.opensolaris.org/os/licensing.
396N/A# See the License for the specific language governing permissions
396N/A# and limitations under the License.
396N/A#
396N/A# When distributing Covered Code, include this CDDL HEADER in each
396N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
396N/A# If applicable, add the following below this CDDL HEADER, with the
396N/A# fields enclosed by brackets "[]" replaced with your own identifying
396N/A# information: Portions Copyright [yyyy] [name of copyright owner]
396N/A#
396N/A# CDDL HEADER END
396N/A#
396N/A#
396N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
396N/A# Use is subject to license terms.
396N/A#
396N/A
396N/ADYNPROG= svadm svboot
396N/A
396N/Ainclude ../../Makefile.cmd
396N/Ainclude ../Makefile.com
396N/A
396N/APROG = $(DYNPROG)
396N/ALPROG = $(PROG:%=%.li)
396N/A
396N/ASUBDIRS= etc
396N/A
396N/Asvadm := POBJS = svadm.o
408N/Asvboot := POBJS = svboot.o
396N/A
396N/AOBJS= svadm.o svboot.o
396N/ASRCS= $(OBJS:%.o=%.c)
408N/APOFILE = sv_all.po
405N/APOFILES = $(OBJS:%.o=%.po)
405N/A
396N/Asvadm := LDLIBS += -lunistat -ldscfg
396N/Asvboot := LDLIBS += -lunistat -ldscfg
396N/A
396N/ACFLAGS += -v
396N/ALINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
396N/ALINTFLAGS += -erroff=E_SEC_SCANF_UNBOUNDED_COPY
396N/ALINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
396N/AROOTLINK1 = $(ROOTUSRSBIN)/svadm
396N/AROOTLINK2 = $(ROOTUSRSBIN)/svboot
408N/A
396N/Aall := TARGET= all
396N/Ainstall := TARGET= install
396N/Aclean := TARGET= clean
396N/Aclobber := TARGET= clobber
396N/Alint := TARGET= lint
408N/A
408N/A.KEEP_STATE:
408N/A
408N/A.PARALLEL: $(OBJS)
396N/A
396N/Aall: $(SUBDIRS) $(PROG) $(POFILES)
396N/A
396N/Ainstall: $(SUBDIRS) all $(ROOTPROG) $(ROOTLINK1) $(ROOTLINK2)
396N/A
396N/Alint: $(SUBDIRS) $(LPROG)
430N/A
396N/Aclean: $(SUBDIRS)
396N/A $(RM) *.o $(POFILE)
396N/A
396N/A$(PROG): $$(POBJS)
408N/A $(LINK.c) $(POBJS) -o $@ $(LDLIBS)
408N/A $(POST_PROCESS)
408N/A
408N/A$(POFILE): $(POFILES)
408N/A $(RM) $@
408N/A $(CAT) $(POFILES) > $@
408N/A
408N/A$(SUBDIRS): FRC
408N/A @cd $@; pwd; $(MAKE) $(TARGET)
408N/A
408N/A$(LPROG):
408N/A $(LINT.c) $(@:%.li=%.c) $(LDLIBS)
408N/A
408N/A$(ROOTLINK1): $(ROOTUSRSBIN) $(ROOTPROG)
408N/A -$(RM) $@; $(LN) $(ROOTBIN)/svadm $@
408N/A
408N/A$(ROOTLINK2): $(ROOTUSRSBIN) $(ROOTPROG)
408N/A -$(RM) $@; $(LN) $(ROOTBIN)/svboot $@
408N/A
408N/AFRC:
408N/A
408N/Ainclude ../../Makefile.targ
408N/A