| # /***************************************************************************** |
| #* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ |
| #* |
| #* ÎļþÃû³Æ: Makefile |
| #* Îļþ±êʶ: Makefile |
| #* ÄÚÈÝÕªÒª: Makefile of ZTE applications |
| #* ʹÓ÷½·¨: void |
| #* |
| #* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ |
| #* ----------------------------------------------------------------------------- |
| #* 2015/03/12 V1.0 Create ²ÜÈü ´´½¨ |
| #* |
| # ******************************************************************************/ |
| |
| #******************************************************************************* |
| # include ZTE application makefile |
| #******************************************************************************* |
| include $(zte_app_mak) |
| |
| #******************************************************************************* |
| # execute |
| #******************************************************************************* |
| #EXEC = libwebuinet.a |
| |
| #******************************************************************************* |
| # objects |
| #******************************************************************************* |
| OBJS = zte_web_net_lan.o zte_web_net_other.o zte_web_net_wan.o |
| |
| SRC = zte_web_net_lan.c zte_web_net_other.c zte_web_net_wan.c |
| |
| #******************************************************************************* |
| # include path |
| #******************************************************************************* |
| CFLAGS += -DCONFIG_CHINA_UNICOM -DWEBS -DUEMF -DOS="LINUX" -DLINUX \ |
| -I. \ |
| -I$(zte_lib_path)/libnvram \ |
| -I$(zte_lib_path)/libezxml \ |
| -I$(zte_lib_path)/libmxml \ |
| -I../../../include \ |
| -I$(zte_lib_path)/libsqlite \ |
| -I$(zte_lib_path)/libsoft_timer \ |
| -I../../../at_server \ |
| -I../../../awps/include \ |
| -I../../server \ |
| -I.. \ |
| -lsoftap \ |
| -L$(zte_lib_path)/libsoftap \ |
| -lpthread \ |
| -lsoft_timer_sc \ |
| -L$(zte_lib_path)/libsoft_timer |
| |
| ifeq ($(CONFIG_USE_WEBUI_SECURITY),yes) |
| CFLAGS += -DWEBS_SECURITY |
| endif |
| #******************************************************************************* |
| # macro definition |
| #******************************************************************************* |
| ifeq ($(CUSTOM_MODEL), MF29S2) |
| CFLAGS += -DCUSTOM_VERSION_MF29S2_ZTE |
| endif |
| #CPPFLAGS += -D_MBB_OS_UCLINUX |
| #******************************************************************************* |
| # library |
| #******************************************************************************* |
| |
| LDLIBS += |
| |
| #******************************************************************************* |
| # library path |
| #******************************************************************************* |
| LDLIBS += |
| |
| #******************************************************************************* |
| # targets |
| #******************************************************************************* |
| |
| #$(error ===================================>) |
| all: $(OBJS) |
| @echo "--------------------webui build-----------------------" |
| #$(RANLIB) $@ |
| |
| %.o: %.c |
| $(CC) $(CFLAGS) $(INCLUDES) -c $< -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| |
| #$(CC) $(LDFLAGS) $(CFLAGS) $(INCLUDES) -o $@ $< -Wl,--start-group $(LDLIBS) -Wl,--end-group |
| |
| |
| clean: |
| -rm -f *.elf *.gdb *.o *.a |