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 | c8abc4e | 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 | |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 19 | LOCAL_CPPFLAGS := -g -O0 |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 20 | LOCAL_MODULE := edify |
21 | LOCAL_YACCFLAGS := -v | ||||
Dan Albert | b02e90f | 2015-08-07 17:24:49 -0700 | [diff] [blame] | 22 | LOCAL_CPPFLAGS += -Wno-unused-parameter |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 23 | LOCAL_CPPFLAGS += -Wno-deprecated-register |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 24 | LOCAL_CLANG := true |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 25 | |
26 | include $(BUILD_HOST_EXECUTABLE) | ||||
27 | |||||
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 28 | # |
29 | # Build the device-side library | ||||
30 | # | ||||
31 | include $(CLEAR_VARS) | ||||
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 32 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 33 | LOCAL_SRC_FILES := $(edify_src_files) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 34 | |
Tao Bao | 2a5a49d | 2015-08-20 12:10:46 -0700 | [diff] [blame] | 35 | LOCAL_CPPFLAGS := -Wno-unused-parameter |
36 | LOCAL_CPPFLAGS += -Wno-deprecated-register | ||||
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 37 | LOCAL_MODULE := libedify |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 38 | LOCAL_CLANG := true |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 39 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 40 | include $(BUILD_STATIC_LIBRARY) |