xref: /onnv-gate/usr/src/lib/cfgadm_plugins/sysctrl/Makefile.com (revision 10738:6cd5e5169fec)
12305Sstevel#
22305Sstevel# CDDL HEADER START
32305Sstevel#
42305Sstevel# The contents of this file are subject to the terms of the
52522Sraf# Common Development and Distribution License (the "License").
62522Sraf# You may not use this file except in compliance with the License.
72305Sstevel#
82305Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92305Sstevel# or http://www.opensolaris.org/os/licensing.
102305Sstevel# See the License for the specific language governing permissions
112305Sstevel# and limitations under the License.
122305Sstevel#
132305Sstevel# When distributing Covered Code, include this CDDL HEADER in each
142305Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152305Sstevel# If applicable, add the following below this CDDL HEADER, with the
162305Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
172305Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
182305Sstevel#
192305Sstevel# CDDL HEADER END
202305Sstevel#
212305Sstevel#
2210207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232305Sstevel# Use is subject to license terms.
242305Sstevel#
252305Sstevel
262305Sstevelinclude $(SRC)/lib/cfgadm_plugins/Makefile.com
272305Sstevel
282305SstevelPLATFORM=	sun4u
292305SstevelLIBRARY= sysctrl.a
302305SstevelVERS= .1
312305Sstevel
322305SstevelOBJECTS= cfga.o
332305Sstevel
342305Sstevel# include library definitions
352305Sstevelinclude $(SRC)/lib/Makefile.lib
362305Sstevel
372305SstevelUSR_PLAT_DIR		= $(ROOT)/usr/platform
382305SstevelUSR_PSM_DIR		= $(USR_PLAT_DIR)/sun4u
392305SstevelUSR_PSM_LIB_DIR		= $(USR_PSM_DIR)/lib
402305SstevelUSR_PSM_LIB_CFG_DIR	= $(USR_PSM_LIB_DIR)/cfgadm
412305SstevelUSR_PSM_LIB_CFG_DIR_64	= $(USR_PSM_LIB_CFG_DIR)/$(MACH64)
422305Sstevel
432305SstevelROOTLIBDIR=     $(USR_PSM_LIB_CFG_DIR)
442305SstevelROOTLIBDIR64=   $(USR_PSM_LIB_CFG_DIR_64)
452305Sstevel
462522SrafSRCDIR =	../common
472305Sstevel
482305SstevelLIBS = $(DYNLIB)
492305Sstevel
502305SstevelCFLAGS +=	$(CCVERBOSE)
512305SstevelLDLIBS +=	-lc
522305Sstevel
532305SstevelCPPFLAGS +=	-I$(ROOT)/usr/platform/$(PLATFORM)/include
542305Sstevel
552305Sstevel.KEEP_STATE:
562305Sstevel
572305Sstevelall: $(LIBS)
582305Sstevel
592305Sstevellint:   lintcheck
602305Sstevel
612305Sstevel# Create target directories
622305Sstevel$(USR_PSM_DIR):		$(LINKED_DIRS)
63*10738SJames.McPherson@Sun.COM	-$(INS.dir)
642305Sstevel
652305Sstevel$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR)	$(LINKED_LIB_DIRS)
66*10738SJames.McPherson@Sun.COM	-$(INS.dir)
672305Sstevel
682305Sstevel$(USR_PSM_LIB_CFG_DIR):	$(USR_PSM_LIB_DIR)	$(LINKED_CFG_DIRS)
69*10738SJames.McPherson@Sun.COM	-$(INS.dir)
702305Sstevel
712305Sstevel$(USR_PSM_LIB_CFG_DIR_64):	$(USR_PSM_LIB_CFG_DIR)
72*10738SJames.McPherson@Sun.COM	-$(INS.dir)
732305Sstevel
742305Sstevel$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR)
752305Sstevel	-$(INS.file)
762305Sstevel
772305Sstevel$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64)
782305Sstevel	-$(INS.file)
792305Sstevel
802305Sstevel# include library targets
812305Sstevelinclude $(SRC)/lib/Makefile.targ
822305Sstevel
832305Sstevelpics/%.o: ../common/%.c
842305Sstevel	$(COMPILE.c) -o $@ $<
852305Sstevel	$(POST_PROCESS_O)
86