Android.mk revision 50dc936964e057ad779ce271c6d1c12e4d81f0aa
1# Copyright 2005 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6LOCAL_SRC_FILES:= \ 7 builtins.c \ 8 init.c \ 9 devices.c \ 10 property_service.c \ 11 util.c \ 12 parser.c \ 13 keychords.c \ 14 signal_handler.c \ 15 init_parser.c \ 16 ueventd.c \ 17 ueventd_parser.c \ 18 watchdogd.c 19 20ifeq ($(strip $(INIT_BOOTCHART)),true) 21LOCAL_SRC_FILES += bootchart.c 22LOCAL_CFLAGS += -DBOOTCHART=1 23endif 24 25ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 26LOCAL_CFLAGS += -DALLOW_LOCAL_PROP_OVERRIDE=1 27endif 28 29LOCAL_MODULE:= init 30 31LOCAL_FORCE_STATIC_EXECUTABLE := true 32LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) 33LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED) 34 35LOCAL_STATIC_LIBRARIES := \ 36 libfs_mgr \ 37 liblogwrap \ 38 libcutils \ 39 liblog \ 40 libc \ 41 libselinux 42 43include $(BUILD_EXECUTABLE) 44 45# Make a symlink from /sbin/ueventd and /sbin/watchdogd to /init 46SYMLINKS := \ 47 $(TARGET_ROOT_OUT)/sbin/ueventd \ 48 $(TARGET_ROOT_OUT)/sbin/watchdogd 49 50$(SYMLINKS): INIT_BINARY := $(LOCAL_MODULE) 51$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk 52 @echo "Symlink: $@ -> ../$(INIT_BINARY)" 53 @mkdir -p $(dir $@) 54 @rm -rf $@ 55 $(hide) ln -sf ../$(INIT_BINARY) $@ 56 57ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS) 58 59# We need this so that the installed files could be picked up based on the 60# local module name 61ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \ 62 $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(SYMLINKS) 63