217 |
217 |
218 # USE_TRACE_COMPILER defaults to blank in Raptor config. |
218 # USE_TRACE_COMPILER defaults to blank in Raptor config. |
219 # Users can turn TC on by setting it to 1 in user config. |
219 # Users can turn TC on by setting it to 1 in user config. |
220 ifneq ($(USE_TRACE_COMPILER),) |
220 ifneq ($(USE_TRACE_COMPILER),) |
221 include $(FLMHOME)/tracecompiler.mk |
221 include $(FLMHOME)/tracecompiler.mk |
222 TC_RELEASABLES:=$(TRACE_DICTIONARY) $(AUTOGEN_HEADER) |
222 TC_RELEASEABLES:=$(TRACE_DICTIONARY) $(AUTOGEN_HEADER) |
223 endif |
223 endif |
224 |
224 |
225 |
225 |
226 #################### |
226 #################### |
227 ## IMPORT LIBRARY ## |
227 ## IMPORT LIBRARY ## |
250 endif |
250 endif |
251 |
251 |
252 ifeq ($(SUPPORTS_IMPORT_LIBRARY),1) |
252 ifeq ($(SUPPORTS_IMPORT_LIBRARY),1) |
253 ifneq ($(NOEXPORTLIBRARY),1) |
253 ifneq ($(NOEXPORTLIBRARY),1) |
254 ifneq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1) |
254 ifneq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1) |
255 RELEASABLES:=$(RELEASABLES) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(IMPORTLIBTARGET)) |
255 RELEASEABLES:=$(RELEASEABLES) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(IMPORTLIBTARGET)) |
256 |
256 |
257 # import libraries are generated to the UDEB release directory |
257 # import libraries are generated to the UDEB release directory |
258 ifneq ($(VARIANTTYPE),udeb) |
258 ifneq ($(VARIANTTYPE),udeb) |
259 CREATABLEPATHS:=$(CREATABLEPATHS) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(LIBDIR)) |
259 CREATABLEPATHS:=$(CREATABLEPATHS) $(if $(or $(EXPORTUNFROZEN),$(DEFFILE)),$(LIBDIR)) |
260 endif |
260 endif |
296 |
296 |
297 ifeq ($(COPY_FOR_STATIC_LINKAGE),1) |
297 ifeq ($(COPY_FOR_STATIC_LINKAGE),1) |
298 BINTARGETSTATICLINK:=$(BINDIRSTATICLINK)/$(TARGET).$(if $(REQUESTEDTARGETEXT),$(REQUESTEDTARGETEXT),$(TARGETTYPE)) |
298 BINTARGETSTATICLINK:=$(BINDIRSTATICLINK)/$(TARGET).$(if $(REQUESTEDTARGETEXT),$(REQUESTEDTARGETEXT),$(TARGETTYPE)) |
299 endif |
299 endif |
300 |
300 |
301 RELEASABLES:=$(RELEASABLES) $(BINTARGET) $(BINTARGETSTATICLINK) |
301 RELEASEABLES:=$(RELEASEABLES) $(BINTARGET) $(BINTARGETSTATICLINK) |
302 |
302 |
303 # work on a local source files list |
303 # work on a local source files list |
304 SRCFILES:=$(SOURCE) |
304 SRCFILES:=$(SOURCE) |
305 # and there may be more source for stage 2 in OE builds |
305 # and there may be more source for stage 2 in OE builds |
306 SRCFILES_OE:= |
306 SRCFILES_OE:= |
468 ifneq ($(BASE_TYPE),staticlib) |
468 ifneq ($(BASE_TYPE),staticlib) |
469 ifneq ($(BASE_TYPE),importlib) |
469 ifneq ($(BASE_TYPE),importlib) |
470 # link map file (urel only) |
470 # link map file (urel only) |
471 ifeq ($(VARIANTTYPE),urel) |
471 ifeq ($(VARIANTTYPE),urel) |
472 MAP:=$(OPT.MAP)$(BINTARGET).map |
472 MAP:=$(OPT.MAP)$(BINTARGET).map |
473 RELEASABLES:=$(RELEASABLES) $(BINTARGET).map |
473 RELEASEABLES:=$(RELEASEABLES) $(BINTARGET).map |
474 endif |
474 endif |
475 endif |
475 endif |
476 endif |
476 endif |
477 |
477 |
478 # all object files are listed in a response file to minimise the length of linker calls |
478 # all object files are listed in a response file to minimise the length of linker calls |
658 endif # neq $(BASE_TYPE),importlib |
658 endif # neq $(BASE_TYPE),importlib |
659 |
659 |
660 |
660 |
661 # Global targets |
661 # Global targets |
662 .PHONY:: $(ALLTARGET) |
662 .PHONY:: $(ALLTARGET) |
663 $(ALLTARGET):: $(RELEASABLES) |
663 $(ALLTARGET):: $(RELEASEABLES) |
664 TARGET:: $(RELEASABLES) |
664 TARGET:: $(RELEASEABLES) |
665 |
665 |
666 ifeq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1) |
666 ifeq ($(TARGET_$(call sanitise,$(IMPORTLIBTARGET))),1) |
667 LIBRARY:: $(IMPORTLIBTARGET) |
667 LIBRARY:: $(IMPORTLIBTARGET) |
668 else |
668 else |
669 ifeq ($(BASE_TYPE),staticlib) |
669 ifeq ($(BASE_TYPE),staticlib) |
680 |
680 |
681 BATCHDIR:=$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/ |
681 BATCHDIR:=$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/ |
682 $(eval $(call MakeTestBatchFiles,$(TARGET),$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH))) |
682 $(eval $(call MakeTestBatchFiles,$(TARGET),$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH))) |
683 BATCHFILE_CREATED_$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH):=1 |
683 BATCHFILE_CREATED_$(BATCHDIR)$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH):=1 |
684 TARGET_CREATED_$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH)_$(TARGET):=1 |
684 TARGET_CREATED_$(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH)_$(TARGET):=1 |
685 RELEASABLES:=$(RELEASABLES) $(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH) |
685 RELEASEABLES:=$(RELEASEABLES) $(EPOCROOT)/epoc32/release/$(VARIANTPLATFORM)/$(VARIANTTYPE)/z/test/$(MODULE)/$(VARIANTPLATFORM).$(TESTPATH) |
686 endif |
686 endif |
687 |
687 |
688 # clean up |
688 # clean up |
689 $(call raptor_clean,$(CLEANTARGETS)) |
689 $(call raptor_clean,$(CLEANTARGETS)) |
690 # make the output directories while reading makefile - some build engines prefer this |
690 # make the output directories while reading makefile - some build engines prefer this |
691 $(call makepath,$(CREATABLEPATHS)) |
691 $(call makepath,$(CREATABLEPATHS)) |
692 # for the --what option and the log file |
692 # for the --what option and the log file |
693 $(call raptor_release,$(RELEASABLES) $(TC_RELEASABLES)) |
693 $(call raptor_release,$(RELEASEABLES) $(TC_RELEASEABLES)) |