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= ac.a
303db86aabSstevelVERS= .1
313db86aabSstevel
323db86aabSstevelOBJECTS= mema.o mema_prom.o mema_test.o mema_test_config.o mema_test_subr.o \
333db86aabSstevel	 mema_util.o
343db86aabSstevel
353db86aabSstevel# include library definitions
363db86aabSstevelinclude $(SRC)/lib/Makefile.lib
373db86aabSstevel
383db86aabSstevelUSR_PLAT_DIR		= $(ROOT)/usr/platform
393db86aabSstevelUSR_PSM_DIR		= $(USR_PLAT_DIR)/sun4u
403db86aabSstevelUSR_PSM_LIB_DIR		= $(USR_PSM_DIR)/lib
413db86aabSstevelUSR_PSM_LIB_CFG_DIR	= $(USR_PSM_LIB_DIR)/cfgadm
423db86aabSstevelUSR_PSM_LIB_CFG_DIR_64	= $(USR_PSM_LIB_CFG_DIR)/$(MACH64)
433db86aabSstevel
443db86aabSstevelROOTLIBDIR=     $(USR_PSM_LIB_CFG_DIR)
453db86aabSstevelROOTLIBDIR64=   $(USR_PSM_LIB_CFG_DIR_64)
463db86aabSstevel
47f808c858SrafSRCDIR =	../common
483db86aabSstevel
493db86aabSstevelLIBS = $(DYNLIB)
503db86aabSstevel
513db86aabSstevelCFLAGS +=	$(CCVERBOSE)
523db86aabSstevelLDLIBS +=	-lc
533db86aabSstevel
543db86aabSstevelCPPFLAGS +=	-I$(ROOT)/usr/platform/$(PLATFORM)/include
553db86aabSstevel
563db86aabSstevel.KEEP_STATE:
573db86aabSstevel
583db86aabSstevelall: $(LIBS)
593db86aabSstevel
603db86aabSstevel
613db86aabSstevel# Create target directories
623db86aabSstevel$(USR_PSM_DIR):		$(LINKED_DIRS)
63*48bc00d6Sjmcp	-$(INS.dir)
643db86aabSstevel
653db86aabSstevel$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR) $(LINKED_LIB_DIRS)
66*48bc00d6Sjmcp	-$(INS.dir)
673db86aabSstevel
683db86aabSstevel$(USR_PSM_LIB_CFG_DIR):	$(USR_PSM_LIB_DIR) $(LINKED_CFG_DIRS)
69*48bc00d6Sjmcp	-$(INS.dir)
703db86aabSstevel
713db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64):	$(USR_PSM_LIB_CFG_DIR)
72*48bc00d6Sjmcp	-$(INS.dir)
733db86aabSstevel
743db86aabSstevel$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR)
753db86aabSstevel	-$(INS.file)
763db86aabSstevel
773db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64)
783db86aabSstevel	-$(INS.file)
793db86aabSstevel
803db86aabSstevel# include library targets
813db86aabSstevelinclude $(SRC)/lib/Makefile.targ
823db86aabSstevel
833db86aabSstevelpics/%.o: ../common/%.c
843db86aabSstevel	$(COMPILE.c) -o $@ $<
853db86aabSstevel	$(POST_PROCESS_O)
86