Makefile revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
4c05f9a6a3d0fe27d5fad1599b10500e21c705feMark Andrews# CDDL HEADER START
4c05f9a6a3d0fe27d5fad1599b10500e21c705feMark Andrews#
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# The contents of this file are subject to the terms of the
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# Common Development and Distribution License (the "License").
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# You may not use this file except in compliance with the License.
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann#
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont# or http://www.opensolaris.org/os/licensing.
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont# See the License for the specific language governing permissions
17bc56e321574b43c5837d1741e9157c8f2fcd91Francis Dupont# and limitations under the License.
17bc56e321574b43c5837d1741e9157c8f2fcd91Francis Dupont#
17bc56e321574b43c5837d1741e9157c8f2fcd91Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews# If applicable, add the following below this CDDL HEADER, with the
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# CDDL HEADER END
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Use is subject to license terms.
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt#
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt# Copyright 2016 Joyent, Inc.
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt#
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark Andrews#
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark Andrews#
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark AndrewsUTSBASE = ../..
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark Andrews
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark Andrews#
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark Andrews# Define the module and object file sets.
ddd40390be246189f10dc18782914b295befb139Mark Andrews#
0e507dbb816575e6220fe309e8ada68897ffcdbeMark AndrewsMODULE = cpu_ms.AuthenticAMD.15
ddd40390be246189f10dc18782914b295befb139Mark Andrews#
fd5d7b4b1cf3b11ff248a361e5b2c56ca7372225Mark AndrewsOBJECTS = $(CPU_AO_OBJS:%=$(OBJS_DIR)/%)
ddd40390be246189f10dc18782914b295befb139Mark AndrewsLINTS = $(CPU_AO_OBJS:%.o=$(LINTS_DIR)/%.ln)
5715e1c6f6b549e95b312f1529efd849f7c9503fMark AndrewsROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
5715e1c6f6b549e95b312f1529efd849f7c9503fMark Andrews
ddd40390be246189f10dc18782914b295befb139Mark AndrewsSRCDIR = ../cpu/amd_opteron
b795de862ba8e75f3b9c56abb9553c28255c8567Mark Andrews
b795de862ba8e75f3b9c56abb9553c28255c8567Mark AndrewsAO_MCA_DISP_C = $(OBJS_DIR)/ao_mca_disp.c
c12904ec531fb210066bafc33bde74d43889caacMark AndrewsAO_MCA_DISP_SRC = $(SRCDIR)/ao_mca_disp.in
c12904ec531fb210066bafc33bde74d43889caacMark AndrewsAO_GENDISP = ../cpu/scripts/ao_gendisp
0a92db42c6be6a158cd41ff863831a8d2d257935Mark Andrews
0a92db42c6be6a158cd41ff863831a8d2d257935Mark Andrews#
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrews# Include common rules.
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrews#
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrewsinclude ../cpu/Makefile.cpu
699e00089fb1a6eb31d7bd1c96bf973608953159Mark Andrews
699e00089fb1a6eb31d7bd1c96bf973608953159Mark Andrews#
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark Andrews# Our lint library has a different name from that of the module we build.
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark Andrews#
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark AndrewsLINT_MODULE = amd_opteron
e01f55daa4b611190a11a40299007e5e55018854Mark Andrews
e01f55daa4b611190a11a40299007e5e55018854Mark Andrews#
e01f55daa4b611190a11a40299007e5e55018854Mark Andrews# Define targets
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark Andrews#
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark AndrewsALL_TARGET = $(BINARY)
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark AndrewsLINT_TARGET = $(LINT_MODULE).lint
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrews
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrews#
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrews# Overrides and additions
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrews#
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrews$(OBJS_DIR)/ao_mca.o := CERRWARN += -_gcc=-Wno-unused-function
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark AndrewsCLEANFILES += $(AO_MCA_DISP_C)
17a0bbda335ffc9af34be1000f500c622008458cMark AndrewsCPPFLAGS += -I$(SRCDIR) -I$(OBJS_DIR)
17a0bbda335ffc9af34be1000f500c622008458cMark AndrewsASFLAGS += -I$(SRCDIR) -I$(OBJS_DIR)
17a0bbda335ffc9af34be1000f500c622008458cMark AndrewsLDFLAGS += -dy -N misc/acpica
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Hunt#
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Hunt# Default build targets.
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Hunt#
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Hunt.KEEP_STATE:
e3fbbde8fc2e7d6e50583926d34e25a7b638e5adMichael Graff
52d44117c825de42dd8bba00885cfb004770c79eMichael Graffdef: $(DEF_DEPS)
1d5981dd3f7ae31703b7b4e3aa776bc8302ff78dEvan Hunt
1d5981dd3f7ae31703b7b4e3aa776bc8302ff78dEvan Huntall: $(ALL_DEPS)
1d5981dd3f7ae31703b7b4e3aa776bc8302ff78dEvan Hunt
1d5981dd3f7ae31703b7b4e3aa776bc8302ff78dEvan Huntclean: $(CLEAN_DEPS)
aae88005f26209d969328703a09170e8af3faff3Mark Andrews
57b403c1e9cd8f814c7dbf1808f6cd8d2efb7aeaScott Mannclobber: $(CLOBBER_DEPS)
57b403c1e9cd8f814c7dbf1808f6cd8d2efb7aeaScott Mann
29bd52e4ee3fa047474d5d5b405d1e09c800a6f4Evan Huntlint: $(LINT_DEPS)
29bd52e4ee3fa047474d5d5b405d1e09c800a6f4Evan Hunt
b1b42b03b774d77ddfd38e5e0a5c0a3ed1944b89Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
b1b42b03b774d77ddfd38e5e0a5c0a3ed1944b89Mark Andrews
b1b42b03b774d77ddfd38e5e0a5c0a3ed1944b89Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
2870e5fb54c4a7e3980307b191c7e6ae649119bcEvan Hunt
c5fa3706950224af3f5ae6d22944b1b8298d4eddMark Andrewsinstall: $(INSTALL_DEPS)
c5fa3706950224af3f5ae6d22944b1b8298d4eddMark Andrews
4d205bf79b4abacfef41c9f01ee63938deba2f31Mark Andrews#
74b7355f1ee4a914aa09a6c6493aae64c588b026Mark Andrews# Create ao_mca_disp.c
4d205bf79b4abacfef41c9f01ee63938deba2f31Mark Andrews#
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews$(AO_MCA_DISP_C): $(AO_MCA_DISP_SRC) $(AO_GENDISP)
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews $(AO_GENDISP) $(AO_MCA_DISP_SRC) >$@
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews
5b79d154014f87b6c54b1ec2d3912c35b02042a1Mark Andrews$(OBJS_DIR)/%.o: $(OBJS_DIR)/%.c
5b79d154014f87b6c54b1ec2d3912c35b02042a1Mark Andrews $(COMPILE.c) -o $@ $<
a8e5a5918355d883f24e4f137c13cd53841679a9Mark Andrews $(CTFCONVERT_O)
a8e5a5918355d883f24e4f137c13cd53841679a9Mark Andrews
a8e5a5918355d883f24e4f137c13cd53841679a9Mark Andrews#
69496e55a787f8d800c826d2405d8f38e4c52b86Mark Andrews# Include common targets.
69496e55a787f8d800c826d2405d8f38e4c52b86Mark Andrews#
c1ee8bb4ba3e9ab1463403ed685729631de406b1Mark Andrewsinclude ../Makefile.targ
c1ee8bb4ba3e9ab1463403ed685729631de406b1Mark Andrews