Print this page
4027 remove CLOSED_BUILD
4028 remove CLOSED_IS_PRESENT
4029 remove tonic build bits
Reviewed by: Andy Stormont <andyjstormont@gmail.com>


 118 #
 119 #       Defines for local commands.
 120 #
 121 WARLOCK         = warlock
 122 WLCC            = wlcc
 123 TOUCH           = touch
 124 TEST            = test
 125 
 126 #
 127 # Warlock targets
 128 #
 129 # Note that in warlock_with_{esp,isp} it is important to load sd.ll
 130 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
 131 # and warlock can only handle one extern function by a given name;
 132 # any loaded after the first are ignored.
 133 
 134 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
 135 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
 136 
 137 WARLOCK_TARGETS = warlock_alone warlock_with_esp warlock_with_fas
 138 $(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_isp warlock_with_glm \
 139         warlock_with_uata warlock_with_mpt
 140 
 141 warlock: $(WARLOCK_TARGETS)
 142 
 143 warlock_alone: $(WARLOCK_OK)
 144 
 145 $(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
 146         warlock_ddi.files cmlb_files
 147         $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
 148                 $(CMLB_FILES) \
 149                 -l ../warlock/ddi_dki_impl.ll
 150         $(TOUCH) $@
 151 
 152 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
 153         $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
 154 
 155 warlock_with_esp: $(WLCMD_DIR)/sd_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
 156         esp_files warlock_ddi.files cmlb_files
 157         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_esp.wlcmd \
 158                 $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES) $(CMLB_FILES) \
 159                 -l ../warlock/ddi_dki_impl.ll
 160 
 161 warlock_with_fas: $(WLCMD_DIR)/sd_with_fas.wlcmd $(WARLOCK_OUT) scsi_files \
 162         fas_files warlock_ddi.files cmlb_files
 163         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_fas.wlcmd \
 164                 $(WARLOCK_OUT) ../fas/fas \
 165                 ../fas/fas_callbacks \
 166                 $(SCSI_FILES) $(CMLB_FILES) \
 167                 -l ../warlock/ddi_dki_impl.ll
 168 
 169 warlock_with_isp: $(WLCMD_DIR)/sd_with_isp.wlcmd $(WARLOCK_OUT) scsi_files \
 170         isp_files warlock_ddi.files cmlb_files
 171         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_isp.wlcmd \
 172                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/isp/isp $(SCSI_FILES) \
 173                 $(CMLB_FILES) \
 174                 -l ../warlock/ddi_dki_impl.ll
 175 
 176 warlock_with_glm: $(WLCMD_DIR)/sd_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \
 177         glm_files warlock_ddi.files cmlb_files
 178         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_glm.wlcmd \
 179                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/glm/glm $(SCSI_FILES) \
 180                 $(CMLB_FILES) \
 181                 -l ../warlock/ddi_dki_impl.ll
 182 
 183 warlock_with_uata: $(WLCMD_DIR)/sd_with_uata.wlcmd $(WARLOCK_OUT) scsi_files \
 184         uata_files warlock_ddi.files cmlb_files
 185         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_uata.wlcmd \
 186                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/uata/*.ll $(SCSI_FILES) \
 187                 $(CMLB_FILES) \
 188                 -l ../warlock/ddi_dki_impl.ll
 189 
 190 warlock_with_mpt: $(WLCMD_DIR)/sd_with_mpt.wlcmd $(WARLOCK_OUT) scsi_files \
 191         mpt_files warlock_ddi.files cmlb_files
 192         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_mpt.wlcmd \
 193                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/mpt/*.ll $(SCSI_FILES)  \
 194                 $(CMLB_FILES) \
 195                 -l ../warlock/ddi_dki_impl.ll
 196 
 197 cmlb_files:
 198         @cd ../cmlb; pwd; $(MAKE) warlock
 199 
 200 
 201 scsi_files:
 202         @cd ../scsi; pwd; $(MAKE) warlock
 203 
 204 esp_files:
 205         @cd ../esp; pwd; $(MAKE) warlock
 206 
 207 fas_files:
 208         @cd ../fas; pwd; $(MAKE) warlock
 209 
 210 isp_files:
 211         @cd $(CLOSED)/uts/sparc/isp; pwd; $(MAKE) warlock
 212 
 213 glm_files:
 214         @cd $(CLOSED)/uts/sparc/glm; pwd; $(MAKE) warlock
 215 
 216 uata_files:
 217         @cd $(CLOSED)/uts/sparc/uata; pwd; $(MAKE) warlock
 218 
 219 mpt_files:
 220         @cd $(CLOSED)/uts/sparc/mpt; pwd; $(MAKE) warlock
 221 
 222 warlock_ddi.files:
 223         @cd ../warlock; pwd; $(MAKE) warlock


 118 #
 119 #       Defines for local commands.
 120 #
 121 WARLOCK         = warlock
 122 WLCC            = wlcc
 123 TOUCH           = touch
 124 TEST            = test
 125 
 126 #
 127 # Warlock targets
 128 #
 129 # Note that in warlock_with_{esp,isp} it is important to load sd.ll
 130 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
 131 # and warlock can only handle one extern function by a given name;
 132 # any loaded after the first are ignored.
 133 
 134 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
 135 CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
 136 
 137 WARLOCK_TARGETS = warlock_alone warlock_with_esp warlock_with_fas


 138 
 139 warlock: $(WARLOCK_TARGETS)
 140 
 141 warlock_alone: $(WARLOCK_OK)
 142 
 143 $(WARLOCK_OK): $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) scsi_files \
 144         warlock_ddi.files cmlb_files
 145         $(WARLOCK) -c $(WLCMD_DIR)/sd.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
 146                 $(CMLB_FILES) \
 147                 -l ../warlock/ddi_dki_impl.ll
 148         $(TOUCH) $@
 149 
 150 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
 151         $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
 152 
 153 warlock_with_esp: $(WLCMD_DIR)/sd_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
 154         esp_files warlock_ddi.files cmlb_files
 155         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_esp.wlcmd \
 156                 $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES) $(CMLB_FILES) \
 157                 -l ../warlock/ddi_dki_impl.ll
 158 
 159 warlock_with_fas: $(WLCMD_DIR)/sd_with_fas.wlcmd $(WARLOCK_OUT) scsi_files \
 160         fas_files warlock_ddi.files cmlb_files
 161         $(WARLOCK) -c $(WLCMD_DIR)/sd_with_fas.wlcmd \
 162                 $(WARLOCK_OUT) ../fas/fas \
 163                 ../fas/fas_callbacks \
 164                 $(SCSI_FILES) $(CMLB_FILES) \
 165                 -l ../warlock/ddi_dki_impl.ll
 166 




























 167 cmlb_files:
 168         @cd ../cmlb; pwd; $(MAKE) warlock
 169 
 170 
 171 scsi_files:
 172         @cd ../scsi; pwd; $(MAKE) warlock
 173 
 174 esp_files:
 175         @cd ../esp; pwd; $(MAKE) warlock
 176 
 177 fas_files:
 178         @cd ../fas; pwd; $(MAKE) warlock
 179 












 180 warlock_ddi.files:
 181         @cd ../warlock; pwd; $(MAKE) warlock