Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
56ebb560a135323cb0a9da33426b229278e642f6Mukund Sivaraman# CDDL HEADER START
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman#
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman# The contents of this file are subject to the terms of the
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman# Common Development and Distribution License (the "License").
930719e8767e0a58ca1b57cfbbb2b07b885afd14Mukund Sivaraman# You may not use this file except in compliance with the License.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# or http://www.opensolaris.org/os/licensing.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# See the License for the specific language governing permissions
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# and limitations under the License.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
a625502bdd149be06bd0cc06000c3dc9e4a813b9Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecicki#
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecicki# CDDL HEADER END
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark Andrews#
65d59a4307d00f6b4e278b730c278502e5449da8Mark Andrews#
65d59a4307d00f6b4e278b730c278502e5449da8Mark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark Andrews# Use is subject to license terms.
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark Andrews#
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark Andrews
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews.KEEP_STATE:
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark AndrewsPROG = dscfg
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark AndrewsSHFILES = dscfgadm
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark AndrewsCLOBBERFILES = $(SHFILES)
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark Andrews
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrewsinclude ../../Makefile.cmd
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark Andrewsinclude ../Makefile.com
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark Andrews
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark Andrews
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark AndrewsLPROG = $(PROG:%=%.li)
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark Andrews
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark AndrewsSUBDIRS= etc
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark Andrews
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan HuntOBJS= dscfg.o
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Hunt
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan HuntCFLAGS += $(CCVERBOSE) -D_SYSCALL32
87e7d08a8bae58ab8edacaa990a4234063c23793Mar AndrewsCERRWARN += -_gcc=-Wno-unused-variable
87e7d08a8bae58ab8edacaa990a4234063c23793Mar AndrewsCERRWARN += -_gcc=-Wno-address
87e7d08a8bae58ab8edacaa990a4234063c23793Mar AndrewsLDLIBS += -ldscfg -lunistat
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTFLAGS += -Xa -n -s -x -m -u -Dlint -errhdr=%user -D_SYSCALL32
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTFLAGS += -erroff=E_NOP_ELSE_STMT -erroff=E_FUNC_SET_NOT_USED
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLINTDIR = $(KBASE)/lintdir
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntLFILE = $(LINTDIR)/dscfg.ln
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntROOTLINK = $(ROOTUSRSBIN)/$(PROG)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan HuntROOTSHLINK = $(ROOTUSRSBIN)/$(SHFILES)
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntall := TARGET= all
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntinstall := TARGET= install
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntclean := TARGET= clean
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Huntclobber := TARGET= clobber
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecickilint := TARGET= lint
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecickiall: $(SUBDIRS) $(PROG) $(SHFILES)
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrewsinstall: $(SUBDIRS) all $(ROOTSHFILES) $(ROOTPROG) $(ROOTLINK) $(ROOTSHLINK)
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrewslint: $(SUBDIRS) lint_PROG
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrewsclean: $(SUBDIRS)
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews $(RM) *.o
3836539e8747c65b789037b8ca8cd47badbb991fJeremy C. Reed
5c41d472275c096be8aafb239a301b9d7c0a2cd9Jeremy C. Reed$(SUBDIRS): FRC
5c41d472275c096be8aafb239a301b9d7c0a2cd9Jeremy C. Reed @cd $@; pwd; $(MAKE) $(TARGET)
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews$(ROOTLINK): $(ROOTUSRSBIN) $(ROOTPROG)
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews -$(RM) $@; $(LN) $(ROOTPROG) $@
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews
47115d91ef32317a2c0eb9daaf9c910757568de0Mark Andrews$(ROOTSHLINK): $(ROOTUSRSBIN) $(ROOTSHFILES)
47115d91ef32317a2c0eb9daaf9c910757568de0Mark Andrews -$(RM) $@; $(LN) $(ROOTSHFILES) $@
4dd41c7d5976ff6889e4fbf306036f4256af409aMark Andrews
f6e45a5c54b7af4b1c303e8d3ff3b7d78622df9eMark AndrewsFRC:
f6e45a5c54b7af4b1c303e8d3ff3b7d78622df9eMark Andrews
705d56b47a932cc277f980755e80ac4f46a18a64Mark Andrewsinclude ../../Makefile.targ
705d56b47a932cc277f980755e80ac4f46a18a64Mark Andrews