SmartAudio/package/allwinner/wifimanager/smartaudio/Makefile

28 lines
848 B
Makefile
Executable File

include $(TOPDIR)/rules.mk
include $(TINA_BUILD_TOP)/package/netease/Makefile.common
include $(TINA_BUILD_TOP)/build/nls.mk
target = app_wifi_manager
MK_PWD = ./
INCLUDES += -I$(CONFIG_PREFIX)/usr/include -I$(MK_PWD)/softap -I$(MK_PWD)/../src/core/include
CPP_SRCS = app_wifi_manager.cpp
CPP_OBJS := $(CPP_SRCS:.cpp=.o)
LIB_OBJS = $(CPP_OBJS)
local_LDFLAGS := $(BUILD_COMMON_LIB) $(ICONV_LDFLAGS) -liconv
install:
-@mkdir -p $(CONFIG_PREFIX)/usr/bin
#app_wifi_manager
app_wifi_manager: app_wifi_manager.cpp
$(CXX) -std=c++11 -o $@ $^ $(CFLAGS) $(INCLUDES) $(LDFLAGS) $(local_LDFLAGS) -L$(CONFIG_PREFIX)/usr/lib -lwifimg
@cp -f app_wifi_manager $(CONFIG_PREFIX)/usr/bin
####################################################################
all: install $(target) app_wifi_manager
clean:
rm -rf $(target) app_wifi_manager$ (LIB_OBJS)