Android.mk revision c50dfd178ebd159d82f5577a96d743b0e831dba6
1# 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
19LOCAL_C_INCLUDES := \
20    external/openssl/include \
21    $(LOCAL_PATH)/include \
22    external/zlib/ \
23
24LOCAL_SRC_FILES := \
25    config.c \
26    commands.c \
27    commands/boot.c \
28    commands/flash.c \
29    commands/partitions.c \
30    commands/virtual_partitions.c \
31    fastbootd.c \
32    protocol.c \
33    transport.c \
34    trigger.c \
35    usb_linux_client.c \
36    utils.c
37
38LOCAL_MODULE := fastbootd
39LOCAL_MODULE_TAGS := optional
40LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
41LOCAL_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
69
70LOCAL_STATIC_LIBRARIES := \
71    libsparse_static \
72    libc \
73    libcutils \
74    libz
75
76LOCAL_FORCE_STATIC_EXECUTABLE := true
77
78include $(BUILD_EXECUTABLE)
79
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)
98