Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# CDDL HEADER START
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# The contents of this file are subject to the terms of the
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Common Development and Distribution License (the "License").
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews# You may not use this file except in compliance with the License.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# If applicable, add the following below this CDDL HEADER, with the
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#ident "%Z%%M% %I% %E% SMI"
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# This Makefile builds the Pentium 1, 2, and 3 Performance Counter BackEnd (PCBE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsUTSBASE = ../..
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Define module and object file sets.
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE = pcbe.GenuineIntel.6
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsOBJECTS = $(P123_PCBE_OBJS:%=$(OBJS_DIR)/%)
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsLINTS = $(P123_PCBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsROOTMODULE = $(USR_PCBE_DIR)/$(MODULE)
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsROOTLINK = $(USR_PCBE_DIR)/pcbe.GenuineIntel.5
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Include common rules.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrewsinclude $(UTSBASE)/intel/Makefile.intel
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3f6174bffe227be44e241a29d186add00c032ff6Mark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Define targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsALL_TARGET = $(BINARY)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLINT_MODULE = p123_pcbe
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLINT_TARGET = $(LINT_MODULE).lint
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# For now, disable these lint checks; maintainers should endeavor
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# to investigate and remove these for maximum lint coverage.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Please do not carry these forward to new Makefiles.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark AndrewsLINTTAGS += -erroff=E_STATIC_UNUSED
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# Default build targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrews
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsdef: $(DEF_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrewsall: $(ALL_DEPS)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsclean: $(CLEAN_DEPS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsclobber: $(CLOBBER_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewslint: $(LINT_DEPS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall: $(INSTALL_DEPS)
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews$(ROOTLINK): $(ROOTMODULE)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews -$(RM) $@; ln $(ROOTMODULE) $@
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews#
dd9ad704c3800e3ab07ede8595871eac79984871Mark Andrews# Include common targets.
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews#
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews