Home | History | Annotate | Download | only in edify
      1 # Copyright 2009 The Android Open Source Project
      2 
      3 LOCAL_PATH := $(call my-dir)
      4 
      5 edify_src_files := \
      6 	lexer.ll \
      7 	parser.yy \
      8 	expr.cpp
      9 
     10 #
     11 # Build the host-side command line tool
     12 #
     13 include $(CLEAR_VARS)
     14 
     15 LOCAL_SRC_FILES := \
     16 		$(edify_src_files) \
     17 		main.cpp
     18 
     19 LOCAL_CPPFLAGS := -g -O0
     20 LOCAL_MODULE := edify
     21 LOCAL_YACCFLAGS := -v
     22 LOCAL_CPPFLAGS += -Wno-unused-parameter
     23 LOCAL_CPPFLAGS += -Wno-deprecated-register
     24 LOCAL_CLANG := true
     25 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     26 LOCAL_STATIC_LIBRARIES += libbase
     27 
     28 include $(BUILD_HOST_EXECUTABLE)
     29 
     30 #
     31 # Build the device-side library
     32 #
     33 include $(CLEAR_VARS)
     34 
     35 LOCAL_SRC_FILES := $(edify_src_files)
     36 
     37 LOCAL_CPPFLAGS := -Wno-unused-parameter
     38 LOCAL_CPPFLAGS += -Wno-deprecated-register
     39 LOCAL_MODULE := libedify
     40 LOCAL_CLANG := true
     41 LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
     42 LOCAL_STATIC_LIBRARIES += libbase
     43 
     44 include $(BUILD_STATIC_LIBRARY)
     45