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 603db86aabSstevellint: lintcheck 613db86aabSstevel 623db86aabSstevel# Create target directories 633db86aabSstevel$(USR_PSM_DIR): $(LINKED_DIRS) 64*48bc00d6Sjmcp -$(INS.dir) 653db86aabSstevel 663db86aabSstevel$(USR_PSM_LIB_DIR): $(USR_PSM_DIR) $(LINKED_LIB_DIRS) 67*48bc00d6Sjmcp -$(INS.dir) 683db86aabSstevel 693db86aabSstevel$(USR_PSM_LIB_CFG_DIR): $(USR_PSM_LIB_DIR) $(LINKED_CFG_DIRS) 70*48bc00d6Sjmcp -$(INS.dir) 713db86aabSstevel 723db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64): $(USR_PSM_LIB_CFG_DIR) 73*48bc00d6Sjmcp -$(INS.dir) 743db86aabSstevel 753db86aabSstevel$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR) 763db86aabSstevel -$(INS.file) 773db86aabSstevel 783db86aabSstevel$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64) 793db86aabSstevel -$(INS.file) 803db86aabSstevel 813db86aabSstevel# include library targets 823db86aabSstevelinclude $(SRC)/lib/Makefile.targ 833db86aabSstevel 843db86aabSstevelpics/%.o: ../common/%.c 853db86aabSstevel $(COMPILE.c) -o $@ $< 863db86aabSstevel $(POST_PROCESS_O) 87