Files
android_development/tutorials/MoarRam/jni/Android.mk
Chih-Hung Hsieh 62f253dc80 Use -Werror in development
* Fix/suppress existing warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Iacc9052f81e6fe7e8a10b00a6fcea912a7d636d3
2017-10-27 14:43:17 -07:00

59 lines
1.5 KiB
Makefile

# Copyright (C) 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH:= $(call my-dir)
MoarRam_jni_cflags := -Wall -Werror -Wno-unused-parameter
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libmoarram-32
LOCAL_SRC_FILES := foo.c
LOCAL_SHARED_LIBRARIES += liblog
LOCAL_CFLAGS := $(MoarRam_jni_cflags)
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libmoarram-2M
LOCAL_SRC_FILES := bar.c
LOCAL_SHARED_LIBRARIES += liblog
LOCAL_CFLAGS := $(MoarRam_jni_cflags)
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libmoarram-17_71
LOCAL_SRC_FILES := baz.c
LOCAL_SHARED_LIBRARIES += liblog
LOCAL_CFLAGS := $(MoarRam_jni_cflags)
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libmoarram-doublefree
LOCAL_SRC_FILES := df.c
LOCAL_SHARED_LIBRARIES += liblog
LOCAL_CFLAGS := $(MoarRam_jni_cflags)
include $(BUILD_SHARED_LIBRARY)