blob: e092fad547f462469b6528e1606cbff9080c75af [file] [log] [blame]
# /*****************************************************************************
#* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
#*
#* ÎļþÃû³Æ: Makefile
#* Îļþ±êʶ: Makefile
#* ÄÚÈÝÕªÒª: Makefile of ZTE librarys
#* ʹÓ÷½·¨: void
#*
#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
#* -----------------------------------------------------------------------------
#* 2019/09/25 V1.0 Create xxq ´´½¨
#*
# ******************************************************************************/
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
include $(COMMON_MK)
#*******************************************************************************
# library
#*******************************************************************************
LIB_SHARED = libvoice.so
LIB_STATIC = libvoice.a
OBJS = voice.o
CFLAGS += -g
LDFLAGS += -lpthread
##############USER COMIZE END##################
CFLAGS += -I$(zte_lib_path)/libtinyalsa/include
CFLAGS += -I$(STAGEDIR)/include
CFLAGS += -I$(APP_DIR)/include
CFLAGS += -fPIC
LDFLAGS_SHARED += -shared
#*******************************************************************************
# comp test app and
#*******************************************************************************
#*******************************************************************************
# objects
#*******************************************************************************
#########################for linux######################################
CFLAGS += -I./include/
CFLAGS += -g -Werror=implicit-function-declaration
SHAREDFLAG := -shared -lc
LDLIBS += -L$(LIB_DIR)/libtinyalsa
LDLIBS += -ltinyalsa
all: $(LIB_STATIC) $(LIB_SHARED)
$(LIB_STATIC) : $(OBJS)
$(AR) rcs $(LIB_STATIC) $(OBJS)
$(LIB_SHARED): $(OBJS)
$(CC) $(LDFLAGS) $(LDFLAGS_SHARED) -o $@ $^
clean:
rm -f $(lib_OBJECTS) $(LIB_SHARED) $(LIB_STATIC) *.elf *.gdb *.o core
romfs:
$(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)