xref: /illumos-gate/usr/src/uts/intel/mc-amd/Makefile (revision 0aaef2f5)
17aec1d6eScindi# CDDL HEADER START
27aec1d6eScindi#
37aec1d6eScindi# The contents of this file are subject to the terms of the
488543b5cSkrishna# Common Development and Distribution License (the "License").
588543b5cSkrishna# You may not use this file except in compliance with the License.
67aec1d6eScindi#
77aec1d6eScindi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
87aec1d6eScindi# or http://www.opensolaris.org/os/licensing.
97aec1d6eScindi# See the License for the specific language governing permissions
107aec1d6eScindi# and limitations under the License.
117aec1d6eScindi#
127aec1d6eScindi# When distributing Covered Code, include this CDDL HEADER in each
137aec1d6eScindi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147aec1d6eScindi# If applicable, add the following below this CDDL HEADER, with the
157aec1d6eScindi# fields enclosed by brackets "[]" replaced with your own identifying
167aec1d6eScindi# information: Portions Copyright [yyyy] [name of copyright owner]
177aec1d6eScindi#
187aec1d6eScindi# CDDL HEADER END
197aec1d6eScindi#
20e4b86885SCheng Sean Ye# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
217aec1d6eScindi# Use is subject to license terms.
227aec1d6eScindi#
237aec1d6eScindi
247aec1d6eScindi#
257aec1d6eScindi#	Path to the base of the uts directory tree (usually /usr/src/uts).
267aec1d6eScindi#
277aec1d6eScindiUTSBASE = ../..
287aec1d6eScindi
297aec1d6eScindi#
307aec1d6eScindi#       Define the module and object file sets.
317aec1d6eScindi#
327aec1d6eScindiMODULE		= mc-amd
337aec1d6eScindi#
347aec1d6eScindiOBJECTS		= $(MCAMD_OBJS:%=$(OBJS_DIR)/%)
35e4b86885SCheng Sean YeROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
36e4b86885SCheng Sean YeSRCDIR		= $(UTSBASE)/intel/io/mc-amd
37e4b86885SCheng Sean YeCONF_SRCDIR	= $(SRCDIR)
387aec1d6eScindi
397aec1d6eScindiMCAMD_OFF_H	= $(OBJS_DIR)/mcamd_off.h
407aec1d6eScindiMCAMD_OFF_SRC	= $(SRCDIR)/mcamd_off.in
417aec1d6eScindi
427aec1d6eScindi#
43e4b86885SCheng Sean Ye#	Include common rules.
447aec1d6eScindi#
45e4b86885SCheng Sean Yeinclude ../Makefile.intel
46e4b86885SCheng Sean Ye
477aec1d6eScindi
487aec1d6eScindi#
497aec1d6eScindi#       Define targets
507aec1d6eScindi#
51e4b86885SCheng Sean YeALL_TARGET      = $(BINARY)
527aec1d6eScindiINSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
537aec1d6eScindi
547aec1d6eScindi#
557aec1d6eScindi#	Overrides and additions
567aec1d6eScindi#
577aec1d6eScindiCPPFLAGS	+= -I$(SRCDIR) -I$(OBJS_DIR) -I$(SRC)/common/mc/mc-amd
588a40a695SgavinmCPPFLAGS	+= -I$(SRC)/common/util
597aec1d6eScindiCLEANFILES	+= $(MCAMD_OFF_H)
607aec1d6eScindiCLOBBERFILES	+= $(MCAMD_OFF_H)
617aec1d6eScindi
627014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
63*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
647014882cSRichard Lowe
657aec1d6eScindi#
667aec1d6eScindi#       Default build targets.
677aec1d6eScindi#
687aec1d6eScindi.KEEP_STATE:
697aec1d6eScindi
707aec1d6eScindidef:            $(DEF_DEPS)
717aec1d6eScindi
727aec1d6eScindiall:            $(ALL_DEPS)
737aec1d6eScindi
747aec1d6eScindiclean:          $(CLEAN_DEPS)
757aec1d6eScindi
767aec1d6eScindiclobber:        $(CLOBBER_DEPS)
777aec1d6eScindi
787aec1d6eScindiinstall:        $(INSTALL_DEPS)
797aec1d6eScindi
80e4b86885SCheng Sean Ye$(OBJECTS): $(OBJS_DIR) $(MCAMD_OFF_H)
81e4b86885SCheng Sean Ye
82e4b86885SCheng Sean Ye#
83e4b86885SCheng Sean Ye# Create mcamd_off.h
84e4b86885SCheng Sean Ye#
85e4b86885SCheng Sean Ye$(MCAMD_OFF_H): $(MCAMD_OFF_SRC)
86e4b86885SCheng Sean Ye	$(OFFSETS_CREATE) <$(MCAMD_OFF_SRC) >$@
87e4b86885SCheng Sean Ye
887aec1d6eScindi#
897aec1d6eScindi#       Include common targets.
907aec1d6eScindi#
917aec1d6eScindiinclude ../Makefile.targ
92