1e4b86885SCheng Sean Ye# CDDL HEADER START 2e4b86885SCheng Sean Ye# 3e4b86885SCheng Sean Ye# The contents of this file are subject to the terms of the 4e4b86885SCheng Sean Ye# Common Development and Distribution License (the "License"). 5e4b86885SCheng Sean Ye# You may not use this file except in compliance with the License. 6e4b86885SCheng Sean Ye# 7e4b86885SCheng Sean Ye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8e4b86885SCheng Sean Ye# or http://www.opensolaris.org/os/licensing. 9e4b86885SCheng Sean Ye# See the License for the specific language governing permissions 10e4b86885SCheng Sean Ye# and limitations under the License. 11e4b86885SCheng Sean Ye# 12e4b86885SCheng Sean Ye# When distributing Covered Code, include this CDDL HEADER in each 13e4b86885SCheng Sean Ye# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14e4b86885SCheng Sean Ye# If applicable, add the following below this CDDL HEADER, with the 15e4b86885SCheng Sean Ye# fields enclosed by brackets "[]" replaced with your own identifying 16e4b86885SCheng Sean Ye# information: Portions Copyright [yyyy] [name of copyright owner] 17e4b86885SCheng Sean Ye# 18e4b86885SCheng Sean Ye# CDDL HEADER END 19e4b86885SCheng Sean Ye# 20f899e573SVuong Nguyen# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 21e4b86885SCheng Sean Ye# Use is subject to license terms. 2289b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved. 23e4b86885SCheng Sean Ye# 24e4b86885SCheng Sean Ye 25e4b86885SCheng Sean Ye# 26f899e573SVuong Nguyen# Intel 5000/5100/5400/7300 chipset memory controller hub (MCH) module 27f899e573SVuong Nguyen# 28f899e573SVuong Nguyen 29f899e573SVuong Nguyen# 30e4b86885SCheng Sean Ye# Path to the base of the uts directory tree (usually /usr/src/uts). 31e4b86885SCheng Sean Ye# 32e4b86885SCheng Sean YeUTSBASE = ../.. 33f899e573SVuong NguyenUTSCLOSED = ../../../../closed/uts 34e4b86885SCheng Sean Ye 35e4b86885SCheng Sean Ye# 36e4b86885SCheng Sean Ye# Define the module and object file sets. 37e4b86885SCheng Sean Ye# 38e4b86885SCheng Sean YeMODULE = intel_nb5000 39e4b86885SCheng Sean Ye# 40e4b86885SCheng Sean YeROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 41e4b86885SCheng Sean YeSRCDIR = $(UTSBASE)/intel/io/intel_nb5000 42e4b86885SCheng Sean YeCONF_SRCDIR = $(UTSBASE)/intel/io/intel_nb5000 43e4b86885SCheng Sean Ye 44e4b86885SCheng Sean Ye# 45e4b86885SCheng Sean Ye# Include common rules. 46e4b86885SCheng Sean Ye# 47e4b86885SCheng Sean Yeinclude ../Makefile.intel 48e4b86885SCheng Sean Ye 49e4b86885SCheng Sean Ye# 50f899e573SVuong Nguyen# The list of object files is defined here, rather than in Makefile.files, 51f899e573SVuong Nguyen# because the "$(CLOSED_BUILD)" macro has not been defined at the time 52f899e573SVuong Nguyen# Makefile.files is processed. 53f899e573SVuong Nguyen# 54f899e573SVuong NguyenINTEL_NB5000_OBJS += \ 55f899e573SVuong Nguyen intel_nb5000.o \ 56f899e573SVuong Nguyen intel_nbdrv.o \ 57f899e573SVuong Nguyen dimm_addr.o \ 58f899e573SVuong Nguyen nb_pci_cfg.o \ 59f899e573SVuong Nguyen nb5000_init.o 60f899e573SVuong Nguyen 61f899e573SVuong Nguyen$(CLOSED_BUILD)INTEL_NB5000_OBJS += memtrans.o 62f899e573SVuong Nguyen 63f899e573SVuong NguyenOBJECTS = $(INTEL_NB5000_OBJS:%=$(OBJS_DIR)/%) 64f899e573SVuong NguyenLINTS = $(INTEL_NB5000_OBJS:%.o=$(LINTS_DIR)/%.ln) 65f899e573SVuong Nguyen 66f899e573SVuong Nguyen# 67e4b86885SCheng Sean Ye# Define targets 68e4b86885SCheng Sean Ye# 69e4b86885SCheng Sean YeALL_TARGET = $(BINARY) 70e4b86885SCheng Sean YeLINT_TARGET = $(LINT_MODULE).lint 71e4b86885SCheng Sean YeINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 72e4b86885SCheng Sean Ye 73e4b86885SCheng Sean Ye# 7489b43686SBayard Bell# Depends on smbios 7589b43686SBayard Bell# 7689b43686SBayard BellLDFLAGS += -dy -N drv/smbios 7789b43686SBayard Bell 78*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 79*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 80*7014882cSRichard Lowe 8189b43686SBayard Bell# 82e4b86885SCheng Sean Ye# Default build targets. 83e4b86885SCheng Sean Ye# 84e4b86885SCheng Sean Ye.KEEP_STATE: 85e4b86885SCheng Sean Ye 86e4b86885SCheng Sean Yedef: $(DEF_DEPS) 87e4b86885SCheng Sean Ye 88e4b86885SCheng Sean Yeall: $(ALL_DEPS) 89e4b86885SCheng Sean Ye 90e4b86885SCheng Sean Yeclean: $(CLEAN_DEPS) 91e4b86885SCheng Sean Ye 92e4b86885SCheng Sean Yeclobber: $(CLOBBER_DEPS) 93e4b86885SCheng Sean Ye 94e4b86885SCheng Sean Yelint: $(LINT_DEPS) 95e4b86885SCheng Sean Ye 96e4b86885SCheng Sean Yemodlintlib: $(MODLINTLIB_DEPS) 97e4b86885SCheng Sean Ye 98e4b86885SCheng Sean Yeclean.lint: $(CLEAN_LINT_DEPS) 99e4b86885SCheng Sean Ye 100e4b86885SCheng Sean Yeinstall: $(INSTALL_DEPS) 101e4b86885SCheng Sean Ye 102e4b86885SCheng Sean Ye$(OBJECTS): $(OBJS_DIR) $(MCAMD_OFF_H) 103e4b86885SCheng Sean Ye 104e4b86885SCheng Sean Ye# 105e4b86885SCheng Sean Ye# Include common targets. 106e4b86885SCheng Sean Ye# 107e4b86885SCheng Sean Yeinclude ../Makefile.targ 108f899e573SVuong Nguyen$(CLOSED_BUILD)include $(UTSCLOSED)/intel/Makefile.rules 109