blob: 61ed6fa17914861f09587aad2104873ecd68d999 [file] [log] [blame]
Doug Zongker37bee622009-06-08 17:35:39 -07001# Copyright 2009 The Android Open Source Project
2
3LOCAL_PATH := $(call my-dir)
4
5edify_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++.
12edify_cflags := -x c
13
14#
15# Build the host-side command line tool
16#
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES := \
20 $(edify_src_files) \
21 main.c
22
23LOCAL_CFLAGS := $(edify_cflags) -g -O0
24LOCAL_MODULE := edify
25LOCAL_YACCFLAGS := -v
Doug Zongker0d32f252014-02-13 15:07:56 -080026LOCAL_CFLAGS += -Wno-unused-parameter
Doug Zongker37bee622009-06-08 17:35:39 -070027
28include $(BUILD_HOST_EXECUTABLE)
29
Doug Zongker9931f7f2009-06-10 14:11:53 -070030#
31# Build the device-side library
32#
33include $(CLEAR_VARS)
Doug Zongker37bee622009-06-08 17:35:39 -070034
Doug Zongker9931f7f2009-06-10 14:11:53 -070035LOCAL_SRC_FILES := $(edify_src_files)
Doug Zongker37bee622009-06-08 17:35:39 -070036
Doug Zongker9931f7f2009-06-10 14:11:53 -070037LOCAL_CFLAGS := $(edify_cflags)
Doug Zongker0d32f252014-02-13 15:07:56 -080038LOCAL_CFLAGS += -Wno-unused-parameter
Doug Zongker9931f7f2009-06-10 14:11:53 -070039LOCAL_MODULE := libedify
Doug Zongker37bee622009-06-08 17:35:39 -070040
Doug Zongker9931f7f2009-06-10 14:11:53 -070041include $(BUILD_STATIC_LIBRARY)