Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | common_src_files := \ |
| 4 | commands.c utils.c |
| 5 | |
| 6 | # |
| 7 | # Static library used in testing and executable |
| 8 | # |
| 9 | |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_SRC_FILES := \ |
| 13 | $(common_src_files) |
Nick Kralevich | 7f5c84a | 2012-12-12 16:26:55 -0800 | [diff] [blame^] | 14 | LOCAL_CFLAGS := -std=gnu99 |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 15 | LOCAL_MODULE := libinstalld |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 16 | LOCAL_MODULE_TAGS := eng tests |
| 17 | |
| 18 | include $(BUILD_STATIC_LIBRARY) |
| 19 | |
| 20 | # |
| 21 | # Executable |
| 22 | # |
| 23 | |
| 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | installd.c \ |
| 28 | $(common_src_files) |
| 29 | |
| 30 | LOCAL_SHARED_LIBRARIES := \ |
| 31 | libcutils \ |
| 32 | libselinux |
| 33 | |
| 34 | LOCAL_STATIC_LIBRARIES := \ |
| 35 | libdiskusage |
| 36 | |
| 37 | LOCAL_MODULE := installd |
Nick Kralevich | 7f5c84a | 2012-12-12 16:26:55 -0800 | [diff] [blame^] | 38 | LOCAL_CFLAGS := -std=gnu99 |
Mike Lockwood | 94afecf | 2012-10-24 10:45:23 -0700 | [diff] [blame] | 39 | LOCAL_MODULE_TAGS := optional |
| 40 | |
| 41 | include $(BUILD_EXECUTABLE) |