sbsv2/raptor/lib/flm/e32abiv2.flm
changeset 708 0757c2976f96
parent 674 37ee82a83d43
equal deleted inserted replaced
707:ccd52fece6ff 708:0757c2976f96
   369 
   369 
   370     # If frozen, a prepped .def file is used as the basis for .lib creation
   370     # If frozen, a prepped .def file is used as the basis for .lib creation
   371     # If unfrozen, .lib files are based on the .def file generated by the final postlink
   371     # If unfrozen, .lib files are based on the .def file generated by the final postlink
   372     $(IMPORTLIBTARGETVERSIONED_LIB): $(if $(EXPORTUNFROZEN),$(E32TARGET),$(PREPPEDDEFFILE))
   372     $(IMPORTLIBTARGETVERSIONED_LIB): $(if $(EXPORTUNFROZEN),$(E32TARGET),$(PREPPEDDEFFILE))
   373 	$(call startrule,importlibversioned_abiv1) \
   373 	$(call startrule,importlibversioned_abiv1) \
   374         if [ -f "$(EPOCROOT)/epoc32/tools/def2dll.pl" -a -f "$(if $(EXPORTUNFROZEN),$(call dblquote,$(GENERATED_DEFFILE)),$(PREPPEDDEFFILE))" ]; then \
   374         if [ -f "$(if $(EXPORTUNFROZEN),$(call dblquote,$(GENERATED_DEFFILE)),$(PREPPEDDEFFILE))" ]; then \
   375                  $(PERL) $(EPOCROOT)/epoc32/tools/def2dll.pl \
   375                  $(DEF2DLLTOOL) \
   376 		--path=$(IMPORTLIBPATH) \
   376 		--path=$(IMPORTLIBPATH) \
   377 		--bldpath=$(INTERMEDIATEPATH) \
   377 		--bldpath=$(INTERMEDIATEPATH) \
   378 		--import=$(notdir $(basename $(IMPORTLIBTARGETVERSIONED_LIB))) \
   378 		--import=$(notdir $(basename $(IMPORTLIBTARGETVERSIONED_LIB))) \
   379 		--deffile="$(if $(EXPORTUNFROZEN),$(call dblquote,$(GENERATED_DEFFILE)),$(PREPPEDDEFFILE))" \
   379 		--deffile="$(if $(EXPORTUNFROZEN),$(call dblquote,$(GENERATED_DEFFILE)),$(PREPPEDDEFFILE))" \
   380 		--linkAs=$(call dblquote,$(LINKASVERSIONED)) \
   380 		--linkAs=$(call dblquote,$(LINKASVERSIONED)) \
   382 	$(call endrule,importlibversioned_abiv1)
   382 	$(call endrule,importlibversioned_abiv1)
   383 
   383 
   384     ifeq ($(EXPLICITVERSION),)
   384     ifeq ($(EXPLICITVERSION),)
   385       $(IMPORTLIBTARGET_LIB): $(IMPORTLIBTARGETVERSIONED_LIB)
   385       $(IMPORTLIBTARGET_LIB): $(IMPORTLIBTARGETVERSIONED_LIB)
   386 	$(call startrule,importlibtarget_abiv1) \
   386 	$(call startrule,importlibtarget_abiv1) \
   387 	if [ -f $(EPOCROOT)/epoc32/tools/def2dll.pl ]; then $(GNUCP) "$$<" "$$@" ; fi \
   387 	$(GNUCP) "$$<" "$$@" \
   388 	$(call endrule,importlibtarget_abiv1)
   388 	$(call endrule,importlibtarget_abiv1)
   389     endif
   389     endif
   390   endef
   390   endef
   391 
   391 
   392   $(eval $(abiv1_generatelib))
   392   $(eval $(abiv1_generatelib))
   446 	$(call startrule,expgen) \
   446 	$(call startrule,expgen) \
   447 	$(POSTLINKER) \
   447 	$(POSTLINKER) \
   448 	   --definput=$$(call dblquote,$(DEFFILE)) \
   448 	   --definput=$$(call dblquote,$(DEFFILE)) \
   449 	   --dump=a $(if $(POSTLINKER_SUPPORTS_ASMTYPE),$(POSTLINKER_ASM_OPTION),) \
   449 	   --dump=a $(if $(POSTLINKER_SUPPORTS_ASMTYPE),$(POSTLINKER_ASM_OPTION),) \
   450 	   --output=$(call dblquote,$(EXPTARGETASMFILE)) && \
   450 	   --output=$(call dblquote,$(EXPTARGETASMFILE)) && \
   451 	$(ASM) $(TARGET_ARCH_OPTION) $(AAPCS_OPTION) $(ASM_OUTPUT_OPTION) $$(call dblquote, $$@) $(EXPTARGETASMFILE) \
   451 	$(ASM) $(ASM_FLAGS) $(TARGET_ARCH_OPTION) $(AAPCS_OPTION) $(ASM_OUTPUT_OPTION) $$(call dblquote, $$@) $(EXPTARGETASMFILE)  \
   452 	$(call endrule,expgen)
   452 	$(call endrule,expgen)
   453 endef
   453 endef
   454 
   454 
   455 $(eval $(e32expgen_func))
   455 $(eval $(e32expgen_func))
   456 CLEANTARGETS:=$(CLEANTARGETS) $(EXPTARGET) $(EXPTARGETASMFILE)
   456 CLEANTARGETS:=$(CLEANTARGETS) $(EXPTARGET) $(EXPTARGETASMFILE)