15cff7825Smh# CDDL HEADER START 25cff7825Smh# 35cff7825Smh# The contents of this file are subject to the terms of the 45cff7825Smh# Common Development and Distribution License (the "License"). 55cff7825Smh# You may not use this file except in compliance with the License. 65cff7825Smh# 75cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 85cff7825Smh# or http://www.opensolaris.org/os/licensing. 95cff7825Smh# See the License for the specific language governing permissions 105cff7825Smh# and limitations under the License. 115cff7825Smh# 125cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each 135cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 145cff7825Smh# If applicable, add the following below this CDDL HEADER, with the 155cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying 165cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner] 175cff7825Smh# 185cff7825Smh# CDDL HEADER END 195cff7825Smh# 20e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 215cff7825Smh# Use is subject to license terms. 225cff7825Smh# 23a0900badSGarrett D'Amore# Copyright 2013 Nexenta Systems, Inc. All rights reserved. 247b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc. 25a0900badSGarrett D'Amore# 265cff7825Smh 275cff7825Smh# 285cff7825Smh# Path to the base of the uts directory tree (usually /usr/src/uts). 295cff7825Smh# 30843e1988SjohnlevUTSBASE = ../.. 31843e1988Sjohnlev 32843e1988Sjohnlev# 33843e1988Sjohnlev# Define the module and object file sets. 34843e1988Sjohnlev# 35e4b86885SCheng Sean YeMODULE = cpu_ms.AuthenticAMD.15 36843e1988Sjohnlev# 37e4b86885SCheng Sean YeOBJECTS = $(CPU_AO_OBJS:%=$(OBJS_DIR)/%) 38e4b86885SCheng Sean YeROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE) 39e4b86885SCheng Sean Ye 40e4b86885SCheng Sean YeSRCDIR = ../../i86pc/cpu/amd_opteron 41e4b86885SCheng Sean Ye 42e4b86885SCheng Sean YeAO_MCA_DISP_C = $(OBJS_DIR)/ao_mca_disp.c 43e4b86885SCheng Sean YeAO_MCA_DISP_SRC = $(SRCDIR)/ao_mca_disp.in 44a0900badSGarrett D'AmoreAO_GENDISP = ../cpu/scripts/ao_gendisp 455cff7825Smh 465cff7825Smh# 47843e1988Sjohnlev# Include common rules. 485cff7825Smh# 49e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86xpv/Makefile.i86xpv 50e4b86885SCheng Sean Yeinclude $(UTSBASE)/i86pc/cpu/Makefile.files 51e4b86885SCheng Sean Ye 525cff7825Smh# 53843e1988Sjohnlev# Define targets 545cff7825Smh# 55e4b86885SCheng Sean YeALL_TARGET = $(BINARY) 56e4b86885SCheng Sean YeINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5720c794b3Sgavinm 58e4b86885SCheng Sean Ye# 59e4b86885SCheng Sean Ye# Overrides and additions 60e4b86885SCheng Sean Ye# 617b1019a6SJerry Jelinek$(OBJS_DIR)/ao_mca.o := CERRWARN += -_gcc=-Wno-unused-function 62e4b86885SCheng Sean YeCLEANFILES += $(AO_MCA_DISP_C) 63e4b86885SCheng Sean YeCPPFLAGS += -I$(SRCDIR) -I$(OBJS_DIR) 64e4b86885SCheng Sean YeASFLAGS += -I$(SRCDIR) -I$(OBJS_DIR) 65*82d0151aSRichard LoweLDFLAGS += -N misc/acpica 665cff7825Smh 675cff7825Smh# 68843e1988Sjohnlev# Default build targets. 695cff7825Smh# 705cff7825Smh.KEEP_STATE: 715cff7825Smh 72843e1988Sjohnlevdef: $(DEF_DEPS) 735cff7825Smh 74843e1988Sjohnlevall: $(ALL_DEPS) 755cff7825Smh 76843e1988Sjohnlevclean: $(CLEAN_DEPS) 775cff7825Smh 78843e1988Sjohnlevclobber: $(CLOBBER_DEPS) 795cff7825Smh 80843e1988Sjohnlevinstall: $(INSTALL_DEPS) 815cff7825Smh 82e4b86885SCheng Sean Ye# 83e4b86885SCheng Sean Ye# Create ao_mca_disp.c 84e4b86885SCheng Sean Ye# 85e4b86885SCheng Sean Ye$(AO_MCA_DISP_C): $(AO_MCA_DISP_SRC) $(AO_GENDISP) 86e4b86885SCheng Sean Ye $(AO_GENDISP) $(AO_MCA_DISP_SRC) >$@ 87e4b86885SCheng Sean Ye 88e4b86885SCheng Sean Ye$(OBJS_DIR)/%.o: $(OBJS_DIR)/%.c 89e4b86885SCheng Sean Ye $(COMPILE.c) -o $@ $< 90e4b86885SCheng Sean Ye $(CTFCONVERT_O) 91e4b86885SCheng Sean Ye 925cff7825Smh# 93843e1988Sjohnlev# Include common targets. 945cff7825Smh# 95843e1988Sjohnlevinclude ../Makefile.targ 96