#/**************************************************************************
# *
# *       Copyright (c) 2014 by iCatch Technology, Inc.
# *
# *  This software is copyrighted by and is the property of iCatch Technology,
# *  Inc.. All rights are reserved by iCatch Technology, Inc..
# *  This software may only be used in accordance with the corresponding
# *  license agreement. Any unauthorized use, duplication, distribution,
# *  or disclosure of this software is expressly forbidden.
# *
# *  This Copyright notice MUST not be removed or modified without prior
# *  written consent of iCatch Technology, Inc..
# *
# *  iCatch Technology, Inc. reserves the right to modify this software
# *  without notice.
# *
# *  iCatch Technology, Inc.
# *  19-1, Innovation First Road, Science-Based Industrial Park,
# *  Hsin-Chu, Taiwan, R.O.C.
# *
# **************************************************************************/

OSS_ROOT	:= ..
SRC_DIR		:= .
GOAL		:= liboss_sdio.a

include $(OSS_ROOT)/oss_pre_config.mk

INCLUDES	+= ${OSS_INCS}
INCLUDES	+= -I$(SRC_DIR)/include
INCLUDES	+= -I$(PLATFORM_ROOT)/include
INCLUDES	+= -I./include
INCLUDES	+= -I.

CFLAGS += -Dinline=__inline__
CFLAGS += -Dasm=__asm__
CFLAGS += -Dtypeof=__typeof__

CUSTOMIZED_INSTALL := YES

include $(OSS_ROOT)/oss_post_config.mk

customized_install:
	@if [ ! -e "${OSS_OUTPUT_INC}/sdio" ]; then mkdir -p ${OSS_OUTPUT_INC}/sdio; fi
	$(CP) include/* -r			$(OSS_OUTPUT_INC)/sdio
	$(CP) ${OBJS_PATH}/sdio/liboss_sdio.a	${OUTPUT_LIB_PATH}
