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/usbprn/Makefile
+++ new/usr/src/uts/sparc/usbprn/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>
25 26 #
26 27 # This makefile drives the production of the usbprn kernel driver.
27 28 #
28 29 # sparc architecture dependent
29 30 #
30 31 # uts/sparc/usbprn/Makefile
31 32 #
32 33 # Path to the base of the uts directory tree (usually /usr/src/uts).
33 34 #
34 35 UTSBASE = ../..
35 36
36 37 #
37 38 # Define the module and object file sets.
38 39 #
39 40 MODULE = usbprn
40 41 OBJECTS = $(USBPRN_OBJS:%=$(OBJS_DIR)/%)
41 42 LINTS = $(USBPRN_OBJS:%.o=$(LINTS_DIR)/%.ln)
42 43 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
43 44 WARLOCK_OUT = $(USBPRN_OBJS:%.o=%.ll)
44 45 WARLOCK_OK = $(MODULE).ok
45 46 WLCMD_DIR = $(UTSBASE)/common/io/warlock
46 47
47 48 #
48 49 # Include common rules.
49 50 #
50 51 include $(UTSBASE)/sparc/Makefile.sparc
51 52
52 53 #
53 54 # lint pass one enforcement
54 55 #
55 56 CFLAGS += $(CCVERBOSE)
56 57
57 58 #
58 59 # depends on misc/usba
59 60 LDFLAGS += -dy -Nmisc/usba
60 61
61 62 #
62 63 # Define targets
63 64 #
64 65 ALL_TARGET = $(BINARY)
65 66 LINT_TARGET = $(MODULE).lint
66 67 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
67 68
68 69 .KEEP_STATE:
69 70
70 71 all: $(ALL_DEPS)
71 72
72 73 def: $(DEF_DEPS)
73 74
74 75 clean: $(CLEAN_DEPS)
75 76 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
76 77
77 78 clobber: $(CLOBBER_DEPS)
78 79 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
79 80
80 81 lint: $(LINT_DEPS)
81 82
82 83 modlintlib: $(MODLINTLIB_DEPS)
83 84
84 85 clean.lint: $(CLEAN_LINT_DEPS)
85 86
86 87 install: $(INSTALL_DEPS)
87 88
88 89 #
89 90 # Include common targets.
90 91 #
91 92 include $(UTSBASE)/sparc/Makefile.targ
92 93
93 94 #
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
94 95 # Defines for local commands.
95 96 #
96 97 WARLOCK = warlock
97 98 WLCC = wlcc
98 99 TOUCH = touch
99 100 TEST = test
100 101
101 102 #
102 103 # lock_lint rules
103 104 #
104 -USBA_FILES = $(USBA_WITHOUT_WUSB_OBJS:%.o=../usba/%.ll)
105 +USBA_FILES = $(USBA_OBJS:%.o=../usba/%.ll)
105 106 UHCI_FILES = $(UHCI_OBJS:%.o=../uhci/%.ll)
106 107 OHCI_FILES = $(OHCI_OBJS:%.o=../ohci/%.ll)
107 108 EHCI_FILES = $(EHCI_OBJS:%.o=../ehci/%.ll)
108 109
109 110 warlock: $(WARLOCK_OK) warlock_with_usba
110 111
111 112 $(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/usbprn.wlcmd warlock_ddi.files
112 113 $(WARLOCK) -c $(WLCMD_DIR)/usbprn.wlcmd $(WARLOCK_OUT) \
113 114 -l ../warlock/ddi_dki_impl.ll
114 115 $(TOUCH) $@
115 116
116 117 %.ll: $(UTSBASE)/common/io/usb/clients/printer/%.c \
117 118 $(UTSBASE)/common/sys/usb/clients/printer/usbprn.h
118 119 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
119 120
120 121 warlock_with_usba: $(WLCMD_DIR)/usbprn_with_usba.wlcmd $(WARLOCK_OUT) \
121 122 usba_files ohci_files ehci_files uhci_files warlock_ddi.files
122 123 $(WARLOCK) -c $(WLCMD_DIR)/usbprn_with_usba.wlcmd \
123 124 $(USBA_FILES) $(OHCI_FILES) $(EHCI_FILES) $(UHCI_FILES) \
124 125 $(WARLOCK_OUT) \
125 126 -l ../warlock/ddi_dki_impl.ll
126 127
127 128 usba_files:
128 129 @cd ../usba;pwd; $(MAKE) warlock
129 130
130 131 ohci_files:
131 132 @cd ../ohci;pwd; $(MAKE) warlock
132 133
133 134 uhci_files:
134 135 @cd ../uhci;pwd; $(MAKE) warlock
135 136
136 137 ehci_files:
137 138 @cd ../ehci;pwd; $(MAKE) warlock
138 139
139 140 warlock_ddi.files:
140 141 cd ../warlock; pwd; $(MAKE) warlock
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX