28 lines
816 B
Makefile
Executable File
28 lines
816 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
|
|
|
|
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)
|