xref: /titanic_50/usr/src/uts/intel/hubd/Makefile (revision 7a286c471efbab8562f7655a82931904703fffe0)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# uts/intel/hubd/Makefile
24# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27#ident	"%Z%%M%	%I%	%E% SMI"
28#
29#	This makefile drives the production of the hubd driver kernel module.
30#
31
32#
33#	Path to the base of the uts directory tree (usually /usr/src/uts).
34#
35UTSBASE	= ../..
36
37
38#
39#	Define the module and object file sets.
40#
41SRCDIR		= $(UTSBASE)/common/io/usb/hubd
42CONFIGFILES	= config_map.conf
43ROOTETCUSB	= $(ROOT)/etc/usb
44
45SRCFILES	= $(CONFIGFILES:%=$(SRCDIR)/%)
46ROOTCONFIGFILES	= $(CONFIGFILES:%=$(ROOTETCUSB)/%)
47
48$(ROOTCONFIGFILES):=	FILEMODE = $(CFILEMODE)
49
50#
51#	Define the module and object file sets.
52#
53MODULE		= hubd
54OBJECTS		= $(HUBD_OBJS:%=$(OBJS_DIR)/%)
55LINTS		= $(HUBD_OBJS:%.o=$(LINTS_DIR)/%.ln)
56ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
57
58#
59#	Include common rules.
60#
61include $(UTSBASE)/intel/Makefile.intel
62
63#
64#	Define targets
65#
66ALL_TARGET	= $(BINARY)
67LINT_TARGET	= $(MODULE).lint
68INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
69
70#
71#	Override defaults to build a unique, local modstubs.o.
72#
73MODSTUBS_DIR	 = $(OBJS_DIR)
74CLEANFILES	+= $(MODSTUBS_O)
75
76#
77# depends on misc/usba
78#
79LDFLAGS         += -dy -Nmisc/usba
80
81#
82#	Default build targets.
83#
84.KEEP_STATE:
85
86def:		$(DEF_DEPS)
87
88all:		$(ALL_DEPS)
89
90clean:		$(CLEAN_DEPS)
91
92clobber:	$(CLOBBER_DEPS)
93
94lint:		$(LINT_DEPS)
95
96modlintlib:	$(MODLINTLIB_DEPS)
97
98clean.lint:	$(CLEAN_LINT_DEPS)
99
100install:	$(INSTALL_DEPS) $(ROOTCONFIGFILES)
101
102$(ROOTETCUSB)/%: $(ROOTETCUSB) $(SRCDIR)/%
103	$(INS.file)
104
105#
106#	Include common targets.
107#
108include $(UTSBASE)/intel/Makefile.targ
109
110