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 the seclib library.
|
|
15 |
|
|
16 |
|
|
17 |
ifdef EPOCROOT
|
|
18 |
include $(EPOCROOT)/build/makefiles-garage/global-make-env.mk
|
|
19 |
else
|
|
20 |
$(error EPOCROOT must be defined as the parent directory of your epoc32 tree)
|
|
21 |
endif
|
1
|
22 |
|
|
23 |
fixfiles = ../setcap/setcap.h
|
|
24 |
fixbackups = $(addsuffix .original,$(fixfiles))
|
0
|
25 |
|
1
|
26 |
cpp_inc_paths = \
|
|
27 |
-I ../../../imgtools/imglib/compress \
|
|
28 |
-I ../setcap \
|
|
29 |
-I ../../e32lib/e32image/inc
|
|
30 |
|
|
31 |
lib = libseclib.a
|
|
32 |
|
|
33 |
CPPFLAGS = $(cpp_inc_paths) $(global_cpp_flags)
|
|
34 |
CXXFLAGS = $(global_cxx_flags) -pthread
|
0
|
35 |
|
1
|
36 |
srcs = \
|
|
37 |
seclib.cpp \
|
|
38 |
../e32image/e32image.cpp \
|
|
39 |
../e32image/deflate/decode.cpp \
|
|
40 |
../e32image/deflate/encode.cpp \
|
|
41 |
../e32image/deflate/deflate.cpp \
|
|
42 |
../e32image/deflate/inflate.cpp \
|
|
43 |
../e32image/deflate/panic.cpp \
|
|
44 |
../e32image/deflate/compress.cpp \
|
|
45 |
../../../imgtools/imglib/compress/pagedcompress.cpp \
|
|
46 |
../../../imgtools/imglib/compress/byte_pair.cpp \
|
|
47 |
../../../imgtools/imglib/e32uid/e32uid.cpp \
|
|
48 |
../setcap/setcap.cpp \
|
|
49 |
../../../imgtools/imglib/host/h_file.cpp \
|
|
50 |
../../../imgtools/imglib/host/h_mem.cpp \
|
|
51 |
../../../imgtools/imglib/host/h_utl.cpp
|
|
52 |
|
|
53 |
|
|
54 |
all: $(lib)
|
0
|
55 |
|
1
|
56 |
.PHONY: all clean fixes remove_fixes
|
|
57 |
|
|
58 |
bases = $(basename $(srcs))
|
|
59 |
|
|
60 |
objs = $(addsuffix .o,$(bases))
|
|
61 |
|
|
62 |
$(srcs): fixes
|
|
63 |
|
|
64 |
$(lib): $(objs)
|
|
65 |
ar r $@ $(objs)
|
|
66 |
|
|
67 |
clean: remove_fixes
|
|
68 |
rm -f $(objs) $(lib)
|
|
69 |
|
|
70 |
fixes:: $(fixbackups)
|
|
71 |
|
|
72 |
../setcap/setcap.h.original:
|
|
73 |
cp $(basename $@) $@ && \
|
|
74 |
sed -e 's|#if !defined(__TOOLS2_LINUX__)|#if !(defined(__TOOLS2__) \&\& defined(__LINUX__))|g' -i $(basename $@)
|
|
75 |
|
|
76 |
remove_fixes:
|
|
77 |
for file in $(fixbackups); do if [ -f $$file ]; then mv -f $$file $${file%\.original}; fi; done
|
|
78 |
|