Print this page
4027 remove CLOSED_BUILD


 110 
 111 #
 112 #       Defines for local commands.
 113 #
 114 WARLOCK         = warlock
 115 WLCC            = wlcc
 116 TOUCH           = touch
 117 TEST            = test
 118 
 119 #
 120 # Warlock targets
 121 #
 122 # Note that in warlock_with_{esp,isp} it is important to load st.ll
 123 # before {isp,esp}.ll; the reason is that both have _init/_info/_fini
 124 # and warlock can only handle one extern function by a given name;
 125 # any loaded after the first are ignored.
 126 
 127 SCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
 128 
 129 WARLOCK_TARGETS =  warlock_alone warlock_with_esp warlock_with_fas
 130 $(CLOSED_BUILD)WARLOCK_TARGETS += warlock_with_isp warlock_with_glm
 131 
 132 warlock: $(WARLOCK_TARGETS)
 133 
 134 warlock_alone: $(WARLOCK_OK)
 135 
 136 warlock_with_esp: $(WLCMD_DIR)/st_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
 137         esp_files warlock_ddi.files
 138         $(WARLOCK) -c $(WLCMD_DIR)/st_with_esp.wlcmd \
 139                 $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES)  \
 140                 -l ../warlock/ddi_dki_impl.ll
 141 
 142 warlock_with_fas: $(WLCMD_DIR)/st_with_fas.wlcmd $(WARLOCK_OUT) scsi_files \
 143         fas_files warlock_ddi.files
 144         $(WARLOCK) -c $(WLCMD_DIR)/st_with_fas.wlcmd \
 145                 $(WARLOCK_OUT) \
 146                 ../fas/fas ../fas/fas_callbacks \
 147                 $(SCSI_FILES)  \
 148                 -l ../warlock/ddi_dki_impl.ll
 149 
 150 warlock_with_isp: $(WLCMD_DIR)/st_with_isp.wlcmd $(WARLOCK_OUT) scsi_files \
 151         isp_files warlock_ddi.files
 152         $(WARLOCK) -c $(WLCMD_DIR)/st_with_isp.wlcmd \
 153                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/isp/isp $(SCSI_FILES)  \
 154                 -l ../warlock/ddi_dki_impl.ll
 155 
 156 warlock_with_glm: $(WLCMD_DIR)/st_with_glm.wlcmd $(WARLOCK_OUT) scsi_files \
 157         glm_files warlock_ddi.files
 158         $(WARLOCK) -c $(WLCMD_DIR)/st_with_glm.wlcmd \
 159                 $(WARLOCK_OUT) $(CLOSED)/uts/sparc/glm/glm $(SCSI_FILES) \
 160                 -l ../warlock/ddi_dki_impl.ll
 161 
 162 scsi_files:
 163         @cd ../scsi; pwd; $(MAKE) warlock
 164 
 165 esp_files:
 166         @cd ../esp; pwd; $(MAKE) warlock
 167 
 168 fas_files:
 169         @cd ../fas; pwd; $(MAKE) warlock
 170 
 171 isp_files:
 172         @cd $(CLOSED)/uts/sparc/isp; pwd; $(MAKE) warlock
 173 
 174 glm_files:
 175         @cd $(CLOSED)/uts/sparc/glm; pwd; $(MAKE) warlock
 176 
 177 st.ok: $(WLCMD_DIR)/st.wlcmd st.ll st_conf.ll  scsi_files warlock_ddi.files
 178         $(WARLOCK) -c $(WLCMD_DIR)/st.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
 179         -l ../warlock/ddi_dki_impl.ll
 180         $(TOUCH) $@
 181 
 182 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
 183         $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
 184 
 185 warlock_ddi.files:
 186         @cd ../warlock; pwd; $(MAKE) warlock
 187 
 188 scsi.files:
 189         @cd ../scsi; pwd; $(MAKE) warlock


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

 130 
 131 warlock: $(WARLOCK_TARGETS)
 132 
 133 warlock_alone: $(WARLOCK_OK)
 134 
 135 warlock_with_esp: $(WLCMD_DIR)/st_with_esp.wlcmd $(WARLOCK_OUT) scsi_files \
 136         esp_files warlock_ddi.files
 137         $(WARLOCK) -c $(WLCMD_DIR)/st_with_esp.wlcmd \
 138                 $(WARLOCK_OUT) ../esp/esp $(SCSI_FILES)  \
 139                 -l ../warlock/ddi_dki_impl.ll
 140 
 141 warlock_with_fas: $(WLCMD_DIR)/st_with_fas.wlcmd $(WARLOCK_OUT) scsi_files \
 142         fas_files warlock_ddi.files
 143         $(WARLOCK) -c $(WLCMD_DIR)/st_with_fas.wlcmd \
 144                 $(WARLOCK_OUT) \
 145                 ../fas/fas ../fas/fas_callbacks \
 146                 $(SCSI_FILES)  \
 147                 -l ../warlock/ddi_dki_impl.ll
 148 












 149 scsi_files:
 150         @cd ../scsi; pwd; $(MAKE) warlock
 151 
 152 esp_files:
 153         @cd ../esp; pwd; $(MAKE) warlock
 154 
 155 fas_files:
 156         @cd ../fas; pwd; $(MAKE) warlock
 157 






 158 st.ok: $(WLCMD_DIR)/st.wlcmd st.ll st_conf.ll  scsi_files warlock_ddi.files
 159         $(WARLOCK) -c $(WLCMD_DIR)/st.wlcmd $(WARLOCK_OUT) $(SCSI_FILES) \
 160         -l ../warlock/ddi_dki_impl.ll
 161         $(TOUCH) $@
 162 
 163 %.ll: $(UTSBASE)/common/io/scsi/targets/%.c
 164         $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
 165 
 166 warlock_ddi.files:
 167         @cd ../warlock; pwd; $(MAKE) warlock
 168 
 169 scsi.files:
 170         @cd ../scsi; pwd; $(MAKE) warlock