blob: f8b37a812d08a4b0075a3624afdd4e3c1b4c9327 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001ifneq ($(TARGET_SIMULATOR),true)
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6LOCAL_SRC_FILES:= dumpstate.c utils.c
7
8LOCAL_MODULE:= dumpstate
9
10LOCAL_SHARED_LIBRARIES := libcutils
11
12include $(BUILD_EXECUTABLE)
13
Mike Lockwood308f31d2009-09-03 16:12:09 -040014COMMANDS = dumpcrash
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080015SYMLINKS := $(addprefix $(TARGET_OUT_EXECUTABLES)/,$(COMMANDS))
16$(SYMLINKS): DUMPSTATE_BINARY := dumpstate
17$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
18 @echo "Symlink: $@ -> $(DUMPSTATE_BINARY)"
19 @mkdir -p $(dir $@)
20 @rm -rf $@
21 $(hide) ln -sf $(DUMPSTATE_BINARY) $@
22
23ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
24
25endif