Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
48c0c81cd6fabac9d3386406d97633780365b839coar#
bca5b27d271b6e1690134a83963424b9825d93bdstriker# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
9a93784d34c322d1996e8a7b794a75230eac81a4wrowe# You may not use this file except in compliance with the License.
c4250200511e2babcf76be6da64a7f101250ab37jwoolley#
4bc630d510cef730e37b9207e145267f473b4471striker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a096f8d13bee05fd6ea8b9b50b6c2e818eace7d1striker# or http://www.opensolaris.org/os/licensing.
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley# See the License for the specific language governing permissions
dba571e5c5a2586c7e2b382789f3250136ff7577jwoolley# and limitations under the License.
bf3d1782a29630335a1df535eb395355ab1cd154jwoolley#
07847078a10fe4e9229cc08adda5f421cafc0665jwoolley# When distributing Covered Code, include this CDDL HEADER in each
0bd0176ce9f4321eeb506aa372d0bcc84befbf4cstriker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d8028365066fca602bf35d014530a1802114378crbb# If applicable, add the following below this CDDL HEADER, with the
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# fields enclosed by brackets "[]" replaced with your own identifying
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe#
d89c116f82699294ca744125723651c554bc5925wrowe# CDDL HEADER END
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron#
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz#
c25203fdca093d4504c51b4cd974ff60d5aa4fb1wrowe# uts/intel/sockfs/Makefile
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz#
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Use is subject to license terms.
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb#
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley
571760de5e60c0b459cb11be45507b923cd023eejwoolley#
571760de5e60c0b459cb11be45507b923cd023eejwoolley# This makefile drives the production of the sockfs file system
9180a5933673ffb1af633c255ceee029340f3b1erbb# kernel module.
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb#
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# intel implementation architecture dependent
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# Path to the base of the uts directory tree (usually /usr/src/uts).
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb#
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gsteinUTSBASE = ../..
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick
6f6f4a4bca281779d196acbdd5c017bb90858305trawick#
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# Define the module and object file sets.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick#
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbbMODULE = sockfs
bd929c73ef04789b7183b840d8db6e01d03a4d86rbbOBJECTS = $(SOCK_OBJS:%=$(OBJS_DIR)/%)
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanojLINTS = $(SOCK_OBJS:%.o=$(LINTS_DIR)/%.ln)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojROOTMODULE = $(ROOT_FS_DIR)/$(MODULE)
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# Include common rules.
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveinclude $(UTSBASE)/intel/Makefile.intel
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# Define targets
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweALL_TARGET = $(BINARY)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweLINT_TARGET = $(MODULE).lint
10270f6f94b2069d0d357805c140a9897449b9ccianhINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4b62424416882687387923b3130b96241503cbe0jerenkrantz
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz#
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz# Overrides.
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard#
dbec4658981e4f9127e8676457c28d42932be7cdtrawickMODSTUBS_DIR = $(OBJS_DIR)
1b7e9aeb9867a1c94e24e8ae491d2dfcd0d225e3jerenkrantz$(MODSTUBS_O) := AS_CPPFLAGS += -DSOCK_MODULE
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzCLEANFILES += $(MODSTUBS_O)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzLDFLAGS += -dy -Ndrv/ip
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
5c9a6bc911baa7cef34d64de59af1e8d6e09c13abrianp#
5c9a6bc911baa7cef34d64de59af1e8d6e09c13abrianp# Derived file "nl7ctokgen.h" defines.
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
bb2b4c21329be5f70a7b0b42c59cd8490d2ac43bwroweSRCDIR = $(UTSBASE)/common/fs/sockfs
bca5b27d271b6e1690134a83963424b9825d93bdstrikerTOKGEN = $(SRCDIR)/nl7ctokgen
4520f2a938626a879b33dac9fd940072b6c2bd42wroweDERIVED_FILES = nl7ctokgen.h
4520f2a938626a879b33dac9fd940072b6c2bd42wroweCFLAGS += -I.
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTFLAGS += -I.
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe# For now, disable these lint checks; maintainers should endeavor
783e9d9e55a1ecb3c0eedb14493667ed642191c5rederpj# to investigate and remove these for maximum lint coverage.
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim# Please do not carry these forward to new Makefiles.
941cb476bf470040d0a33c397eb85c68d9d82d4djerenkrantz#
bca5b27d271b6e1690134a83963424b9825d93bdstrikerLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTTAGS += -erroff=E_STATIC_UNUSED
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
4520f2a938626a879b33dac9fd940072b6c2bd42wroweLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wroweCERRWARN += -_gcc=-Wno-unused-label
53573272227ec7c6a2bb9631934aea6c9dd1469egregamesCERRWARN += -_gcc=-Wno-unused-value
bca5b27d271b6e1690134a83963424b9825d93bdstrikerCERRWARN += -_gcc=-Wno-unused-variable
4520f2a938626a879b33dac9fd940072b6c2bd42wroweCERRWARN += -_gcc=-Wno-unused-function
4520f2a938626a879b33dac9fd940072b6c2bd42wroweCERRWARN += -_gcc=-Wno-parentheses
4520f2a938626a879b33dac9fd940072b6c2bd42wroweCERRWARN += -_gcc=-Wno-uninitialized
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe#
53573272227ec7c6a2bb9631934aea6c9dd1469egregames# Default build targets.
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim#
bca5b27d271b6e1690134a83963424b9825d93bdstriker.KEEP_STATE:
941cb476bf470040d0a33c397eb85c68d9d82d4djerenkrantz
4520f2a938626a879b33dac9fd940072b6c2bd42wrowedef: $(DEF_DEPS)
4520f2a938626a879b33dac9fd940072b6c2bd42wrowe
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickall: $(ALL_DEPS)
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickclean: $(CLEAN_DEPS)
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick $(RM) $(DERIVED_FILES)
574c4f095a6e4c5a9b51877c284527aa8bac1a59jwoolley
13402b2193f52031b2acfbee2b0965e02f3f29b4wroweclobber: $(CLOBBER_DEPS)
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick $(RM) $(DERIVED_FILES)
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
418f39e60a288f855ec033b566744489c3bbbf39trawicklint: $(LINT_DEPS)
cc22a72861c58dda7f3768613aec864e4c4e0353striker
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickmodlintlib: $(MODLINTLIB_DEPS)
ddafc111b94558ef4e2d7357ceda623315566ce3slive
ddafc111b94558ef4e2d7357ceda623315566ce3sliveclean.lint: $(CLEAN_LINT_DEPS)
ae72c92fd41562d7c0e8627c093fcbbae4ac9ef2coar
ddafc111b94558ef4e2d7357ceda623315566ce3sliveinstall: $(INSTALL_DEPS)
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb#
bca5b27d271b6e1690134a83963424b9825d93bdstriker# Include common targets.
bca5b27d271b6e1690134a83963424b9825d93bdstriker#
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjiminclude $(UTSBASE)/intel/Makefile.targ
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe#
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim# Derived file gen.
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim#
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim$(SRCDIR)/nl7chttp.c: nl7ctokgen.h
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantznl7ctokgen.h: $(TOKGEN) $(SRCDIR)/nl7ctokreq.txt $(SRCDIR)/nl7ctokres.txt
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz /bin/ksh $(TOKGEN) $(SRCDIR)/nl7ctokreq.txt $(SRCDIR)/nl7ctokres.txt >$@
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz