The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame^] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | # |
| 3 | # Android.mk for lsd |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
| 8 | ifeq ($(TARGET_ARCH),arm) |
| 9 | include $(CLEAR_VARS) |
| 10 | |
| 11 | LOCAL_LDLIBS += -ldl |
| 12 | LOCAL_CFLAGS += -O2 -g |
| 13 | LOCAL_CFLAGS += -fno-function-sections -fno-data-sections -fno-inline |
| 14 | LOCAL_CFLAGS += -Wall -Wno-unused-function #-Werror |
| 15 | LOCAL_CFLAGS += -DBIG_ENDIAN=1 |
| 16 | LOCAL_CFLAGS += -DARM_SPECIFIC_HACKS |
| 17 | LOCAL_CFLAGS += -DSUPPORT_ANDROID_PRELINK_TAGS |
| 18 | LOCAL_CFLAGS += -DDEBUG |
| 19 | |
| 20 | ifeq ($(HOST_OS),windows) |
| 21 | LOCAL_LDLIBS += -lintl |
| 22 | endif |
| 23 | |
| 24 | LOCAL_SRC_FILES := \ |
| 25 | cmdline.c \ |
| 26 | debug.c \ |
| 27 | hash.c \ |
| 28 | lsd.c \ |
| 29 | main.c |
| 30 | |
| 31 | LOCAL_C_INCLUDES:= \ |
| 32 | $(LOCAL_PATH)/ \ |
| 33 | external/elfutils/lib/ \ |
| 34 | external/elfutils/libelf/ \ |
| 35 | external/elfutils/libebl/ |
| 36 | |
| 37 | LOCAL_STATIC_LIBRARIES := libelf libebl libebl_arm #dl |
| 38 | |
| 39 | LOCAL_MODULE := lsd |
| 40 | |
| 41 | include $(BUILD_HOST_EXECUTABLE) |
| 42 | endif #TARGET_ARCH==arm |
| 43 | |