Makefile revision a1e9eea083a8f257157edb8a1efb5bbd300eb4bf
83N/A# CDDL HEADER START
83N/A#
83N/A# The contents of this file are subject to the terms of the
83N/A# Common Development and Distribution License (the "License").
83N/A# You may not use this file except in compliance with the License.
83N/A#
83N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83N/A# or http://www.opensolaris.org/os/licensing.
83N/A# See the License for the specific language governing permissions
83N/A# and limitations under the License.
83N/A#
83N/A# When distributing Covered Code, include this CDDL HEADER in each
83N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
83N/A# If applicable, add the following below this CDDL HEADER, with the
83N/A# fields enclosed by brackets "[]" replaced with your own identifying
83N/A# information: Portions Copyright [yyyy] [name of copyright owner]
83N/A#
83N/A# CDDL HEADER END
83N/A#
83N/A#
3817N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
83N/A# Use is subject to license terms.
83N/A#
83N/A
83N/A.KEEP_STATE:
83N/A
4610N/APROG = dscfg
618N/ASHFILES = dscfgadm
83N/ACLOBBERFILES = $(SHFILES)
83N/A
844N/Ainclude ../../Makefile.cmd
4610N/Ainclude ../Makefile.com
83N/A
1258N/A
83N/ALPROG = $(PROG:%=%.li)
4610N/A
2899N/ASUBDIRS= etc
3817N/A
3817N/AOBJS= dscfg.o
3817N/A
83N/ACFLAGS += -v -D_SYSCALL32
83N/ALDLIBS += -ldscfg -lunistat
83N/ALINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_SYSCALL32
4610N/ALINTFLAGS += -erroff=E_NOP_ELSE_STMT -erroff=E_FUNC_SET_NOT_USED
4610N/ALINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
4610N/ALINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
4610N/ALINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
4610N/ALINTDIR = $(KBASE)/lintdir
4610N/ALFILE = $(LINTDIR)/dscfg.ln
4610N/AROOTLINK = $(ROOTUSRSBIN)/$(PROG)
3291N/AROOTSHLINK = $(ROOTUSRSBIN)/$(SHFILES)
3291N/A
1591N/Aall := TARGET= all
1591N/Ainstall := TARGET= install
83N/Aclean := TARGET= clean
3477N/Aclobber := TARGET= clobber
3477N/Alint := TARGET= lint
1591N/A
83N/Aall: $(SUBDIRS) $(PROG) $(SHFILES)
1591N/A
83N/Ainstall: $(SUBDIRS) all $(ROOTSHFILES) $(ROOTPROG) $(ROOTLINK) $(ROOTSHLINK)
3291N/A
83N/Alint: $(SUBDIRS) lint_PROG
4337N/A
4337N/Aclean: $(SUBDIRS)
83N/A $(RM) *.o
3817N/A
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTLINK): $(ROOTUSRSBIN) $(ROOTPROG)
-$(RM) $@; $(LN) $(ROOTPROG) $@
$(ROOTSHLINK): $(ROOTUSRSBIN) $(ROOTSHFILES)
-$(RM) $@; $(LN) $(ROOTSHFILES) $@
FRC:
include ../../Makefile.targ