Makefile revision 1bdd6c0e3710e91cb1f31aa78de33cb638494480
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
a77a7d850e4496179e1e0f45d5152865c899d421covener#
a77a7d850e4496179e1e0f45d5152865c899d421covener# The contents of this file are subject to the terms of the
92108a6c4fd7ca6e9acc94d2485920436763e491sf# Common Development and Distribution License (the "License").
df6d5653669f1514b4449aaba99cb950c0013e5fcovener# You may not use this file except in compliance with the License.
df6d5653669f1514b4449aaba99cb950c0013e5fcovener#
df6d5653669f1514b4449aaba99cb950c0013e5fcovener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
509622419be000045d461ef38fb97df778fdf81djailletc# or http://www.opensolaris.org/os/licensing.
509622419be000045d461ef38fb97df778fdf81djailletc# See the License for the specific language governing permissions
509622419be000045d461ef38fb97df778fdf81djailletc# and limitations under the License.
509622419be000045d461ef38fb97df778fdf81djailletc#
1de839c61281d58dc75715c1ae06b4b00764c4efjorton# When distributing Covered Code, include this CDDL HEADER in each
1de839c61281d58dc75715c1ae06b4b00764c4efjorton# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1de839c61281d58dc75715c1ae06b4b00764c4efjorton# If applicable, add the following below this CDDL HEADER, with the
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrin# fields enclosed by brackets "[]" replaced with your own identifying
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrin# information: Portions Copyright [yyyy] [name of copyright owner]
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrin#
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrin# CDDL HEADER END
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin#
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin#
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin# Use is subject to license terms.
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin#
0b9de55d178312ec929dbe417dd61199b269991djailletc# This makefile drives the production of the srpt pseudo-driver for
0b9de55d178312ec929dbe417dd61199b269991djailletc# COMSTAR.
0b9de55d178312ec929dbe417dd61199b269991djailletc
0b9de55d178312ec929dbe417dd61199b269991djailletc#
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin# Path to the base of the uts directory tree (usually /usr/src/uts).
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin#
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin
9e0d78337da0ce66247fc3254b9d5be262cbcea8minfrinUTSBASE = ../..
9e0d78337da0ce66247fc3254b9d5be262cbcea8minfrin
9e0d78337da0ce66247fc3254b9d5be262cbcea8minfrinARCHDIR:sh = cd ..; basename `pwd`
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletc
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletc#
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletc# Define the module and object file sets.
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletc#
2f073ef2a21b1725addef84f318a2b11541e912aminfrinMODULE = srpt
2f073ef2a21b1725addef84f318a2b11541e912aminfrinOBJECTS = $(SRPT_OBJS:%=$(OBJS_DIR)/%)
2f073ef2a21b1725addef84f318a2b11541e912aminfrinLINTS = $(SRPT_OBJS:%.o=$(LINTS_DIR)/%.ln)
2f073ef2a21b1725addef84f318a2b11541e912aminfrinROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a511a29faf2ff7ead3b67680154a624effb31aafminfrinCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/srpt
a511a29faf2ff7ead3b67680154a624effb31aafminfrin
a511a29faf2ff7ead3b67680154a624effb31aafminfrin#
a511a29faf2ff7ead3b67680154a624effb31aafminfrin# Include common rules.
a511a29faf2ff7ead3b67680154a624effb31aafminfrin#
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrininclude ../Makefile.$(ARCHDIR)
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin#
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin# Define targets
9ea14ade0d235bec11e6c221b888a6630a0be849covener#
9ea14ade0d235bec11e6c221b888a6630a0be849covenerALL_TARGET = $(BINARY) $(SRC_CONFILE)
9ea14ade0d235bec11e6c221b888a6630a0be849covenerLINT_TARGET = $(MODULE).lint
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrin
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrin#
5b6a4b0e8d6d52394b68b51e0fa439d0eee16e37minfrin# Overrides and depends_on
5b6a4b0e8d6d52394b68b51e0fa439d0eee16e37minfrin#
5b6a4b0e8d6d52394b68b51e0fa439d0eee16e37minfrinMODSTUBS_DIR = $(OBJS_DIR)
5b6a4b0e8d6d52394b68b51e0fa439d0eee16e37minfrinLDFLAGS += -dy -Ndrv/stmf -Nmisc/ibtl -Nmisc/ibcm
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjim
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjimINC_PATH += -I$(UTSBASE)/common/io/comstar/port/srpt
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjimINC_PATH += -I$(UTSBASE)/common/sys
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrinC99MODE= -xc99=%all
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrinC99LMODE= -Xc99=%all
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin#
bbb08feeeef547b0908b16df6cbbb65da656b86fminfrin# Default build targets.
bbb08feeeef547b0908b16df6cbbb65da656b86fminfrin#
bbb08feeeef547b0908b16df6cbbb65da656b86fminfrin.KEEP_STATE:
bbb08feeeef547b0908b16df6cbbb65da656b86fminfrin
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrindef: $(DEF_DEPS)
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrinall: $(ALL_DEPS)
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrinclean: $(CLEAN_DEPS)
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrinclobber: $(CLOBBER_DEPS)
decb536ebd4b7b94c7450c2e1daa491943135abdminfrin
decb536ebd4b7b94c7450c2e1daa491943135abdminfrinlint: $(LINT_DEPS)
decb536ebd4b7b94c7450c2e1daa491943135abdminfrin
decb536ebd4b7b94c7450c2e1daa491943135abdminfrinmodlintlib: $(MODLINTLIB_DEPS)
2d2c5cedd0559093c6e88bd92702e369ef949336minfrin
2d2c5cedd0559093c6e88bd92702e369ef949336minfrinclean.lint: $(CLEAN_LINT_DEPS)
2d2c5cedd0559093c6e88bd92702e369ef949336minfrin
2d2c5cedd0559093c6e88bd92702e369ef949336minfrininstall: $(INSTALL_DEPS)
2d2c5cedd0559093c6e88bd92702e369ef949336minfrin
2b82678319a66fd9caad8827ca9b38d2412a5abdminfrin#
2b82678319a66fd9caad8827ca9b38d2412a5abdminfrin# Include common targets.
c0da461d68518e8f89f4070a709ba1e56381247cminfrin#
c0da461d68518e8f89f4070a709ba1e56381247cminfrininclude ../Makefile.targ
c0da461d68518e8f89f4070a709ba1e56381247cminfrin