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/sparc/usb_as/Makefile
+++ new/usr/src/uts/sparc/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_audio driver
28 30 # kernel module. sparc 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)/sparc/Makefile.sparc
52 54
53 55 #
54 56 # lint pass one enforcement
55 57 #
56 58 CFLAGS += $(CCVERBOSE)
57 59
58 60 #
59 61 LDFLAGS += -dy -Nmisc/usba -Ndrv/usb_ac
60 62
61 63 #
62 64 # Define targets
63 65 #
64 66 ALL_TARGET = $(BINARY)
65 67 LINT_TARGET = $(MODULE).lint
66 68 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
67 69
68 70 CERRWARN += -_gcc=-Wno-unused-label
69 71
70 72 #
71 73 # For now, disable these lint checks; maintainers should endeavor
72 74 # to investigate and remove these for maximum lint coverage.
73 75 # Please do not carry these forward to new Makefiles.
74 76 #
75 77 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
76 78
77 79 .KEEP_STATE:
78 80
79 81 all: $(ALL_DEPS)
80 82
81 83 def: $(DEF_DEPS)
82 84
83 85 clean: $(CLEAN_DEPS)
84 86 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
85 87
86 88 clobber: $(CLOBBER_DEPS)
87 89 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
88 90
89 91 lint: $(LINT_DEPS)
90 92
91 93 modlintlib: $(MODLINTLIB_DEPS)
92 94
93 95 clean.lint: $(CLEAN_LINT_DEPS)
94 96
95 97 install: $(INSTALL_DEPS)
96 98
97 99 #
98 100 # Include common targets.
99 101 #
100 102 include $(UTSBASE)/sparc/Makefile.targ
101 103
102 104 #
↓ open down ↓ |
68 lines elided |
↑ open up ↑ |
103 105 # Defines for local commands.
104 106 #
105 107 WARLOCK = warlock
106 108 WLCC = wlcc
107 109 TOUCH = touch
108 110 TEST = test
109 111
110 112 #
111 113 # lock_lint rules
112 114 #
113 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
115 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
114 116 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
115 117 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
116 118 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
117 119
118 120
119 121 #
120 122 # Warlock targets
121 123 #
122 124 warlock: $(WARLOCK_OK)
123 125
124 126 $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
125 127 warlock_standalone warlock_usba.files warlock_with_usba
126 128 $(TOUCH) $(WARLOCK_OK)
127 129
128 130
129 131 warlock_with_usba: $(WLCMD_DIR)/usb_as_with_usba.wlcmd $(WARLOCK_OUT) \
130 132 warlock_ddi.files warlock_ohci.files warlock_usba.files \
131 133 warlock_ehci.files warlock_uhci.files
132 134 $(WARLOCK) -c $(WLCMD_DIR)/usb_as_with_usba.wlcmd \
133 135 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
134 136 $(WARLOCK_OUT) -l ../warlock/ddi_dki_impl.ll
135 137
136 138 warlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/usb_as.wlcmd
137 139 $(WARLOCK) -c $(WLCMD_DIR)/usb_as.wlcmd $(WARLOCK_OUT) \
138 140 -l ../warlock/ddi_dki_impl.ll
139 141
140 142 %.ll: $(UTSBASE)/common/io/usb/clients/audio/usb_as/%.c
141 143 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
142 144
143 145
144 146 warlock_usba.files:
145 147 @cd ../usba;pwd; $(MAKE) warlock
146 148
147 149 warlock_ohci.files:
148 150 @cd ../ohci;pwd; $(MAKE) warlock
149 151
150 152 warlock_uhci.files:
151 153 @cd ../uhci;pwd; $(MAKE) warlock
152 154
153 155 warlock_ehci.files:
154 156 @cd ../ehci;pwd; $(MAKE) warlock
155 157
156 158 warlock_ddi.files:
157 159 @cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX