xref: /illumos-gate/usr/src/uts/i86pc/amd_opteron/Makefile (revision bc946ef3d51a883d2aa15b39f2d8b03a119e26ca)
17aec1d6eScindi# CDDL HEADER START
27aec1d6eScindi#
37aec1d6eScindi# The contents of this file are subject to the terms of the
4*bc946ef3Ssethg# Common Development and Distribution License (the "License").
5*bc946ef3Ssethg# 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#
207aec1d6eScindi# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
217aec1d6eScindi# Use is subject to license terms.
227aec1d6eScindi#
237aec1d6eScindi# ident	"%Z%%M%	%I%	%E% SMI"
247aec1d6eScindi#
257aec1d6eScindi
267aec1d6eScindi#
277aec1d6eScindi#	Path to the base of the uts directory tree (usually /usr/src/uts).
287aec1d6eScindi#
297aec1d6eScindiUTSBASE = ../..
307aec1d6eScindi
317aec1d6eScindi#
327aec1d6eScindi#       Define the module and object file sets.
337aec1d6eScindi#
347aec1d6eScindiMODULE		= cpu.AuthenticAMD.15
357aec1d6eScindi#
367aec1d6eScindiOBJECTS		= $(CPU_AO_OBJS:%=$(OBJS_DIR)/%)
377aec1d6eScindiLINTS           = $(CPU_AO_OBJS:%.o=$(LINTS_DIR)/%.ln)
387aec1d6eScindiROOTMODULE      = $(ROOT_PSM_CPU_DIR)/$(MODULE)
397aec1d6eScindi
407aec1d6eScindiSRCDIR		= ../cpu/amd_opteron
417aec1d6eScindi
427aec1d6eScindiAO_MCA_DISP_C	= $(OBJS_DIR)/ao_mca_disp.c
437aec1d6eScindiAO_MCA_DISP_SRC = $(SRCDIR)/ao_mca_disp.in
447aec1d6eScindiAO_GENDISP	= ../cpu/scripts/ao_gendisp
457aec1d6eScindi
467aec1d6eScindi#
477aec1d6eScindi#       Include common rules.
487aec1d6eScindi#
497aec1d6eScindiinclude ../cpu/Makefile.cpu
507aec1d6eScindi
517aec1d6eScindi#
527aec1d6eScindi#	Our lint library has a different name from that of the module we build.
537aec1d6eScindi#
547aec1d6eScindiLINT_MODULE	= amd_opteron
557aec1d6eScindi
567aec1d6eScindi#
577aec1d6eScindi#       Define targets
587aec1d6eScindi#
597aec1d6eScindiALL_TARGET      = $(BINARY)
607aec1d6eScindiLINT_TARGET     = $(LINT_MODULE).lint
617aec1d6eScindiINSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
627aec1d6eScindi
637aec1d6eScindi#
647aec1d6eScindi#	Overrides and additions
657aec1d6eScindi#
667aec1d6eScindiCLEANFILES	+= $(AO_MCA_DISP_C)
677aec1d6eScindiCPPFLAGS	+= -I$(SRCDIR) -I$(OBJS_DIR)
687aec1d6eScindiASFLAGS		+= -I$(SRCDIR) -I$(OBJS_DIR)
69*bc946ef3SsethgLDFLAGS		+= -dy -N misc/acpica
707aec1d6eScindi
717aec1d6eScindi#
727aec1d6eScindi#       Default build targets.
737aec1d6eScindi#
747aec1d6eScindi.KEEP_STATE:
757aec1d6eScindi
767aec1d6eScindidef:            $(DEF_DEPS)
777aec1d6eScindi
787aec1d6eScindiall:            $(ALL_DEPS)
797aec1d6eScindi
807aec1d6eScindiclean:          $(CLEAN_DEPS)
817aec1d6eScindi
827aec1d6eScindiclobber:        $(CLOBBER_DEPS)
837aec1d6eScindi
847aec1d6eScindilint:           $(LINT_DEPS)
857aec1d6eScindi
867aec1d6eScindimodlintlib:     $(MODLINTLIB_DEPS)
877aec1d6eScindi
887aec1d6eScindiclean.lint:     $(CLEAN_LINT_DEPS)
897aec1d6eScindi
907aec1d6eScindiinstall:        $(INSTALL_DEPS)
917aec1d6eScindi
927aec1d6eScindi#
937aec1d6eScindi# Create ao_mca_disp.c
947aec1d6eScindi#
957aec1d6eScindi$(AO_MCA_DISP_C): $(AO_MCA_DISP_SRC) $(AO_GENDISP)
967aec1d6eScindi	$(AO_GENDISP) $(AO_MCA_DISP_SRC) >$@
977aec1d6eScindi
987aec1d6eScindi$(OBJS_DIR)/%.o:		$(OBJS_DIR)/%.c
997aec1d6eScindi	$(COMPILE.c) -o $@ $<
1007aec1d6eScindi	$(CTFCONVERT_O)
1017aec1d6eScindi
1027aec1d6eScindi#
1037aec1d6eScindi#       Include common targets.
1047aec1d6eScindi#
1057aec1d6eScindiinclude ../Makefile.targ
106