blob: 063e308eeb396434a47862f92c3bcfbe4db07f85 [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 \
Szymon Starzycki585af582013-09-06 15:09:30 -070030 commands/virtual_partitions.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080031 fastbootd.c \
32 protocol.c \
Szymon Starzyckib015b162013-09-05 14:26:28 -070033 socket_client.c \
Colin Crossa3d386e2013-02-06 21:03:34 -080034 transport.c \
Szymon Starzyckib015b162013-09-05 14:26:28 -070035 transport_socket.c \
Szymon Starzyckie160f812013-07-24 17:08:04 -070036 trigger.c \
37 usb_linux_client.c \
38 utils.c
Colin Crossa3d386e2013-02-06 21:03:34 -080039
40LOCAL_MODULE := fastbootd
41LOCAL_MODULE_TAGS := optional
Colin Cross068b71d2013-09-27 20:34:32 +000042LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Szymon Starzyckie160f812013-07-24 17:08:04 -070043LOCAL_LDFLAGS := -ldl
44
45LOCAL_SHARED_LIBRARIES := \
46 libhardware \
47 libhardware_legacy
48
49LOCAL_STATIC_LIBRARIES := \
50 libsparse_static \
51 libc \
52 libcutils \
53 libz
54
55#LOCAL_FORCE_STATIC_EXECUTABLE := true
56
57include $(BUILD_EXECUTABLE)
58
59include $(CLEAR_VARS)
60LOCAL_C_INCLUDES := \
61 external/zlib/
62
63LOCAL_SRC_FILES := \
64 commands/partitions.c \
65 other/gptedit.c \
66 utils.c
67
68LOCAL_MODULE := gptedit
69LOCAL_MODULE_TAGS := optional
70LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
Colin Crossa3d386e2013-02-06 21:03:34 -080071
72LOCAL_STATIC_LIBRARIES := \
73 libsparse_static \
74 libc \
Szymon Starzyckie160f812013-07-24 17:08:04 -070075 libcutils \
76 libz
Colin Crossa3d386e2013-02-06 21:03:34 -080077
78LOCAL_FORCE_STATIC_EXECUTABLE := true
79
80include $(BUILD_EXECUTABLE)
Szymon Starzyckie160f812013-07-24 17:08:04 -070081
82include $(CLEAR_VARS)
83
84LOCAL_C_INCLUDES := \
85 $(LOCAL_PATH)/include \
86
87LOCAL_STATIC_LIBRARIES := \
88 $(EXTRA_STATIC_LIBS) \
89 libcutils
90
91LOCAL_SRC_FILES := \
92 other/vendor_trigger.c
93
94LOCAL_MODULE := libvendortrigger.default
95LOCAL_MODULE_TAGS := optional
96LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
97
98
99include $(BUILD_SHARED_LIBRARY)