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_ia/Makefile
+++ new/usr/src/uts/sparc/usb_ia/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.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # uts/sparc/usb_ia/Makefile
23 23
24 24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 +# Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 +#
27 29 # This makefile drives the production of the usb_ia driver kernel module.
28 30 # 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_ia
41 43 OBJECTS = $(USB_IA_OBJS:%=$(OBJS_DIR)/%)
42 44 LINTS = $(USB_IA_OBJS:%.o=$(LINTS_DIR)/%.ln)
43 45 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
44 46 WARLOCK_OUT = $(USB_IA_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 # depends on misc/usba
60 62 #
61 63 LDFLAGS += -dy -Nmisc/usba
62 64
63 65 #
64 66 # Define targets
65 67 #
66 68 ALL_TARGET = $(BINARY)
67 69 LINT_TARGET = $(MODULE).lint
68 70 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
69 71
70 72 .KEEP_STATE:
71 73
72 74 all: $(ALL_DEPS)
73 75
74 76 def: $(DEF_DEPS)
75 77
76 78 clean: $(CLEAN_DEPS)
77 79 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
78 80
79 81 clobber: $(CLOBBER_DEPS)
80 82 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
81 83
82 84 lint: $(LINT_DEPS)
83 85
84 86 modlintlib: $(MODLINTLIB_DEPS)
85 87
86 88 clean.lint: $(CLEAN_LINT_DEPS)
87 89
88 90 install: $(INSTALL_DEPS)
89 91
90 92 #
91 93 # Include common targets.
92 94 #
93 95 include $(UTSBASE)/sparc/Makefile.targ
94 96
95 97 #
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
96 98 # Defines for local commands.
97 99 #
98 100 WARLOCK = warlock
99 101 WLCC = wlcc
100 102 TOUCH = touch
101 103 TEST = test
102 104
103 105 #
104 106 # lock_lint rules
105 107 #
106 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
108 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
107 109 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
108 110 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
109 111 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
110 112
111 113 warlock: $(WARLOCK_OK) warlock_with_usba
112 114
113 115 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usb_ia.wlcmd warlock_ddi.files
114 116 $(WARLOCK) -c $(WLCMD_DIR)/usb_ia.wlcmd $(WARLOCK_OUT) \
115 117 -l ../warlock/ddi_dki_impl.ll
116 118 $(TOUCH) $@
117 119
118 120 %.ll: $(UTSBASE)/common/io/usb/usb_ia/%.c \
119 121 $(UTSBASE)/common/sys/usb/usb_ia/usb_iavar.h
120 122 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
121 123
122 124 warlock_with_usba: $(WLCMD_DIR)/usb_ia_with_usba.wlcmd $(WARLOCK_OUT) \
123 125 usba_files ohci_files ehci_files uhci_files warlock_ddi.files
124 126 $(WARLOCK) -c $(WLCMD_DIR)/usb_ia_with_usba.wlcmd \
125 127 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
126 128 $(WARLOCK_OUT) \
127 129 -l ../warlock/ddi_dki_impl.ll
128 130
129 131
130 132 usba_files:
131 133 @cd ../usba;pwd; $(MAKE) warlock
132 134
133 135 uhci_files:
134 136 @cd ../uhci;pwd; $(MAKE) warlock
135 137
136 138 ohci_files:
137 139 @cd ../ohci;pwd; $(MAKE) warlock
138 140
139 141 ehci_files:
140 142 @cd ../ehci;pwd; $(MAKE) warlock
141 143
142 144 warlock_ddi.files:
143 145 cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX