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