blob: f7c67a9bde0df20b68b1e2088d2a67136ce77b88 [file] [log] [blame]
Colin Crossa3d386e2013-02-06 21:03:34 -08001# Copyright (C) 2013 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070019LOCAL_C_INCLUDES := \
20 external/openssl/include \
21 $(LOCAL_PATH)/include \
22 external/zlib/ \
23
Colin Crossa3d386e2013-02-06 21:03:34 -080024LOCAL_SRC_FILES := \
25 config.c \
26 commands.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070027 commands/boot.c \
28 commands/flash.c \
29 commands/partitions.c \
Szymon Starzyckic50dfd12013-09-06 15:09:30 -070030 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080031 fastbootd.c \
32 protocol.c \
33 transport.c \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070034 trigger.c \
35 usb_linux_client.c \
36 utils.c
Colin Crossa3d386e2013-02-06 21:03:34 -080037
38LOCAL_MODULE := fastbootd
39LOCAL_MODULE_TAGS := optional
Colin Crossb80e4c72013-09-27 20:34:32 +000040LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070041LOCAL_LDFLAGS := -ldl
42
43LOCAL_SHARED_LIBRARIES := \
44 libhardware \
45 libhardware_legacy
46
47LOCAL_STATIC_LIBRARIES := \
48 libsparse_static \
49 libc \
50 libcutils \
51 libz
52
53#LOCAL_FORCE_STATIC_EXECUTABLE := true
54
55include $(BUILD_EXECUTABLE)
56
57include $(CLEAR_VARS)
58LOCAL_C_INCLUDES := \
59 external/zlib/
60
61LOCAL_SRC_FILES := \
62 commands/partitions.c \
63 other/gptedit.c \
64 utils.c
65
66LOCAL_MODULE := gptedit
67LOCAL_MODULE_TAGS := optional
68LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080069
70LOCAL_STATIC_LIBRARIES := \
71 libsparse_static \
72 libc \
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070073 libcutils \
74 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080075
76LOCAL_FORCE_STATIC_EXECUTABLE := true
77
78include $(BUILD_EXECUTABLE)
Szymon Starzyckib6c5f282013-07-24 17:08:04 -070079
80include $(CLEAR_VARS)
81
82LOCAL_C_INCLUDES := \
83 $(LOCAL_PATH)/include \
84
85LOCAL_STATIC_LIBRARIES := \
86 $(EXTRA_STATIC_LIBS) \
87 libcutils
88
89LOCAL_SRC_FILES := \
90 other/vendor_trigger.c
91
92LOCAL_MODULE := libvendortrigger.default
93LOCAL_MODULE_TAGS := optional
94LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
95
96
97include $(BUILD_SHARED_LIBRARY)