1LOCAL_PATH:=$(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_MODULE:=libavahi-client 5 6LOCAL_SRC_FILES := \ 7 client.c \ 8 entrygroup.c \ 9 browser.c \ 10 resolver.c \ 11 xdg-config.c \ 12 check-nss.c \ 13 ../avahi-common/dbus.c \ 14 ../avahi-common/dbus-watch-glue.c 15 16LOCAL_SHARED_LIBRARIES:=\ 17 libdbus \ 18 libavahi-common \ 19 libdl 20 21LOCAL_CFLAGS := \ 22 -DHAVE_CONFIG_H \ 23 -g \ 24 -O2 \ 25 -fstack-protector \ 26 -std=c99 \ 27 -Wall \ 28 -W \ 29 -Wextra \ 30 -pedantic \ 31 -pipe \ 32 -Wformat \ 33 -Wold-style-definition \ 34 -Wdeclaration-after-statement \ 35 -Wfloat-equal \ 36 -Wmissing-declarations \ 37 -Wmissing-prototypes \ 38 -Wstrict-prototypes \ 39 -Wredundant-decls \ 40 -Wmissing-noreturn \ 41 -Wshadow \ 42 -Wendif-labels \ 43 -Wpointer-arith \ 44 -Wbad-function-cast \ 45 -Wcast-qual \ 46 -Wcast-align \ 47 -Wwrite-strings \ 48 -fdiagnostics-show-option \ 49 -Wno-cast-qual \ 50 -fno-strict-aliasing \ 51 -DDEBUG_TRAP=__asm__\(\"int\ $3\"\) \ 52 -DDBUS_VERSION_MAJOR=1 \ 53 -DDBUS_VERSION_MINOR=6 \ 54 -DDBUS_VERSION_MICRO=18 \ 55 -DDBUS_API_SUBJECT_TO_CHANGE \ 56 -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"unix:path=/var/run/dbus/system_bus_socket\" 57 58LOCAL_C_INCLUDES := \ 59 $(LOCAL_PATH) \ 60 external/avahi 61 62LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/.. 63 64include $(BUILD_SHARED_LIBRARY) 65