0
|
1 |
# Copyright (c) 2009 Symbian Foundation Ltd
|
|
2 |
# This component and the accompanying materials are made available
|
|
3 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
4 |
# which accompanies this distribution, and is available
|
|
5 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
6 |
#
|
|
7 |
# Initial Contributors:
|
|
8 |
# Symbian Foundation Ltd - initial contribution.
|
|
9 |
# Mike Kinghan, mikek@symbian.org
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
# This is a Linux makefile for elfdump.
|
|
15 |
|
|
16 |
ifdef EPOCROOT
|
|
17 |
include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk
|
|
18 |
else
|
|
19 |
$(error EPOCROOT must be defined as the parent directory of your epoc32 tree)
|
|
20 |
endif
|
|
21 |
|
|
22 |
cpp_inc_paths = -I ../inc -I $(EPOCROOT)/include/tools
|
|
23 |
|
|
24 |
lib_opts =
|
|
25 |
|
|
26 |
exe = elfdump
|
|
27 |
|
|
28 |
CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags)
|
|
29 |
LDFLAGS = $(lib_opts) $(global_ld_flags)
|
|
30 |
|
|
31 |
prereqs =
|
|
32 |
|
|
33 |
srcs = elfdump.cpp
|
|
34 |
|
|
35 |
.PHONY: all clean $(prereqs)
|
|
36 |
|
|
37 |
all: $(exe)
|
|
38 |
|
|
39 |
bases = $(basename $(srcs))
|
|
40 |
|
|
41 |
objs = $(addsuffix .o,$(bases))
|
|
42 |
|
|
43 |
$(prereqs): $(global_prereqs)
|
|
44 |
$(MAKE) -C $(EPOCROOT)/build $@
|
|
45 |
|
|
46 |
$(exe): $(objs) $(prereqs)
|
|
47 |
$(CC) -o $@ $(objs) $(LDFLAGS)
|
|
48 |
|
|
49 |
clean:
|
|
50 |
rm -f $(objs) $(exe)
|
|
51 |
|