1# Copyright 2005 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6LOCAL_SRC_FILES := \ 7 yaffs2/utils/mkyaffs2image.c \ 8 yaffs2/yaffs_packedtags2.c \ 9 yaffs2/yaffs_ecc.c \ 10 yaffs2/yaffs_tagsvalidity.c 11 12LOCAL_CFLAGS = -O2 -Wall -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DOES_ECC 13LOCAL_CFLAGS+= -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations 14LOCAL_CFLAGS+= -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline 15 16LOCAL_C_INCLUDES += $(LOCAL_PATH)/yaffs2 17 18LOCAL_MODULE := mkyaffs2image 19 20ifeq ($(HAVE_SELINUX), true) 21LOCAL_C_INCLUDES += external/libselinux/include 22LOCAL_STATIC_LIBRARIES += libselinux 23LOCAL_CFLAGS += -DHAVE_SELINUX 24endif # HAVE_SELINUX 25 26include $(BUILD_HOST_EXECUTABLE) 27 28$(call dist-for-goals, dist_files, $(LOCAL_BUILT_MODULE)) 29