xref: /titanic_41/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
13db86aabSstevel#
23db86aabSstevel# CDDL HEADER START
33db86aabSstevel#
43db86aabSstevel# The contents of this file are subject to the terms of the
5f808c858Sraf# Common Development and Distribution License (the "License").
6f808c858Sraf# You may not use this file except in compliance with the License.
73db86aabSstevel#
83db86aabSstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93db86aabSstevel# or http://www.opensolaris.org/os/licensing.
103db86aabSstevel# See the License for the specific language governing permissions
113db86aabSstevel# and limitations under the License.
123db86aabSstevel#
133db86aabSstevel# When distributing Covered Code, include this CDDL HEADER in each
143db86aabSstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153db86aabSstevel# If applicable, add the following below this CDDL HEADER, with the
163db86aabSstevel# fields enclosed by brackets "[]" replaced with your own identifying
173db86aabSstevel# information: Portions Copyright [yyyy] [name of copyright owner]
183db86aabSstevel#
193db86aabSstevel# CDDL HEADER END
203db86aabSstevel#
213db86aabSstevel#
2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
233db86aabSstevel# Use is subject to license terms.
243db86aabSstevel#
253db86aabSstevel
263db86aabSstevelinclude $(SRC)/lib/cfgadm_plugins/Makefile.com
273db86aabSstevel
283db86aabSstevelPLATFORM=	sun4u
293db86aabSstevelLIBRARY= sysctrl.a
303db86aabSstevelVERS= .1
313db86aabSstevel
323db86aabSstevelOBJECTS= cfga.o
333db86aabSstevel
343db86aabSstevel# include library definitions
353db86aabSstevelinclude $(SRC)/lib/Makefile.lib
363db86aabSstevel
373db86aabSstevelUSR_PLAT_DIR		= $(ROOT)/usr/platform
383db86aabSstevelUSR_PSM_DIR		= $(USR_PLAT_DIR)/sun4u
393db86aabSstevelUSR_PSM_LIB_DIR		= $(USR_PSM_DIR)/lib
403db86aabSstevelUSR_PSM_LIB_CFG_DIR	= $(USR_PSM_LIB_DIR)/cfgadm
413db86aabSstevelUSR_PSM_LIB_CFG_DIR_64	= $(USR_PSM_LIB_CFG_DIR)/$(MACH64)
423db86aabSstevel
433db86aabSstevelROOTLIBDIR=     $(USR_PSM_LIB_CFG_DIR)
443db86aabSstevelROOTLIBDIR64=   $(USR_PSM_LIB_CFG_DIR_64)
453db86aabSstevel
46f808c858SrafSRCDIR =	../common
473db86aabSstevel
483db86aabSstevelLIBS = $(DYNLIB)
493db86aabSstevel
503db86aabSstevelCFLAGS +=	$(CCVERBOSE)
513db86aabSstevelLDLIBS +=	-lc
523db86aabSstevel
533db86aabSstevelCPPFLAGS +=	-I$(ROOT)/usr/platform/$(PLATFORM)/include
543db86aabSstevel
55*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
56*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
57*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
58*7014882cSRichard Lowe
593db86aabSstevel.KEEP_STATE:
603db86aabSstevel
613db86aabSstevelall: $(LIBS)
623db86aabSstevel
633db86aabSstevellint:   lintcheck
643db86aabSstevel
653db86aabSstevel# Create target directories
663db86aabSstevel$(USR_PSM_DIR):		$(LINKED_DIRS)
6748bc00d6Sjmcp	-$(INS.dir)
683db86aabSstevel
693db86aabSstevel$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR)	$(LINKED_LIB_DIRS)
7048bc00d6Sjmcp	-$(INS.dir)
713db86aabSstevel
723db86aabSstevel$(USR_PSM_LIB_CFG_DIR):	$(USR_PSM_LIB_DIR)	$(LINKED_CFG_DIRS)
7348bc00d6Sjmcp	-$(INS.dir)
743db86aabSstevel
753db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64):	$(USR_PSM_LIB_CFG_DIR)
7648bc00d6Sjmcp	-$(INS.dir)
773db86aabSstevel
783db86aabSstevel$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR)
793db86aabSstevel	-$(INS.file)
803db86aabSstevel
813db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64)
823db86aabSstevel	-$(INS.file)
833db86aabSstevel
843db86aabSstevel# include library targets
853db86aabSstevelinclude $(SRC)/lib/Makefile.targ
863db86aabSstevel
873db86aabSstevelpics/%.o: ../common/%.c
883db86aabSstevel	$(COMPILE.c) -o $@ $<
893db86aabSstevel	$(POST_PROCESS_O)
90