blob: 6eecb202589c513f478cb2c1f51e468187ee0ad6 [file] [log] [blame]
Mike Lockwood94afecf2012-10-24 10:45:23 -07001LOCAL_PATH := $(call my-dir)
2
3common_src_files := \
4 commands.c utils.c
5
6#
7# Static library used in testing and executable
8#
9
10include $(CLEAR_VARS)
11
12LOCAL_SRC_FILES := \
13 $(common_src_files)
Nick Kralevich7f5c84a2012-12-12 16:26:55 -080014LOCAL_CFLAGS := -std=gnu99
Mike Lockwood94afecf2012-10-24 10:45:23 -070015LOCAL_MODULE := libinstalld
Mike Lockwood94afecf2012-10-24 10:45:23 -070016LOCAL_MODULE_TAGS := eng tests
17
18include $(BUILD_STATIC_LIBRARY)
19
20#
21# Executable
22#
23
24include $(CLEAR_VARS)
25
26LOCAL_SRC_FILES := \
27 installd.c \
28 $(common_src_files)
29
30LOCAL_SHARED_LIBRARIES := \
31 libcutils \
32 libselinux
33
34LOCAL_STATIC_LIBRARIES := \
35 libdiskusage
36
37LOCAL_MODULE := installd
Nick Kralevich7f5c84a2012-12-12 16:26:55 -080038LOCAL_CFLAGS := -std=gnu99
Mike Lockwood94afecf2012-10-24 10:45:23 -070039LOCAL_MODULE_TAGS := optional
40
41include $(BUILD_EXECUTABLE)