Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
6b183c64a3281491f8232959a5ece303b4499706Mark Andrews#
6b183c64a3281491f8232959a5ece303b4499706Mark Andrews# CDDL HEADER START
5a8f2f0cd67a5dd93d95e6a0935d4805721c3a0bMichał Kępień#
5a8f2f0cd67a5dd93d95e6a0935d4805721c3a0bMichał Kępień# The contents of this file are subject to the terms of the
5a8f2f0cd67a5dd93d95e6a0935d4805721c3a0bMichał Kępień# Common Development and Distribution License (the "License").
5a8f2f0cd67a5dd93d95e6a0935d4805721c3a0bMichał Kępień# You may not use this file except in compliance with the License.
5a8f2f0cd67a5dd93d95e6a0935d4805721c3a0bMichał Kępień#
e2cc7418bf895d22854d84590b63905fac0d4b90Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e2cc7418bf895d22854d84590b63905fac0d4b90Mark Andrews# or http://www.opensolaris.org/os/licensing.
36ec0d374836d070ba05b495e6f0a27f60e94476Evan Hunt# See the License for the specific language governing permissions
36ec0d374836d070ba05b495e6f0a27f60e94476Evan Hunt# and limitations under the License.
36ec0d374836d070ba05b495e6f0a27f60e94476Evan Hunt#
e446fd29b9c6c4a7b6b5bb0aee3932578c346718Mukund Sivaraman# When distributing Covered Code, include this CDDL HEADER in each
f896f7c8be894a737998b97008a1389e72972fcfMukund Sivaraman# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e446fd29b9c6c4a7b6b5bb0aee3932578c346718Mukund Sivaraman# If applicable, add the following below this CDDL HEADER, with the
027a4a5b5d806290146ce4989d34be2c8a664e8cMukund Sivaraman# fields enclosed by brackets "[]" replaced with your own identifying
027a4a5b5d806290146ce4989d34be2c8a664e8cMukund Sivaraman# information: Portions Copyright [yyyy] [name of copyright owner]
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman#
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman# CDDL HEADER END
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman#
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman
b5252fcde512405a68dd4becfe683d9763bd0feaMukund Sivaraman#
99056063905a9273ec59cf477ae747e0490182b7Mukund Sivaraman# uts/i86xpv/xdf/Makefile
99056063905a9273ec59cf477ae747e0490182b7Mukund Sivaraman#
99056063905a9273ec59cf477ae747e0490182b7Mukund Sivaraman# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
62f2fefaec754e6a4841ff0e72726e6c0cd89c86Michał Kępień# Use is subject to license terms.
62f2fefaec754e6a4841ff0e72726e6c0cd89c86Michał Kępień#
62f2fefaec754e6a4841ff0e72726e6c0cd89c86Michał Kępień
62f2fefaec754e6a4841ff0e72726e6c0cd89c86Michał Kępień#
b351a5864727a390e06d787e522b141ca760590fMichał Kępień# i86xpv architecture dependent
b351a5864727a390e06d787e522b141ca760590fMichał Kępień#
b351a5864727a390e06d787e522b141ca760590fMichał Kępień#
b351a5864727a390e06d787e522b141ca760590fMichał Kępień# Path to the base of the uts directory tree (usually /usr/src/uts).
b351a5864727a390e06d787e522b141ca760590fMichał Kępień#
b351a5864727a390e06d787e522b141ca760590fMichał KępieńUTSBASE = ../..
b351a5864727a390e06d787e522b141ca760590fMichał Kępień
8008de0b11bacb3de3a1016c8c0a46f3c0653184Mark Andrews#
8008de0b11bacb3de3a1016c8c0a46f3c0653184Mark Andrews# Define the module and object file sets.
8008de0b11bacb3de3a1016c8c0a46f3c0653184Mark Andrews#
8008de0b11bacb3de3a1016c8c0a46f3c0653184Mark AndrewsMODULE = xdf
8008de0b11bacb3de3a1016c8c0a46f3c0653184Mark AndrewsOBJECTS = $(XDF_OBJS:%=$(OBJS_DIR)/%)
7b4bfc0201ffbcd64a336b99c945891808c44af0Mark AndrewsLINTS = $(XDF_OBJS:%.o=$(LINTS_DIR)/%.ln)
7b4bfc0201ffbcd64a336b99c945891808c44af0Mark AndrewsROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
b815731d05220f932315eb33a97c6dc888c6a026Tinderbox User
7cd594b8427fe742d44295790ba367e1de22a47dEvan Hunt#
7cd594b8427fe742d44295790ba367e1de22a47dEvan Hunt# Include common rules.
7cd594b8427fe742d44295790ba367e1de22a47dEvan Hunt#
c76e8412f4ff4f5945157410312df2a8950f942dMark Andrewsinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
c76e8412f4ff4f5945157410312df2a8950f942dMark Andrews
a2a0100e0fc73c0af67a7c9e3524816954448dc6Evan Hunt#
a2a0100e0fc73c0af67a7c9e3524816954448dc6Evan Hunt# Define targets
a2a0100e0fc73c0af67a7c9e3524816954448dc6Evan Hunt#
a2a0100e0fc73c0af67a7c9e3524816954448dc6Evan HuntALL_TARGET = $(BINARY)
1feffc6fdb1ba386b22d45ea2d2f1613e717cb9eMark AndrewsLINT_TARGET = $(MODULE).lint
1feffc6fdb1ba386b22d45ea2d2f1613e717cb9eMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1feffc6fdb1ba386b22d45ea2d2f1613e717cb9eMark Andrews
22bed621ef87bc8b6c1fea599b02c4b38dd6bf48Mark Andrews# Overrides
22bed621ef87bc8b6c1fea599b02c4b38dd6bf48Mark AndrewsLDFLAGS += -dy -Nmisc/cmlb
22bed621ef87bc8b6c1fea599b02c4b38dd6bf48Mark Andrews
e5f5675b1da287ed40aeff081ad2af86090e8d17Evan HuntLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
e5f5675b1da287ed40aeff081ad2af86090e8d17Evan HuntLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
e5f5675b1da287ed40aeff081ad2af86090e8d17Evan HuntLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
29f0ced781d745591fd058e530a68a281cd7a510Evan Hunt
29f0ced781d745591fd058e530a68a281cd7a510Evan HuntCERRWARN += -_gcc=-Wno-parentheses
29f0ced781d745591fd058e530a68a281cd7a510Evan HuntCERRWARN += -_gcc=-Wno-switch
b9fd54f8d4572fe5dcaf9d4b74f6ecb8027cc450Evan Hunt
b9fd54f8d4572fe5dcaf9d4b74f6ecb8027cc450Evan Hunt#
b9fd54f8d4572fe5dcaf9d4b74f6ecb8027cc450Evan Hunt# Default build targets.
fcb5e646e4d775539e348fa21ba13307f2695bf5Mark Andrews#
fcb5e646e4d775539e348fa21ba13307f2695bf5Mark Andrews.KEEP_STATE:
fcb5e646e4d775539e348fa21ba13307f2695bf5Mark Andrews
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępieńdef: $(DEF_DEPS)
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępień
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępieńall: $(ALL_DEPS)
a22c3cf51567651f74aee5c263c597b8d752c2ccMichał Kępień
b301c4293c082fcce4ec26218e6fad346976eb9eMark Andrewsclean: $(CLEAN_DEPS)
b301c4293c082fcce4ec26218e6fad346976eb9eMark Andrews
b301c4293c082fcce4ec26218e6fad346976eb9eMark Andrewsclobber: $(CLOBBER_DEPS)
5c4e0c7800b5c7783e7f8b9ce80a6f8dc47f8856Mark Andrews
5c4e0c7800b5c7783e7f8b9ce80a6f8dc47f8856Mark Andrewslint: $(LINT_DEPS)
5c4e0c7800b5c7783e7f8b9ce80a6f8dc47f8856Mark Andrews
6e1f755f19ef244422e1efa4551fe23775e1a38cMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
6e1f755f19ef244422e1efa4551fe23775e1a38cMark Andrews
6e1f755f19ef244422e1efa4551fe23775e1a38cMark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
435a7cd2293dfa9264678508762ab9acb8d41e50Mark Andrews
435a7cd2293dfa9264678508762ab9acb8d41e50Mark Andrewsinstall: $(INSTALL_DEPS)
435a7cd2293dfa9264678508762ab9acb8d41e50Mark Andrews
b7a823a402eb5c4e99f283e58d778a903d2e72f5Michał Kępień#
b7a823a402eb5c4e99f283e58d778a903d2e72f5Michał Kępień# Include common targets.
b7a823a402eb5c4e99f283e58d778a903d2e72f5Michał Kępień#
c46c8e5c56ec4e81a39632e0036f20a6a3c18b8bMark Andrewsinclude $(UTSBASE)/i86xpv/Makefile.targ
031bc55634f443c7c70fbf44c6ac6d8abe72f22bEvan Hunt