Print this page
5832 EOF wireless usb (aka UWB)
Reviewed by: TBD
Reviewed by: TBD
Approved by: TBD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/usb_as/Makefile
+++ new/usr/src/uts/intel/usb_as/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright 2014 Garrett D'Amore <garrett@damore.org>
26 +#
25 27 # uts/sparc/usb_as/Makefile
26 28 #
27 29 # This makefile drives the production of the usb_as driver
28 30 # kernel module. Intel architecture dependent
29 31 #
30 32
31 33
32 34 #
33 35 # Path to the base of the uts directory tree (usually /usr/src/uts).
34 36 #
35 37 UTSBASE = ../..
36 38
37 39 #
38 40 # Define the module and object file sets.
39 41 #
40 42 MODULE = usb_as
41 43 OBJECTS = $(USB_AS_OBJS:%=$(OBJS_DIR)/%)
42 44 LINTS = $(USB_AS_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 45 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
44 46 WARLOCK_OUT = $(USB_AS_OBJS:%.o=%.ll)
45 47 WARLOCK_OK = $(MODULE).ok
46 48 WLCMD_DIR = $(UTSBASE)/common/io/warlock
47 49
48 50 #
49 51 # Include common rules.
50 52 #
51 53 include $(UTSBASE)/intel/Makefile.intel
52 54
53 55 #
54 56 # Define targets
55 57 #
56 58 ALL_TARGET = $(BINARY)
57 59 LINT_TARGET = $(MODULE).lint
58 60 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
59 61
60 62 #
61 63 # Override defaults to build a unique, local modstubs.o.
62 64 #
63 65 MODSTUBS_DIR = $(OBJS_DIR)
64 66 CLEANFILES += $(MODSTUBS_O)
65 67
66 68 LDFLAGS += -dy -Nmisc/usba -Ndrv/usb_ac
67 69
68 70 #
69 71 # For now, disable these lint checks; maintainers should endeavor
70 72 # to investigate and remove these for maximum lint coverage.
71 73 # Please do not carry these forward to new Makefiles.
72 74 #
73 75 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
74 76
75 77 CERRWARN += -_gcc=-Wno-unused-label
76 78
77 79 #
78 80 # Default build targets.
79 81 #
80 82 .KEEP_STATE:
81 83
82 84 def: $(DEF_DEPS)
83 85
84 86 all: $(ALL_DEPS)
85 87
86 88 clean: $(CLEAN_DEPS)
87 89 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
88 90
89 91 clobber: $(CLOBBER_DEPS)
90 92 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91 93
92 94 lint: $(LINT_DEPS)
93 95
94 96 modlintlib: $(MODLINTLIB_DEPS)
95 97
96 98 clean.lint: $(CLEAN_LINT_DEPS)
97 99
98 100 install: $(INSTALL_DEPS)
99 101
100 102 #
101 103 # Include common targets.
102 104 #
103 105 include $(UTSBASE)/intel/Makefile.targ
104 106
105 107 #
106 108 # Defines for local commands.
↓ open down ↓ |
72 lines elided |
↑ open up ↑ |
107 109 #
108 110 WARLOCK = warlock
109 111 WLCC = wlcc
110 112 TOUCH = touch
111 113 TEST = test
112 114
113 115 #
114 116 # lock_lint rules
115 117 #
116 118 USB_AS_FILES = $(MODULE).ll
117 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
119 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
118 120 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
119 121 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
120 122 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
121 123
122 124 # Warlock targets
123 125 #
124 126 warlock: $(WARLOCK_OK)
125 127
126 128 $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
127 129 warlock_standalone warlock_usba.files warlock_with_usba
128 130 $(TOUCH) $(WARLOCK_OK)
129 131
130 132
131 133 warlock_with_usba: $(WLCMD_DIR)/usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
132 134 warlock_ddi.files warlock_ohci.files warlock_usba.files \
133 135 warlock_ehci.files warlock_uhci.files
134 136 $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
135 137 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
136 138 $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
137 139
138 140 warlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_as.wlcmd
139 141 $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
140 142 -l ../warlock/ddi_dki_impl.ll
141 143
142 144 %.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
143 145 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
144 146
145 147 warlock_usba.files:
146 148 @cd ../usba;pwd; $(MAKE) warlock
147 149
148 150 warlock_ohci.files:
149 151 @cd ../ohci;pwd; $(MAKE) warlock
150 152
151 153 warlock_uhci.files:
152 154 @cd ../uhci;pwd; $(MAKE) warlock
153 155
154 156 warlock_ehci.files:
155 157 @cd ../ehci;pwd; $(MAKE) warlock
156 158
157 159 warlock_ddi.files:
158 160 @cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX