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 := \ |
| 6 | lexer.l \ |
| 7 | parser.y \ |
| 8 | expr.c |
| 9 | |
| 10 | # "-x c" forces the lex/yacc files to be compiled as c; |
| 11 | # the build system otherwise forces them to be c++. |
| 12 | edify_cflags := -x c |
| 13 | |
| 14 | # |
| 15 | # Build the host-side command line tool |
| 16 | # |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | LOCAL_SRC_FILES := \ |
| 20 | $(edify_src_files) \ |
| 21 | main.c |
| 22 | |
| 23 | LOCAL_CFLAGS := $(edify_cflags) -g -O0 |
| 24 | LOCAL_MODULE := edify |
| 25 | LOCAL_YACCFLAGS := -v |
| 26 | |
| 27 | include $(BUILD_HOST_EXECUTABLE) |
| 28 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 29 | # |
| 30 | # Build the device-side library |
| 31 | # |
| 32 | include $(CLEAR_VARS) |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 33 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 34 | LOCAL_SRC_FILES := $(edify_src_files) |
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_CFLAGS := $(edify_cflags) |
| 37 | LOCAL_MODULE := libedify |
Doug Zongker | 37bee62 | 2009-06-08 17:35:39 -0700 | [diff] [blame] | 38 | |
Doug Zongker | 9931f7f | 2009-06-10 14:11:53 -0700 | [diff] [blame] | 39 | include $(BUILD_STATIC_LIBRARY) |