Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 19 | LOCAL_C_INCLUDES := \ |
| 20 | external/openssl/include \ |
| 21 | $(LOCAL_PATH)/include \ |
| 22 | external/zlib/ \ |
| 23 | |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 24 | LOCAL_SRC_FILES := \ |
| 25 | config.c \ |
| 26 | commands.c \ |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 27 | commands/boot.c \ |
| 28 | commands/flash.c \ |
| 29 | commands/partitions.c \ |
Szymon Starzycki | 585af58 | 2013-09-06 15:09:30 -0700 | [diff] [blame] | 30 | commands/virtual_partitions.c \ |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 31 | fastbootd.c \ |
| 32 | protocol.c \ |
Szymon Starzycki | b015b16 | 2013-09-05 14:26:28 -0700 | [diff] [blame^] | 33 | socket_client.c \ |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 34 | transport.c \ |
Szymon Starzycki | b015b16 | 2013-09-05 14:26:28 -0700 | [diff] [blame^] | 35 | transport_socket.c \ |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 36 | trigger.c \ |
| 37 | usb_linux_client.c \ |
| 38 | utils.c |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 39 | |
| 40 | LOCAL_MODULE := fastbootd |
| 41 | LOCAL_MODULE_TAGS := optional |
Colin Cross | 068b71d | 2013-09-27 20:34:32 +0000 | [diff] [blame] | 42 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 43 | LOCAL_LDFLAGS := -ldl |
| 44 | |
| 45 | LOCAL_SHARED_LIBRARIES := \ |
| 46 | libhardware \ |
| 47 | libhardware_legacy |
| 48 | |
| 49 | LOCAL_STATIC_LIBRARIES := \ |
| 50 | libsparse_static \ |
| 51 | libc \ |
| 52 | libcutils \ |
| 53 | libz |
| 54 | |
| 55 | #LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 56 | |
| 57 | include $(BUILD_EXECUTABLE) |
| 58 | |
| 59 | include $(CLEAR_VARS) |
| 60 | LOCAL_C_INCLUDES := \ |
| 61 | external/zlib/ |
| 62 | |
| 63 | LOCAL_SRC_FILES := \ |
| 64 | commands/partitions.c \ |
| 65 | other/gptedit.c \ |
| 66 | utils.c |
| 67 | |
| 68 | LOCAL_MODULE := gptedit |
| 69 | LOCAL_MODULE_TAGS := optional |
| 70 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 71 | |
| 72 | LOCAL_STATIC_LIBRARIES := \ |
| 73 | libsparse_static \ |
| 74 | libc \ |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 75 | libcutils \ |
| 76 | libz |
Colin Cross | a3d386e | 2013-02-06 21:03:34 -0800 | [diff] [blame] | 77 | |
| 78 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 79 | |
| 80 | include $(BUILD_EXECUTABLE) |
Szymon Starzycki | e160f81 | 2013-07-24 17:08:04 -0700 | [diff] [blame] | 81 | |
| 82 | include $(CLEAR_VARS) |
| 83 | |
| 84 | LOCAL_C_INCLUDES := \ |
| 85 | $(LOCAL_PATH)/include \ |
| 86 | |
| 87 | LOCAL_STATIC_LIBRARIES := \ |
| 88 | $(EXTRA_STATIC_LIBS) \ |
| 89 | libcutils |
| 90 | |
| 91 | LOCAL_SRC_FILES := \ |
| 92 | other/vendor_trigger.c |
| 93 | |
| 94 | LOCAL_MODULE := libvendortrigger.default |
| 95 | LOCAL_MODULE_TAGS := optional |
| 96 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
| 97 | |
| 98 | |
| 99 | include $(BUILD_SHARED_LIBRARY) |