Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
9b2c0d29248ad5f86b47319239a06c783e1b5307Andreas Gustafsson#
9b2c0d29248ad5f86b47319239a06c783e1b5307Andreas Gustafsson# CDDL HEADER START
eb2c518a3871932e86268e7c6ddae2b2a00d72fdMark Andrews#
4072dfb9b865c82c24a72e734d54da51a20dfc1eMark Andrews# The contents of this file are subject to the terms of the
4072dfb9b865c82c24a72e734d54da51a20dfc1eMark Andrews# Common Development and Distribution License (the "License").
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas Gustafsson# You may not use this file except in compliance with the License.
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas Gustafsson#
92094d44a2d0cb2b1be58a87299903ba7c436a0cAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson# See the License for the specific language governing permissions
11fe3dcfe2a5fbefd0cfe445872dc4c595506204Andreas Gustafsson# and limitations under the License.
d1abb8bb020aacd1ce0da65c2d5d8f7c96ebd52aMark Andrews#
b4aeceec736cd16d4c4e98f519c8df79b15fbe45Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
b4aeceec736cd16d4c4e98f519c8df79b15fbe45Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b4aeceec736cd16d4c4e98f519c8df79b15fbe45Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
307ba34fa07db768c3a899844f248a2c1d7dcc7fAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
307ba34fa07db768c3a899844f248a2c1d7dcc7fAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
307ba34fa07db768c3a899844f248a2c1d7dcc7fAndreas Gustafsson#
307ba34fa07db768c3a899844f248a2c1d7dcc7fAndreas Gustafsson# CDDL HEADER END
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington#
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington#
b6b9d8b8434e4eaab74b69cd14fcacf448055ca5Brian Wellington# uts/sparc/rlmod/Makefile
31f6e44dcaad33d66d607e3a919d4aa59cdbaec5Andreas Gustafsson# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
31f6e44dcaad33d66d607e3a919d4aa59cdbaec5Andreas Gustafsson# Use is subject to license terms.
31f6e44dcaad33d66d607e3a919d4aa59cdbaec5Andreas Gustafsson#
31f6e44dcaad33d66d607e3a919d4aa59cdbaec5Andreas Gustafsson
6d6529b5e5ab7223fa2560ebe144bcb82517cef3Mark Andrews#
6d6529b5e5ab7223fa2560ebe144bcb82517cef3Mark Andrews# This makefile drives the production of the rlmod streams kernel
0b07b9482c00060d1ddd551a5dcb8cecbe2c1f65Mark Andrews# module.
0b07b9482c00060d1ddd551a5dcb8cecbe2c1f65Mark Andrews#
0b07b9482c00060d1ddd551a5dcb8cecbe2c1f65Mark Andrews# sparc architecture dependent
c0fe9b0d1b01a9a0883977a362ce4128723a56d6Mark Andrews#
c0fe9b0d1b01a9a0883977a362ce4128723a56d6Mark Andrews
2869504d83e84a91dbc822e8a243e837f5c0374dAndreas Gustafsson#
2869504d83e84a91dbc822e8a243e837f5c0374dAndreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
2869504d83e84a91dbc822e8a243e837f5c0374dAndreas Gustafsson#
138cc7f283889367b11840ff77a9ea08e17a9daeAndreas GustafssonUTSBASE = ../..
ce6caa07591b3723968c22f5aa13740f9609135aAndreas Gustafsson
138cc7f283889367b11840ff77a9ea08e17a9daeAndreas Gustafsson#
138cc7f283889367b11840ff77a9ea08e17a9daeAndreas Gustafsson# Define the module and object file sets.
ac1a59e95cfd035f38222e739affd43eafa9eeefMark Andrews#
ac1a59e95cfd035f38222e739affd43eafa9eeefMark AndrewsMODULE = rlmod
58930ca9802e772afe9f5ccb30f236d201cf60e0Danny MayerOBJECTS = $(RLMOD_OBJS:%=$(OBJS_DIR)/%)
58930ca9802e772afe9f5ccb30f236d201cf60e0Danny MayerLINTS = $(RLMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
58930ca9802e772afe9f5ccb30f236d201cf60e0Danny MayerROOTMODULE = $(USR_STRMOD_DIR)/$(MODULE)
e3e94dd137c5f9d3d5c5179863f674b27aa0cc02Andreas Gustafsson
e3e94dd137c5f9d3d5c5179863f674b27aa0cc02Andreas Gustafsson#
e3e94dd137c5f9d3d5c5179863f674b27aa0cc02Andreas Gustafsson# Include common rules.
e3e94dd137c5f9d3d5c5179863f674b27aa0cc02Andreas Gustafsson#
7c014c5bf41dc38802e8889c0a9110204eb1a552Andreas Gustafssoninclude $(UTSBASE)/sparc/Makefile.sparc
7c014c5bf41dc38802e8889c0a9110204eb1a552Andreas Gustafsson
7c014c5bf41dc38802e8889c0a9110204eb1a552Andreas Gustafsson#
7c014c5bf41dc38802e8889c0a9110204eb1a552Andreas Gustafsson# Define targets
7c014c5bf41dc38802e8889c0a9110204eb1a552Andreas Gustafsson#
3e42bdfdc901b6b921b02028bd51ca2af8e84adcMark AndrewsALL_TARGET = $(BINARY)
3e42bdfdc901b6b921b02028bd51ca2af8e84adcMark AndrewsLINT_TARGET = $(MODULE).lint
2053e8c26cd69600132632fbee247601ce8c9e8cAndreas GustafssonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3e42bdfdc901b6b921b02028bd51ca2af8e84adcMark Andrews
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews#
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews# lint pass one enforcement
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews#
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark AndrewsCFLAGS += $(CCVERBOSE)
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews#
b20eef7ab022dd984e2e9c12f6a7edf35661d3b0Mark Andrews# For now, disable these lint checks; maintainers should endeavor
ea01b618d981e58f85071a40550bc7f7565d4509Andreas Gustafsson# to investigate and remove these for maximum lint coverage.
ea01b618d981e58f85071a40550bc7f7565d4509Andreas Gustafsson# Please do not carry these forward to new Makefiles.
bad3251d3f7ffccdec39ccfe04d94308985fb36eAndreas Gustafsson#
bad3251d3f7ffccdec39ccfe04d94308985fb36eAndreas GustafssonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
80dd46d7aab16c42a8c1acf6156c95406a9f20a4Mark AndrewsLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
9eec883bf871ee2235009e889440f986c98908b8Andreas Gustafsson
993572b2495561c57b556621dd9fe493e8c6dd1bDanny MayerCERRWARN += -_gcc=-Wno-parentheses
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas GustafssonCERRWARN += -_gcc=-Wno-uninitialized
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas Gustafsson
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas Gustafsson#
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas Gustafsson# Default build targets.
088eaf3878580eebbbd2b020411532af278aae5aAndreas Gustafsson#
6b13908f7030e09fb4573f3c2f8d7a5edc70e0b5Mark Andrews.KEEP_STATE:
afeabf9f707ca71192041c1132d9f07d7bd83132Mark Andrews
3842a051baf34ffc4e428cd6f2d4a641e548e6f6Mark Andrewsdef: $(DEF_DEPS)
3842a051baf34ffc4e428cd6f2d4a641e548e6f6Mark Andrews
46ba6046bcb3b534346de13a4ff5c1513e72936bAndreas Gustafssonall: $(ALL_DEPS)
46ba6046bcb3b534346de13a4ff5c1513e72936bAndreas Gustafsson
46ba6046bcb3b534346de13a4ff5c1513e72936bAndreas Gustafssonclean: $(CLEAN_DEPS)
a89d1aea0cce6a28a3751cd508db67e38d307a5eDanny Mayer
04f158ce9a12746eb216892b2bf8259749db254eAndreas Gustafssonclobber: $(CLOBBER_DEPS)
04f158ce9a12746eb216892b2bf8259749db254eAndreas Gustafsson
04f158ce9a12746eb216892b2bf8259749db254eAndreas Gustafssonlint: $(LINT_DEPS)
04f158ce9a12746eb216892b2bf8259749db254eAndreas Gustafsson
62c1fe7b450916acdaf4a3fe65a9b691d5d32f3fBrian Wellingtonmodlintlib: $(MODLINTLIB_DEPS)
62c1fe7b450916acdaf4a3fe65a9b691d5d32f3fBrian Wellington
62c1fe7b450916acdaf4a3fe65a9b691d5d32f3fBrian Wellingtonclean.lint: $(CLEAN_LINT_DEPS)
712bf9b0cc4ed34f4bf33b437f8b0e45853b93ceMark Andrews
712bf9b0cc4ed34f4bf33b437f8b0e45853b93ceMark Andrewsinstall: $(INSTALL_DEPS)
7e2f4ceafaae4eac1deddc87f906b29a922fff9dAndreas Gustafsson
7e2f4ceafaae4eac1deddc87f906b29a922fff9dAndreas Gustafsson#
7e2f4ceafaae4eac1deddc87f906b29a922fff9dAndreas Gustafsson# Include common targets.
2053e8c26cd69600132632fbee247601ce8c9e8cAndreas Gustafsson#
72499be79fbb68140bd31e0e4ded18a70a5b523bMark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
90c5477ca11a94b0e7d8071181d69544e1ab9be9Mark Andrews