The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | ifneq ($(TARGET_SIMULATOR),true) |
| 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES:= dumpstate.c utils.c |
| 7 | |
| 8 | LOCAL_MODULE:= dumpstate |
| 9 | |
| 10 | LOCAL_SHARED_LIBRARIES := libcutils |
| 11 | |
| 12 | include $(BUILD_EXECUTABLE) |
| 13 | |
Mike Lockwood | 308f31d | 2009-09-03 16:12:09 -0400 | [diff] [blame] | 14 | COMMANDS = dumpcrash |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 15 | SYMLINKS := $(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 | |
| 23 | ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS) |
| 24 | |
| 25 | endif |