4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # uts/intel/uhci/Makefile
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # This makefile drives the production of the uhci driver kernel module.
31 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 # Define the module and object file sets.
39 OBJECTS
= $(UHCI_OBJS
:%=$(OBJS_DIR
)/%)
40 LINTS
= $(UHCI_OBJS
:%.o
=$(LINTS_DIR
)/%.ln
)
41 ROOTMODULE
= $(ROOT_DRV_DIR
)/$(MODULE
)
42 CONF_SRCDIR
= $(UTSBASE
)/common
/io
/usb
/hcd
/uhci
43 WARLOCK_OUT
= $(UHCI_OBJS
:%.o
=%.ll
)
44 WARLOCK_OK
= $(MODULE
).ok
45 WLCMD_DIR
= $(UTSBASE
)/common
/io
/warlock
48 # Include common rules.
50 include $(UTSBASE
)/intel
/Makefile.intel
55 ALL_TARGET
= $(BINARY
) $(SRC_CONFFILE
)
56 LINT_TARGET
= $(MODULE
).lint
57 INSTALL_TARGET
= $(BINARY
) $(ROOTMODULE
) $(ROOT_CONFFILE
)
60 # Override defaults to build a unique, local modstubs.o.
62 MODSTUBS_DIR
= $(OBJS_DIR
)
63 CLEANFILES
+= $(MODSTUBS_O
)
66 # depends on misc/usba
68 LDFLAGS
+= -dy
-Nmisc
/usba
71 # For now, disable these lint checks; maintainers should endeavor
72 # to investigate and remove these for maximum lint coverage.
73 # Please do not carry these forward to new Makefiles.
75 LINTTAGS
+= -erroff
=E_BAD_PTR_CAST_ALIGN
77 CERRWARN
+= -_gcc
=-Wno-uninitialized
80 # Default build targets.
89 $(RM
) $(WARLOCK_OUT
) $(WARLOCK_OK
)
91 clobber: $(CLOBBER_DEPS
)
92 $(RM
) $(WARLOCK_OUT
) $(WARLOCK_OK
)
96 modlintlib
: $(MODLINTLIB_DEPS
)
98 clean.lint
: $(CLEAN_LINT_DEPS
)
100 install: $(INSTALL_DEPS
)
103 # Include common targets.
105 include $(UTSBASE
)/intel
/Makefile.targ
108 # Defines for local commands.
118 USBA_FILES
= $(USBA_OBJS
:%.o
= -l ..
/usba
/%.ll
)
120 warlock
: $(WARLOCK_OK
)
122 $(WARLOCK_OK
): $(WARLOCK_OUT
) $(WLCMD_DIR
)/uhci.wlcmd warlock_ddi.files \
124 $(WARLOCK
) -c
$(WLCMD_DIR
)/uhci.wlcmd
$(WARLOCK_OUT
) \
126 -l ..
/warlock
/ddi_dki_impl.ll
129 %.ll
: $(UTSBASE
)/common
/io
/usb
/hcd
/uhci
/%.c
130 $(WLCC
) $(CPPFLAGS
) -DDEBUG
-o
$@
$<
133 @cd ..
/warlock
; pwd
; $(MAKE
) warlock
136 @cd ..
/usba
; pwd
; $(MAKE
) warlock