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