1# Copyright 2006-2014 The Android Open Source Project 2 3LOCAL_PATH := $(call my-dir) 4 5logcatLibs := liblog libbase libcutils libpcrecpp 6 7include $(CLEAR_VARS) 8 9LOCAL_MODULE := logcat 10LOCAL_SRC_FILES := logcat_main.cpp event.logtags 11LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs) 12LOCAL_CFLAGS := -Werror 13 14include $(BUILD_EXECUTABLE) 15 16include $(CLEAR_VARS) 17 18LOCAL_MODULE := logcatd 19LOCAL_MODULE_TAGS := debug 20LOCAL_SRC_FILES := logcatd_main.cpp event.logtags 21LOCAL_SHARED_LIBRARIES := liblogcat $(logcatLibs) 22LOCAL_CFLAGS := -Werror 23 24include $(BUILD_EXECUTABLE) 25 26include $(CLEAR_VARS) 27 28LOCAL_MODULE := liblogcat 29LOCAL_SRC_FILES := logcat.cpp getopt_long.cpp logcat_system.cpp 30LOCAL_SHARED_LIBRARIES := $(logcatLibs) 31LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 32LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 33LOCAL_CFLAGS := -Werror 34 35include $(BUILD_SHARED_LIBRARY) 36 37include $(CLEAR_VARS) 38 39LOCAL_MODULE := logpersist.start 40LOCAL_MODULE_TAGS := debug 41LOCAL_MODULE_CLASS := EXECUTABLES 42LOCAL_INIT_RC := logcatd.rc 43LOCAL_MODULE_PATH := $(bin_dir) 44LOCAL_SRC_FILES := logpersist 45ALL_TOOLS := logpersist.start logpersist.stop logpersist.cat 46LOCAL_POST_INSTALL_CMD := $(hide) $(foreach t,$(filter-out $(LOCAL_MODULE),$(ALL_TOOLS)),ln -sf $(LOCAL_MODULE) $(TARGET_OUT)/bin/$(t);) 47include $(BUILD_PREBUILT) 48 49include $(call first-makefiles-under,$(LOCAL_PATH)) 50