Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson#
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# You may not use this file except in compliance with the License.
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# or http://www.opensolaris.org/os/licensing.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews#
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinUTSBASE = ../..
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE = dls
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOBJECTS = $(DLS_OBJS:%=$(OBJS_DIR)/%)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTS = $(DLS_OBJS:%.o=$(LINTS_DIR)/%.ln)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(UTSBASE)/sparc/Makefile.sparc
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define targets
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinALL_TARGET = $(BINARY)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINT_TARGET = $(MODULE).lint
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Overrides.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCFLAGS += $(CCVERBOSE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(RELEASE_BUILD)CFLAGS += -xinline=auto -xcrossfile
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(RELEASE_BUILD)COPTIMIZE = -xO5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLDFLAGS += -dy -N misc/mac
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
03c0efc6892ef2ed17338b2ecbb2c5f23fbad0c9Tinderbox User#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# For now, disable these lint checks; maintainers should endeavor
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User# to investigate and remove these for maximum lint coverage.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Please do not carry these forward to new Makefiles.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
b49958b502ee45022010a0b1bed3968f598895a4Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTTAGS += -erroff=E_STATIC_UNUSED
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Default build targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein.KEEP_STATE:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrewsdef: $(DEF_DEPS)
665a24faf6b3711e4012ac02ae5f0981c093ac1eTinderbox User
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox Userall: $(ALL_DEPS)
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrewsclean: $(CLEAN_DEPS)
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclobber: $(CLOBBER_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlint: $(LINT_DEPS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Usermodlintlib: $(MODLINTLIB_DEPS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinclean.lint: $(CLEAN_LINT_DEPS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall: $(INSTALL_DEPS)
61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92Mark Andrews
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox Userinclude $(UTSBASE)/sparc/Makefile.targ
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User