blob: 148d9fd9ccedb84abff61834ea204340e32476f3 [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 Starzyckie160f812013-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 Starzyckie160f812013-07-24 17:08:04 -070027 commands/boot.c \
28 commands/flash.c \
29 commands/partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080030 fastbootd.c \
31 protocol.c \
32 transport.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070033 trigger.c \
34 usb_linux_client.c \
35 utils.c
Colin Crossa3d386e2013-02-06 21:03:34 -080036
37LOCAL_MODULE := fastbootd
38LOCAL_MODULE_TAGS := optional
39LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Szymon Starzyckie160f812013-07-24 17:08:04 -070040LOCAL_LDFLAGS := -ldl
41
42LOCAL_SHARED_LIBRARIES := \
43 libhardware \
44 libhardware_legacy
45
46LOCAL_STATIC_LIBRARIES := \
47 libsparse_static \
48 libc \
49 libcutils \
50 libz
51
52#LOCAL_FORCE_STATIC_EXECUTABLE := true
53
54include $(BUILD_EXECUTABLE)
55
56include $(CLEAR_VARS)
57LOCAL_C_INCLUDES := \
58 external/zlib/
59
60LOCAL_SRC_FILES := \
61 commands/partitions.c \
62 other/gptedit.c \
63 utils.c
64
65LOCAL_MODULE := gptedit
66LOCAL_MODULE_TAGS := optional
67LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080068
69LOCAL_STATIC_LIBRARIES := \
70 libsparse_static \
71 libc \
Szymon Starzyckie160f812013-07-24 17:08:04 -070072 libcutils \
73 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080074
75LOCAL_FORCE_STATIC_EXECUTABLE := true
76
77include $(BUILD_EXECUTABLE)
Szymon Starzyckie160f812013-07-24 17:08:04 -070078
79include $(CLEAR_VARS)
80
81LOCAL_C_INCLUDES := \
82 $(LOCAL_PATH)/include \
83
84LOCAL_STATIC_LIBRARIES := \
85 $(EXTRA_STATIC_LIBS) \
86 libcutils
87
88LOCAL_SRC_FILES := \
89 other/vendor_trigger.c
90
91LOCAL_MODULE := libvendortrigger.default
92LOCAL_MODULE_TAGS := optional
93LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
94
95
96include $(BUILD_SHARED_LIBRARY)