Android.mk revision 5621248d744a52a11ea927d7508d71cde44b63cd
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 secure.c \ 34 transport.c \ 35 trigger.c \ 36 usb_linux_client.c \ 37 utils.c 38 39LOCAL_MODULE := fastbootd 40LOCAL_MODULE_TAGS := optional 41LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -DFLASH_CERT 42LOCAL_LDFLAGS := -ldl 43 44LOCAL_SHARED_LIBRARIES := \ 45 libhardware \ 46 libcrypto \ 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 71 72LOCAL_STATIC_LIBRARIES := \ 73 libsparse_static \ 74 libc \ 75 libcutils \ 76 libz 77 78LOCAL_FORCE_STATIC_EXECUTABLE := true 79 80include $(BUILD_EXECUTABLE) 81 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) 100