121 #
122 # Defines for local commands.
123 #
124 WARLOCK = warlock
125 WLCC = wlcc
126 TOUCH = touch
127 TEST = test
128
129 #
130 # Warlock targets
131 #
132 # Note that in warlock_with_{esp,isp} it is important to load sd.ll
133 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
134 # and warlock can only handle one extern function by a given name;
135 # any loaded after the first are ignored.
136
137 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
138 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
139
140 WARLOCK_TARGETS = warlock_alone
141 $(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_mpt warlock_with_glm
142
143 warlock: $(WARLOCK_TARGETS)
144
145 warlock_alone: $(WARLOCK_OK)
146
147 $(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
148 warlock_ddi.files cmlb_files
149 $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
150 $(CMLB_FILES) \
151 -l ../warlock/ddi_dki_impl.ll
152 $(TOUCH) $@
153
154 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
155 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
156
157 warlock_with_glm: $(WLCMD_DIR)/sd_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \
158 glm_files warlock_ddi.files cmlb_files
159 $(WARLOCK) -c $(WLCMD_DIR)/sd_with_glm.wlcmd \
160 $(WARLOCK_OUT) \
161 $(CLOSED)/uts/intel/glm/*.ll \
162 $(SCSI_FILES) $(CMLB_FILES) \
163 -l ../warlock/ddi_dki_impl.ll
164
165 warlock_with_mpt: $(WLCMD_DIR)/sd_with_mpt.wlcmd $(WARLOCK_OUT) scsi_files \
166 mpt_files warlock_ddi.files cmlb_files
167 $(WARLOCK) -c $(WLCMD_DIR)/sd_with_mpt.wlcmd \
168 $(WARLOCK_OUT) \
169 $(CLOSED)/uts/intel/mpt/*.ll \
170 $(SCSI_FILES) $(CMLB_FILES) \
171 -l ../warlock/ddi_dki_impl.ll
172
173 glm_files:
174 @cd $(CLOSED)/uts/intel/glm; pwd; $(MAKE) warlock
175
176 mpt_files:
177 @cd $(CLOSED)/uts/intel/mpt; pwd; $(MAKE) warlock
178
179 cmlb_files:
180 @cd ../cmlb; pwd; $(MAKE) warlock
181
182 scsi_files:
183 @cd ../scsi; pwd; $(MAKE) warlock
184
185 warlock_ddi.files:
186 @cd ../warlock; pwd; $(MAKE) warlock
|
121 #
122 # Defines for local commands.
123 #
124 WARLOCK = warlock
125 WLCC = wlcc
126 TOUCH = touch
127 TEST = test
128
129 #
130 # Warlock targets
131 #
132 # Note that in warlock_with_{esp,isp} it is important to load sd.ll
133 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
134 # and warlock can only handle one extern function by a given name;
135 # any loaded after the first are ignored.
136
137 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
138 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
139
140 WARLOCK_TARGETS = warlock_alone
141
142 warlock: $(WARLOCK_TARGETS)
143
144 warlock_alone: $(WARLOCK_OK)
145
146 $(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
147 warlock_ddi.files cmlb_files
148 $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
149 $(CMLB_FILES) \
150 -l ../warlock/ddi_dki_impl.ll
151 $(TOUCH) $@
152
153 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
154 $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
155
156 cmlb_files:
157 @cd ../cmlb; pwd; $(MAKE) warlock
158
159 scsi_files:
160 @cd ../scsi; pwd; $(MAKE) warlock
161
162 warlock_ddi.files:
163 @cd ../warlock; pwd; $(MAKE) warlock
|