Print this page
4027 remove CLOSED_BUILD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sparc/ses/Makefile
+++ new/usr/src/uts/sparc/ses/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
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/ses/Makefile
23 23 #
24 24 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
27 27 #
28 28 # This makefile drives the production of the ses driver kernel module.
29 29 #
30 30 # sparc architecture dependent
31 31 #
32 32
33 33 #
34 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 35 #
36 36 UTSBASE = ../..
37 37
38 38 #
39 39 # Define the module and object file sets.
40 40 #
41 41 MODULE = ses
42 42 OBJECTS = $(SES_OBJS:%=$(OBJS_DIR)/%)
43 43 LINTS = $(SES_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 44 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 45 CONF_SRCDIR = $(UTSBASE)/sun/io/scsi/targets
46 46 WARLOCK_OUT = $(SES_OBJS:%.o=%.ll)
47 47 WARLOCK_OK = $(MODULE).ok
48 48 WLCMD_DIR = $(UTSBASE)/common/io/warlock
49 49
50 50 #
51 51 # Include common rules.
52 52 #
53 53 include $(UTSBASE)/sparc/Makefile.sparc
54 54
55 55 #
56 56 # Define targets
57 57 #
58 58 ALL_TARGET = $(BINARY) $(SRC_CONFILE)
59 59 LINT_TARGET = $(MODULE).lint
60 60 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
61 61 CLEANFILES += $(WARLOCK_TARGETS)
62 62
63 63 #
64 64 # Define dependency on scsi
65 65 #
66 66 LDFLAGS += -dy -N misc/scsi
67 67
68 68 #
69 69 # For now, disable these lint checks; maintainers should endeavor
70 70 # to investigate and remove these for maximum lint coverage.
71 71 # Please do not carry these forward to new Makefiles.
72 72 #
73 73 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
74 74 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
75 75 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
76 76
77 77 #
78 78 # Default build targets.
79 79 #
80 80 .KEEP_STATE:
81 81
82 82 def: $(DEF_DEPS)
83 83
84 84 all: $(ALL_DEPS)
85 85
86 86 clean: $(CLEAN_DEPS)
87 87 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
88 88
89 89 clobber: $(CLOBBER_DEPS)
90 90 $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
91 91
92 92 modlintlib: $(MODLINTLIB_DEPS) lint64
93 93
94 94 clean.lint: $(CLEAN_LINT_DEPS)
95 95
96 96 install: $(INSTALL_DEPS)
97 97
98 98 #
99 99 # Include common targets.
100 100 #
101 101 include $(UTSBASE)/sparc/Makefile.targ
102 102
103 103
104 104 #
105 105 # Defines for local commands.
106 106 #
107 107 WARLOCK = warlock
108 108 WLCC = wlcc
109 109 TOUCH = touch
110 110 TEST = test
↓ open down ↓ |
110 lines elided |
↑ open up ↑ |
111 111
112 112 #
113 113 # Warlock targets
114 114 #
115 115 # XXX FIX ME. this can be improved quite a bit
116 116
117 117 SES_FILES = $(MODULE).ll
118 118 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
119 119
120 120 WARLOCK_TARGETS = $(WARLOCK_OK) warlock_with_esp.ok warlock_with_fas.ok
121 -$(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_isp.ok warlock_with_glm.ok
122 121
123 122 warlock: $(WARLOCK_TARGETS)
124 123
125 124 $(WARLOCK_OK): $(WLCMD_DIR)/$(MODULE).wlcmd $(SES_FILES)
126 125 @cd ../warlock; $(MAKE) warlock
127 126 @cd ../scsi; $(MAKE) warlock
128 127 $(WARLOCK) -c $(WLCMD_DIR)/$(MODULE).wlcmd $(SES_FILES) ../warlock/scsi.ll \
129 128 -l ../warlock/ddi_dki_impl.ll \
130 129 $(SCSI_FILES)
131 130 @ $(TOUCH) $@
132 131
133 132 warlock_with_esp.ok: $(WLCMD_DIR)/ses_with_esp.wlcmd $(SES_FILES)
134 133 @cd ../warlock; $(MAKE) warlock
135 134 @cd ../scsi; $(MAKE) warlock
136 135 @cd ../esp; $(MAKE) warlock;
137 136 $(WARLOCK) -c $(WLCMD_DIR)/ses_with_esp.wlcmd $(SES_FILES) ../esp/esp \
138 137 ../warlock/scsi.ll \
139 138 -l ../warlock/ddi_dki_impl.ll \
140 139 $(SCSI_FILES)
141 140 @ $(TOUCH) $@
142 141
143 142 warlock_with_fas.ok: $(WLCMD_DIR)/ses_with_fas.wlcmd $(SES_FILES)
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
144 143 @cd ../warlock; $(MAKE) warlock
145 144 @cd ../scsi; $(MAKE) warlock
146 145 @cd ../fas; $(MAKE) warlock;
147 146 $(WARLOCK) -c $(WLCMD_DIR)/ses_with_fas.wlcmd $(SES_FILES) \
148 147 ../fas/fas ../fas/fas_callbacks \
149 148 ../warlock/scsi.ll \
150 149 -l ../warlock/ddi_dki_impl.ll \
151 150 $(SCSI_FILES)
152 151 @ $(TOUCH) $@
153 152
154 -warlock_with_isp.ok: $(WLCMD_DIR)/ses_with_isp.wlcmd $(SES_FILES)
155 - @cd ../warlock; $(MAKE) warlock
156 - @cd ../scsi; $(MAKE) warlock
157 - @cd $(CLOSED)/uts/sparc/isp; $(MAKE) warlock;
158 - $(WARLOCK) -c $(WLCMD_DIR)/ses_with_isp.wlcmd $(SES_FILES) \
159 - $(CLOSED)/uts/sparc/isp/isp \
160 - ../warlock/scsi.ll \
161 - -l ../warlock/ddi_dki_impl.ll \
162 - $(SCSI_FILES)
163 - @ $(TOUCH) $@
164 -
165 -warlock_with_glm.ok: $(WLCMD_DIR)/ses_with_glm.wlcmd $(SES_FILES)
166 - @cd ../warlock; $(MAKE) warlock
167 - @cd ../scsi; $(MAKE) warlock
168 - @cd $(CLOSED)/uts/sparc/glm; $(MAKE) warlock;
169 - $(WARLOCK) -c $(WLCMD_DIR)/ses_with_glm.wlcmd $(SES_FILES) \
170 - $(CLOSED)/uts/sparc/glm/glm \
171 - ../warlock/scsi.ll \
172 - -l ../warlock/ddi_dki_impl.ll \
173 - $(SCSI_FILES)
174 - @ $(TOUCH) $@
175 -
176 153 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
177 154 $(WLCC) $(CPPFLAGS) -o $@ $<
178 155
179 156
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX