|
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 r_t_areaset. |
|
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 = \ |
|
23 -I ../../imglib/inc \ |
|
24 -I ../../imglib/compress \ |
|
25 -I ../../imglib/patchdataprocessor/include \ |
|
26 -I ../../imglib/memmap/include |
|
27 |
|
28 lib_opts = -lboost_thread-mt \ |
|
29 -L../../imglib/memmap -lmemmap \ |
|
30 -L../../imglib/patchdataprocessor -lpatchdataprocessor |
|
31 |
|
32 prereqs = memmap patchdataprocessor |
|
33 |
|
34 exe = r_t_areaset |
|
35 |
|
36 CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags) |
|
37 LDFLAGS = $(lib_opts) $(global_ld_flags) |
|
38 |
|
39 srcs = \ |
|
40 ../rombuild/r_t_areaset.cpp \ |
|
41 ../rombuild/r_areaset.cpp \ |
|
42 ../rombuild/r_dir.cpp \ |
|
43 ../rombuild/r_header.cpp \ |
|
44 ../rombuild/r_obey.cpp \ |
|
45 ../rombuild/r_srec.cpp \ |
|
46 ../rombuild/r_rom.cpp \ |
|
47 ../rombuild/r_global.cpp \ |
|
48 ../rombuild/r_build.cpp \ |
|
49 ../rombuild/r_collapse.cpp \ |
|
50 ../../imglib/e32uid/e32uid.cpp \ |
|
51 ../../imglib/host/h_file.cpp \ |
|
52 ../../imglib/host/h_mem.cpp \ |
|
53 ../../imglib/host/h_utl.cpp \ |
|
54 ../../imglib/e32image/e32image.cpp \ |
|
55 ../../imglib/e32image/deflate/decode.cpp \ |
|
56 ../../imglib/e32image/deflate/encode.cpp \ |
|
57 ../../imglib/e32image/deflate/deflate.cpp \ |
|
58 ../../imglib/e32image/deflate/inflate.cpp \ |
|
59 ../../imglib/e32image/deflate/panic.cpp \ |
|
60 ../../imglib/e32image/deflate/compress.cpp \ |
|
61 ../../imglib/compress/byte_pair.cpp \ |
|
62 ../../imglib/compress/pagedcompress.cpp |
|
63 |
|
64 .PHONY: all clean $(prereqs) |
|
65 |
|
66 all: $(exe) |
|
67 |
|
68 bases = $(basename $(srcs)) |
|
69 |
|
70 objs = $(addsuffix .o,$(bases)) |
|
71 |
|
72 $(exe): $(objs) $(prereqs) |
|
73 $(CC) -o $@ $(objs) $(LDFLAGS) |
|
74 |
|
75 $(prereqs): $(global_prereqs) |
|
76 $(MAKE) -C $(EPOCROOT)/build $@ |
|
77 |
|
78 clean: |
|
79 rm -f $(objs) $(exe) |
|
80 |