Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 1 | # Copyright 2009 The Android Open Source Project |
2 | |||||
3 | LOCAL_PATH := $(call my-dir) | ||||
4 | |||||
5 | edify_src_files := \ | ||||
Ying Wang | c577660 | 2016-01-11 18:14:17 -0800 | [diff] [blame] | 6 | lexer.ll \ |
7 | parser.yy \ | ||||
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 8 | expr.cpp |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 9 | |
10 | # | ||||
11 | # Build the host-side command line tool | ||||
12 | # | ||||
13 | include $(CLEAR_VARS) | ||||
14 | |||||
15 | LOCAL_SRC_FILES := \ | ||||
16 | $(edify_src_files) \ | ||||
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 17 | main.cpp |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 18 | |
Tianjie Xu | 17e316c | 2016-09-28 11:42:17 -0700 | [diff] [blame] | 19 | LOCAL_CFLAGS := -Werror |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 20 | LOCAL_CPPFLAGS := -g -O0 |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 21 | LOCAL_MODULE := edify |
22 | LOCAL_YACCFLAGS := -v | ||||
Dan Albert | b02e90f | 2015-08-07 17:24:49 -0700 | [diff] [blame] | 23 | LOCAL_CPPFLAGS += -Wno-unused-parameter |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 24 | LOCAL_CPPFLAGS += -Wno-deprecated-register |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 25 | LOCAL_CLANG := true |
Tianjie Xu | 1625583 | 2016-04-30 11:49:59 -0700 | [diff] [blame] | 26 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
27 | LOCAL_STATIC_LIBRARIES += libbase | ||||
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 28 | |
29 | include $(BUILD_HOST_EXECUTABLE) | ||||
30 | |||||
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 31 | # |
32 | # Build the device-side library | ||||
33 | # | ||||
34 | include $(CLEAR_VARS) | ||||
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 35 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 36 | LOCAL_SRC_FILES := $(edify_src_files) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 37 | |
Tianjie Xu | 17e316c | 2016-09-28 11:42:17 -0700 | [diff] [blame] | 38 | LOCAL_CFLAGS := -Werror |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 39 | LOCAL_CPPFLAGS := -Wno-unused-parameter |
40 | LOCAL_CPPFLAGS += -Wno-deprecated-register | ||||
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 41 | LOCAL_MODULE := libedify |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 42 | LOCAL_CLANG := true |
Tianjie Xu | 1625583 | 2016-04-30 11:49:59 -0700 | [diff] [blame] | 43 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. |
44 | LOCAL_STATIC_LIBRARIES += libbase | ||||
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 45 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 46 | include $(BUILD_STATIC_LIBRARY) |