sbsv1/buildsystem/extension/base/config.mk
changeset 620 ad8ffc8e1982
parent 599 fa7a3cc6effd
equal deleted inserted replaced
585:238f4cb8391f 620:ad8ffc8e1982
       
     1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 #
       
    15 
       
    16 # To guarantee there is a slash at the end of EPOCROOT in case there is not. 
       
    17 # This is needed to ensure compatibility with SBSv1.
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    22 
       
    23 
       
    24 ifndef HALPATH
       
    25 HALPATH := ..
       
    26 endif
       
    27 
       
    28 ifndef SOURCE
       
    29 SOURCE := hal
       
    30 endif
       
    31 
       
    32 #MDIR := $(call generated,generatedcpp/hal) # abld
       
    33 #MDIR := $(call generated,base/lubbock) # raptor
       
    34 MDIR := $(call generatedcpp)
       
    35 
       
    36 MAKMAKE : $(MDIR)/$(PREFIX)values.cpp $(MDIR)/$(PREFIX)config.cpp
       
    37 
       
    38 FREEZE :
       
    39 
       
    40 LIB :
       
    41 
       
    42 CLEANLIB :
       
    43 
       
    44 RESOURCE :
       
    45 
       
    46 FINAL :
       
    47 
       
    48 BLD SAVESPACE : $(MDIR)/$(PREFIX)values.cpp $(MDIR)/$(PREFIX)config.cpp
       
    49 
       
    50 RELEASABLES :
       
    51 
       
    52 CLEAN :
       
    53 	-$(ERASE) $(call slash2generic,$(MDIR)/$(PREFIX)values.cpp) 
       
    54 	-$(ERASE) $(call slash2generic,$(MDIR)/$(PREFIX)config.cpp) 
       
    55 #	-$(ERASE) $(MDIR)/$(PREFIX)values.cpp
       
    56 #	-$(ERASE) $(MDIR)/$(PREFIX)config.cpp
       
    57 
       
    58 $(MDIR)/$(PREFIX)values.cpp : $(SOURCE)/values.hda $(EPOCROOT)epoc32/include/platform/hal_data.h
       
    59 	-$(call createdir,"$(MDIR)")
       
    60 	perl $(HALPATH)/hal/halcfg.pl $(EPOCROOT)epoc32/include/platform/hal_data.h $(SOURCE)/values.hda $(MDIR)/$(PREFIX)values.cpp
       
    61 
       
    62 $(MDIR)/$(PREFIX)config.cpp : $(SOURCE)/config.hcf $(EPOCROOT)epoc32/include/platform/hal_data.h
       
    63 	-$(call createdir,"$(MDIR)")
       
    64 	perl $(HALPATH)/hal/halcfg.pl -x $(EPOCROOT)epoc32/include/platform/hal_data.h $(SOURCE)/config.hcf $(MDIR)/$(PREFIX)config.cpp
       
    65