Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
7f007e36bec06aba6b3a0f84a64f2abf99edfcd8gstein#
02adcc4a00e718d4ee5f8567af789f64e713febdjerenkrantz# 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").
a8d5ccbcbde8cb6cf3a9dcf2eb05f393ab76baa9ianh# You may not use this file except in compliance with the License.
fcef0136828a2525b702f4a2ac465bd789cc5686ianh#
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# or http://www.opensolaris.org/os/licensing.
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz# See the License for the specific language governing permissions
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# and limitations under the License.
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz#
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# When distributing Covered Code, include this CDDL HEADER in each
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab71b233b3a36489e44a7b061c48293be0b17788jwoolley# If applicable, add the following below this CDDL HEADER, with the
571760de5e60c0b459cb11be45507b923cd023eejwoolley# fields enclosed by brackets "[]" replaced with your own identifying
571760de5e60c0b459cb11be45507b923cd023eejwoolley# information: Portions Copyright [yyyy] [name of copyright owner]
9180a5933673ffb1af633c255ceee029340f3b1erbb#
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# CDDL HEADER END
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe#
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# uts/sparc/hci1394/Makefile
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb#
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b876b7bcf0ce3d232da723246d709e8dbbfe8762rbb# Use is subject to license terms.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein#
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick#ident "%Z%%M% %I% %E% SMI"
6f6f4a4bca281779d196acbdd5c017bb90858305trawick#
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# This makefile drives the production of the hci1394 OHCI HAL module.
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawick#
2deb319e6b3de239f45c16a3e9e836d44f1f7108rbb# sparc architecture dependent
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb#
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
af4c982a7cf4515f124935f99a329744035fc699slive# Path to the base of the uts directory tree (usually /usr/src/uts).
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699sliveUTSBASE = ../..
af4c982a7cf4515f124935f99a329744035fc699slive
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# Define the module and object file sets.
af4c982a7cf4515f124935f99a329744035fc699slive#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojMODULE = hci1394
531c23ff01a2489646f0a2029097013b328d935agsteinOBJECTS = $(HCI1394_OBJS:%=$(OBJS_DIR)/%)
28a83b4628080a704c56bbfcc149b94eb873d555coarLINTS = $(HCI1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
bf289b7cf642fb65ab05c22611226619e4e3bb3acoarROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
bf289b7cf642fb65ab05c22611226619e4e3bb3acoarCONF_SRCDIR = $(UTSBASE)/common/io/1394/adapters
bf289b7cf642fb65ab05c22611226619e4e3bb3acoarLDFLAGS += -dy -Nmisc/s1394
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzWARLOCK_OUT = $(HCI1394_OBJS:%.o=%.ll)
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzWARLOCK_OK = $(MODULE).ok
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzWLCMD_DIR = $(UTSBASE)/common/io/warlock
427af37b52c0ce1d8c85c9966f41d2b055e652facoar
427af37b52c0ce1d8c85c9966f41d2b055e652facoar#
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# Include common rules.
427af37b52c0ce1d8c85c9966f41d2b055e652facoar#
1fdeac77a45beb33bdb094738fb90c14e2584f68jerenkrantzinclude $(UTSBASE)/sparc/Makefile.sparc
1fdeac77a45beb33bdb094738fb90c14e2584f68jerenkrantz
bf289b7cf642fb65ab05c22611226619e4e3bb3acoar#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp# Define targets
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianpALL_TARGET = $(BINARY) $(SRC_CONFILE)
6758b07b4b79f898b0f56375016cea7da0bfb495wroweLINT_TARGET = $(MODULE).lint
6758b07b4b79f898b0f56375016cea7da0bfb495wroweINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe
6758b07b4b79f898b0f56375016cea7da0bfb495wrowe#
c00273b9c51c617ede471e9cb95c22420f1227fbbrianp# Overrides
54e1babd5a5a56c576eeeace54110150769cc916coar#
54e1babd5a5a56c576eeeace54110150769cc916coarALL_BUILDS = $(ALL_BUILDSONLY64)
54e1babd5a5a56c576eeeace54110150769cc916coarDEF_BUILDS = $(DEF_BUILDSONLY64)
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronCLEANLINTFILES += $(LINT32_FILES)
54e1babd5a5a56c576eeeace54110150769cc916coar
7fe18c15b669db9d191859695901dc4fcf3829dawroweDEBUG_DEFS_DBG32 += -DTNF_DEBUG
7fe18c15b669db9d191859695901dc4fcf3829dawroweDEBUG_DEFS_DBG64 += -DTNF_DEBUG
7fe18c15b669db9d191859695901dc4fcf3829dawrowe
b84f66c93f820824b1d5455181f55598b766319cwrowe#
7fe18c15b669db9d191859695901dc4fcf3829dawrowe# lint pass one enforcement
976501adbc040220270f7d1d77c4b8373033be69wrowe#
976501adbc040220270f7d1d77c4b8373033be69wroweCFLAGS += $(CCVERBOSE)
976501adbc040220270f7d1d77c4b8373033be69wrowe
976501adbc040220270f7d1d77c4b8373033be69wrowe#
976501adbc040220270f7d1d77c4b8373033be69wrowe# For now, disable these lint checks; maintainers should endeavor
b84f66c93f820824b1d5455181f55598b766319cwrowe# to investigate and remove these for maximum lint coverage.
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb# Please do not carry these forward to new Makefiles.
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb#
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbbLINTTAGS += -erroff=E_STATIC_UNUSED
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz
bf9acc131271d18db51d30ace549d3c3b6a2b9fbrbb#
b84f66c93f820824b1d5455181f55598b766319cwrowe# Default build targets.
b84f66c93f820824b1d5455181f55598b766319cwrowe#
b84f66c93f820824b1d5455181f55598b766319cwrowe.KEEP_STATE:
b84f66c93f820824b1d5455181f55598b766319cwrowe
a601d863bd772fefc4dc82a883589d8be6a44811wrowedef: $(DEF_DEPS)
a601d863bd772fefc4dc82a883589d8be6a44811wrowe
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzall: $(ALL_DEPS)
940881022efef0e9af7c7881b1854e9d4b77c86ajim
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickclean: $(CLEAN_DEPS)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzclobber: $(CLOBBER_DEPS)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzlint: $(LINT_DEPS)
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzmodlintlib: $(MODLINTLIB_DEPS) lint32
108db76823f2261a33aaa3621af6a1e54db17a69trawick
108db76823f2261a33aaa3621af6a1e54db17a69trawickclean.lint: $(CLEAN_LINT_DEPS)
108db76823f2261a33aaa3621af6a1e54db17a69trawick
108db76823f2261a33aaa3621af6a1e54db17a69trawickinstall: $(INSTALL_DEPS)
aea283240d4222da5426169a68e307872d240044jerenkrantz
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz#
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz# Include common targets.
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantz#
a9a0f66fee736c72861cb2819b67b7784896a37cjerenkrantzinclude $(UTSBASE)/sparc/Makefile.targ
427af37b52c0ce1d8c85c9966f41d2b055e652facoar
427af37b52c0ce1d8c85c9966f41d2b055e652facoar#
427af37b52c0ce1d8c85c9966f41d2b055e652facoar# Defines for local commands.
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron#
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronWARLOCK = warlock
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronWLCC = wlcc
108db76823f2261a33aaa3621af6a1e54db17a69trawickTOUCH = touch
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzSCCS = sccs
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantzTEST = test
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz#
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz# Warlock targets
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz#
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantzS1394_FILES = $(S1394_OBJS:%.o= -l ../s1394/%.ll)
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantz
1832c015282e23772f5518059eea4b54a9d142cfjerenkrantzwarlock: $(WARLOCK_OK)
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz%.wlcmd:
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz
f38720f0bc7a117bc4070677a39574c6ea0c62fccoar$(WARLOCK_OK): $(WARLOCK_OUT) s1394.files warlock_ddi.files hci1394.wlcmd
a393fda544fd76948a14ac400528ac160053ff73brianp $(WARLOCK) -c $(WLCMD_DIR)/hci1394.wlcmd \
00452612306ed39e3b0ae309928994ca180b1927jerenkrantz $(WARLOCK_OUT) $(S1394_FILES) \
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron -l ../warlock/ddi_dki_impl.ll
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron $(TOUCH) $@
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron%.ll: $(UTSBASE)/common/io/1394/adapters/%.c
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaronwarlock_ddi.files:
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron @cd ../warlock; pwd; $(MAKE) warlock
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaarons1394.files:
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron @cd ../s1394; pwd; $(MAKE) warlock
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron
427af37b52c0ce1d8c85c9966f41d2b055e652facoar