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= ac.a 302305SstevelVERS= .1 312305Sstevel 322305SstevelOBJECTS= mema.o mema_prom.o mema_test.o mema_test_config.o mema_test_subr.o \ 332305Sstevel mema_util.o 342305Sstevel 352305Sstevel# include library definitions 362305Sstevelinclude $(SRC)/lib/Makefile.lib 372305Sstevel 382305SstevelUSR_PLAT_DIR = $(ROOT)/usr/platform 392305SstevelUSR_PSM_DIR = $(USR_PLAT_DIR)/sun4u 402305SstevelUSR_PSM_LIB_DIR = $(USR_PSM_DIR)/lib 412305SstevelUSR_PSM_LIB_CFG_DIR = $(USR_PSM_LIB_DIR)/cfgadm 422305SstevelUSR_PSM_LIB_CFG_DIR_64 = $(USR_PSM_LIB_CFG_DIR)/$(MACH64) 432305Sstevel 442305SstevelROOTLIBDIR= $(USR_PSM_LIB_CFG_DIR) 452305SstevelROOTLIBDIR64= $(USR_PSM_LIB_CFG_DIR_64) 462305Sstevel 472522SrafSRCDIR = ../common 482305Sstevel 492305SstevelLIBS = $(DYNLIB) 502305Sstevel 512305SstevelCFLAGS += $(CCVERBOSE) 522305SstevelLDLIBS += -lc 532305Sstevel 542305SstevelCPPFLAGS += -I$(ROOT)/usr/platform/$(PLATFORM)/include 552305Sstevel 562305Sstevel.KEEP_STATE: 572305Sstevel 582305Sstevelall: $(LIBS) 592305Sstevel 602305Sstevellint: lintcheck 612305Sstevel 622305Sstevel# Create target directories 632305Sstevel$(USR_PSM_DIR): $(LINKED_DIRS) 64*10738SJames.McPherson@Sun.COM -$(INS.dir) 652305Sstevel 662305Sstevel$(USR_PSM_LIB_DIR): $(USR_PSM_DIR) $(LINKED_LIB_DIRS) 67*10738SJames.McPherson@Sun.COM -$(INS.dir) 682305Sstevel 692305Sstevel$(USR_PSM_LIB_CFG_DIR): $(USR_PSM_LIB_DIR) $(LINKED_CFG_DIRS) 70*10738SJames.McPherson@Sun.COM -$(INS.dir) 712305Sstevel 722305Sstevel$(USR_PSM_LIB_CFG_DIR_64): $(USR_PSM_LIB_CFG_DIR) 73*10738SJames.McPherson@Sun.COM -$(INS.dir) 742305Sstevel 752305Sstevel$(USR_PSM_LIB_CFG_DIR)/%: % $(USR_PSM_LIB_CFG_DIR) 762305Sstevel -$(INS.file) 772305Sstevel 782305Sstevel$(USR_PSM_LIB_CFG_DIR_64)/%: % $(USR_PSM_LIB_CFG_DIR_64) 792305Sstevel -$(INS.file) 802305Sstevel 812305Sstevel# include library targets 822305Sstevelinclude $(SRC)/lib/Makefile.targ 832305Sstevel 842305Sstevelpics/%.o: ../common/%.c 852305Sstevel $(COMPILE.c) -o $@ $< 862305Sstevel $(POST_PROCESS_O) 87