3
|
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 the License "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 |
# Function-Like Makefile to build a TOOLS2 LIB with gcc
|
|
15 |
#
|
|
16 |
#
|
|
17 |
|
|
18 |
## Outputs - externally relevant targets that this FLM generates
|
|
19 |
LIBTARGET:=$(RELEASEPATH)/$(TARGET).a
|
|
20 |
|
|
21 |
## Target groups
|
|
22 |
RELEASEABLES:=$(LIBTARGET)
|
|
23 |
TARGETS:=$(LIBTARGET)
|
|
24 |
|
|
25 |
## Common build steps (compiling)
|
|
26 |
include $(FLMHOME)/tools2common.flm
|
|
27 |
|
|
28 |
## Create library archive
|
|
29 |
# get OBJECTFILES from tools2common
|
|
30 |
define tools2lib
|
|
31 |
$(LIBTARGET): $(OBJECTFILES)
|
|
32 |
$(call startrule,tools2lib) \
|
|
33 |
$(ARCHIVER) $(AFLAGS) $(LIBTARGET) $(OBJECTFILES) && \
|
|
34 |
$(RANLIB) $(LIBTARGET) \
|
|
35 |
$(if $(SAVESPACE),; $(GNURM) -rf $(OUTPUTPATH); true,) \
|
|
36 |
$(call endrule,tools2lib)
|
|
37 |
|
|
38 |
endef
|
|
39 |
|
|
40 |
$(eval $(call tools2lib))
|
|
41 |
|
|
42 |
## Global target
|
|
43 |
LIBRARY:: $(LIBTARGET)
|
|
44 |
|
|
45 |
## The End
|