sbsv2/raptor/lib/flm/globals.mk
changeset 0 044383f39525
child 3 e1eecf4d390d
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 #
       
     2 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 # global include file : this is included by all generated makefiles
       
    16 # 1) include all the common tools
       
    17 # 2) add global targets such as CLEAN and REALLYCLEAN
       
    18 # 3) specify the top level dependencies between targets
       
    19 # INPUTS : assumes OSTYPE and FLMHOME are set.
       
    20 #
       
    21 
       
    22 ifeq ($(SYMBIAN_FLM_GLOBALS_MK),)
       
    23 SYMBIAN_FLM_GLOBALS_MK:=1
       
    24 
       
    25 # get the common tools
       
    26 include $(FLMHOME)/flmtools.mk
       
    27 
       
    28 # initialise the list of created directories
       
    29 makepathLIST:=
       
    30 
       
    31 # set the variables TOOLPLATFORMDIR and DOTEXE
       
    32 ifeq ($(filter win,$(HOSTPLATFORM)),win)
       
    33 DOTEXE:=.exe
       
    34 TOOLPLATFORMDIR:=
       
    35 else
       
    36 DOTEXE:=
       
    37 TOOLPLATFORMDIR:=/$(HOSTPLATFORM_DIR)
       
    38 endif
       
    39 
       
    40 # addglobal(GlobalTargetName)
       
    41 SYMBIAN_GLOBAL_TARGETS:=
       
    42 
       
    43 define sgt_addcmds
       
    44 .PHONY:: $1
       
    45 
       
    46 $(if $(filter win,$(HOSTPLATFORM)),,$(call lowercase,$1):: $1)
       
    47 
       
    48 SYMBIAN_GLOBAL_TARGETS:=$$(SYMBIAN_GLOBAL_TARGETS) $(1)
       
    49 endef
       
    50 
       
    51 define addglobal
       
    52 $(eval $(call sgt_addcmds,$(1)))
       
    53 endef
       
    54 
       
    55 ALLTARGET:=ALL
       
    56 
       
    57 .PHONY:: $(ALLTARGET)
       
    58 $(ALLTARGET):: BUILD
       
    59 
       
    60 # Global targets should generally be double colon rules because
       
    61 # they allow horizontal states to be placed into the build system.
       
    62 # e.g the "EXPORTED" state.
       
    63 $(call addglobal,BUILD)
       
    64 $(call addglobal,CLEAN)
       
    65 $(call addglobal,CLEANEXPORT)
       
    66 $(call addglobal,EXPORT)
       
    67 $(call addglobal,FINAL)
       
    68 $(call addglobal,FREEZE)
       
    69 $(call addglobal,LIBRARY)
       
    70 $(call addglobal,LISTING)
       
    71 $(call addglobal,MAKEFILE)
       
    72 $(call addglobal,REALLYCLEAN)
       
    73 $(call addglobal,BITMAP)
       
    74 $(call addglobal,RESOURCE)
       
    75 $(call addglobal,ROMFILE)
       
    76 $(call addglobal,TARGET)
       
    77 $(call addglobal,WHAT)
       
    78 $(call addglobal,WHATEXPORTS)
       
    79 $(call addglobal,WHATARMV5)
       
    80 $(call addglobal,WHATWINSCW)
       
    81 $(call addglobal,WHATTOOLS2)
       
    82 $(call addglobal,WHATTOOLS)
       
    83 $(call addglobal,WHATTEM)
       
    84 $(call addglobal,WHATRESOURCES)
       
    85 $(call addglobal,WHATBITMAP)
       
    86 $(call addglobal,WHATGNUEM)
       
    87 $(call addglobal,WHATSTRINGTABLE)
       
    88 
       
    89 # Ignore errors in some rules so as to "keep going"
       
    90 # so if one export fails then that won't stop unrelated
       
    91 # .cpp files from building. (.cpp files must all depend on EXPORT
       
    92 # so that parallel builds work)
       
    93 .IGNORE: EXPORT BITMAP RESOURCE LIBRARY
       
    94 # dependencies between top-level targets
       
    95 BUILD:: EXPORT MAKEFILE BITMAP RESOURCE LIBRARY TARGET FINAL
       
    96 
       
    97 MAKEFILE:: EXPORT
       
    98 BITMAP:: MAKEFILE
       
    99 RESOURCE:: BITMAP
       
   100 LIBRARY:: RESOURCE 
       
   101 TARGET:: LIBRARY
       
   102 FINAL:: TARGET
       
   103 
       
   104 .PHONY:: EXPORT
       
   105 
       
   106 
       
   107 WHAT:: WHATEXPORTS WHATARMV5 WHATWINSCW WHATTOOLS2 WHATTEM WHATGNUEM WHATRESOURCES WHATBITMAP WHATSTRINGTABLE
       
   108 
       
   109 REALLYCLEAN:: CLEAN CLEANEXPORT
       
   110 
       
   111 # Create one of every double colon rule
       
   112 WHATBITMAP::
       
   113 
       
   114 WHATRESOURCES::
       
   115 
       
   116 WHATSTRINGTABLE::
       
   117 
       
   118 WHATTEM::
       
   119 
       
   120 WHATGNUEM::
       
   121 
       
   122 WHATTOOLS2::
       
   123 
       
   124 WHATWINSCW::
       
   125 
       
   126 WHATARMV5::
       
   127 
       
   128 WHATEXPORTS::
       
   129 
       
   130 LISTING::
       
   131 
       
   132 CLEAN::
       
   133 
       
   134 CLEANEXPORT::
       
   135 
       
   136 REALLYCLEAN::
       
   137 
       
   138 EXPORT::
       
   139 
       
   140 RESOURCE::
       
   141 
       
   142 BITMAP::
       
   143 
       
   144 # put known resource header to resource header dependencies here
       
   145 
       
   146 eikcdlg_DEPENDS:=eikcore.rsg eikcoctl.rsg
       
   147 eikmisc_DEPENDS:=eikcore.rsg
       
   148 eikfile_DEPENDS:=eikcoctl.rsg
       
   149 eikir_DEPENDS:=eikcoctl.rsg
       
   150 eikprint_DEPENDS:=eikcoctl.rsg
       
   151 
       
   152 
       
   153 # For users of SBSv2 who wish to add in their own global settings
       
   154 # without modifying this file:
       
   155 -include $(FLMHOME)/user/globals.mk
       
   156 
       
   157 endif
       
   158