1f657cd55SCheng Sean Ye# CDDL HEADER START 2f657cd55SCheng Sean Ye# 3f657cd55SCheng Sean Ye# The contents of this file are subject to the terms of the 4f657cd55SCheng Sean Ye# Common Development and Distribution License (the "License"). 5f657cd55SCheng Sean Ye# You may not use this file except in compliance with the License. 6f657cd55SCheng Sean Ye# 7f657cd55SCheng Sean Ye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8f657cd55SCheng Sean Ye# or http://www.opensolaris.org/os/licensing. 9f657cd55SCheng Sean Ye# See the License for the specific language governing permissions 10f657cd55SCheng Sean Ye# and limitations under the License. 11f657cd55SCheng Sean Ye# 12f657cd55SCheng Sean Ye# When distributing Covered Code, include this CDDL HEADER in each 13f657cd55SCheng Sean Ye# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14f657cd55SCheng Sean Ye# If applicable, add the following below this CDDL HEADER, with the 15f657cd55SCheng Sean Ye# fields enclosed by brackets "[]" replaced with your own identifying 16f657cd55SCheng Sean Ye# information: Portions Copyright [yyyy] [name of copyright owner] 17f657cd55SCheng Sean Ye# 18f657cd55SCheng Sean Ye# CDDL HEADER END 19f657cd55SCheng Sean Ye# 20f657cd55SCheng Sean Ye# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 21f657cd55SCheng Sean Ye# Use is subject to license terms. 22f657cd55SCheng Sean Ye# 23f657cd55SCheng Sean Ye 24f657cd55SCheng Sean Ye# 25f899e573SVuong Nguyen# Intel Nehalem memory controller module 26f899e573SVuong Nguyen# 27f899e573SVuong Nguyen 28f899e573SVuong Nguyen# 29f657cd55SCheng Sean Ye# Path to the base of the uts directory tree (usually /usr/src/uts). 30f657cd55SCheng Sean Ye# 31f657cd55SCheng Sean YeUTSBASE = ../.. 32f657cd55SCheng Sean Ye 33f657cd55SCheng Sean Ye# 34f657cd55SCheng Sean Ye# Define the module and object file sets. 35f657cd55SCheng Sean Ye# 36f657cd55SCheng Sean YeMODULE = intel_nhm 37f657cd55SCheng Sean Ye# 38f657cd55SCheng Sean YeROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 39f657cd55SCheng Sean YeCONF_SRCDIR = $(UTSBASE)/intel/io/intel_nhm 40f657cd55SCheng Sean Ye 41f657cd55SCheng Sean Ye# 42f657cd55SCheng Sean Ye# Include common rules. 43f657cd55SCheng Sean Ye# 44f657cd55SCheng Sean Yeinclude $(UTSBASE)/intel/Makefile.intel 45f657cd55SCheng Sean Ye 46f899e573SVuong NguyenOBJECTS = $(INTEL_NHM_OBJS:%=$(OBJS_DIR)/%) 47f899e573SVuong NguyenLINTS = $(INTEL_NHM_OBJS:%.o=$(LINTS_DIR)/%.ln) 48f899e573SVuong Nguyen 49f899e573SVuong Nguyen# 50f657cd55SCheng Sean Ye# Define targets 51f657cd55SCheng Sean Ye# 52f657cd55SCheng Sean YeALL_TARGET = $(BINARY) $(SRC_CONFFILE) 53f657cd55SCheng Sean YeLINT_TARGET = $(LINT_MODULE).lint 54f657cd55SCheng Sean YeINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 55f657cd55SCheng Sean Ye 56f657cd55SCheng Sean YeCPPFLAGS += -I$(UTSBASE)/i86pc 57f657cd55SCheng Sean YeLDFLAGS += -dy -N drv/smbios 58*7014882cSRichard Lowe 59*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 60f657cd55SCheng Sean Ye 61f657cd55SCheng Sean Ye# 62f657cd55SCheng Sean Ye# Default build targets. 63f657cd55SCheng Sean Ye# 64f657cd55SCheng Sean Ye.KEEP_STATE: 65f657cd55SCheng Sean Ye 66f657cd55SCheng Sean Yedef: $(DEF_DEPS) 67f657cd55SCheng Sean Ye 68f657cd55SCheng Sean Yeall: $(ALL_DEPS) 69f657cd55SCheng Sean Ye 70f657cd55SCheng Sean Yeclean: $(CLEAN_DEPS) 71f657cd55SCheng Sean Ye 72f657cd55SCheng Sean Yeclobber: $(CLOBBER_DEPS) 73f657cd55SCheng Sean Ye 74f657cd55SCheng Sean Yelint: $(LINT_DEPS) 75f657cd55SCheng Sean Ye 76f657cd55SCheng Sean Yemodlintlib: $(MODLINTLIB_DEPS) 77f657cd55SCheng Sean Ye 78f657cd55SCheng Sean Yeclean.lint: $(CLEAN_LINT_DEPS) 79f657cd55SCheng Sean Ye 80f657cd55SCheng Sean Yeinstall: $(INSTALL_DEPS) 81f657cd55SCheng Sean Ye 82f657cd55SCheng Sean Ye# 83f657cd55SCheng Sean Ye# Include common targets. 84f657cd55SCheng Sean Ye# 85f657cd55SCheng Sean Yeinclude ../Makefile.targ 86