# /*****************************************************************************
#* Ȩ (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
