lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # /*****************************************************************************
|
| 2 | #* 版权所有 (C)2015, 中兴通讯股份有限公司。
|
| 3 | #*
|
| 4 | #* 文件名称: Makefile
|
| 5 | #* 文件标识: Makefile
|
| 6 | #* 内容摘要: Makefile of ZTE applications
|
| 7 | #* 使用方法: void
|
| 8 | #*
|
| 9 | #* 修改日期 版本号 修改标记 修改人 修改内容
|
| 10 | #* -----------------------------------------------------------------------------
|
| 11 | #* 2015/02/10 V1.0 Create 张楠 创建
|
| 12 | #*
|
| 13 | # ******************************************************************************/
|
| 14 |
|
| 15 | #*******************************************************************************
|
| 16 | # include ZTE application makefile
|
| 17 | #*******************************************************************************
|
| 18 | include $(COMMON_MK)
|
| 19 | WORKPATH = $(zte_lib_path)
|
| 20 | SOFT_TIMER_PATH = $(WORKPATH)/libsoft_timer
|
| 21 |
|
| 22 | #*******************************************************************************
|
| 23 | # execute
|
| 24 | #*******************************************************************************
|
| 25 | EXEC = zte_watchdog
|
| 26 |
|
| 27 | #*******************************************************************************
|
| 28 | # objects
|
| 29 | #*******************************************************************************
|
| 30 | OBJS = watchdog.o watchdog_adapter.o watchdog_battery.o
|
| 31 | #*******************************************************************************
|
| 32 | # include path
|
| 33 | #*******************************************************************************
|
| 34 | INCLUE_PATH = -I. -I./../../include
|
| 35 | CFLAGS += -Wextra -Wall $(INCLUE_PATH) $(CUSTOM_MACRO)
|
| 36 | CFLAGS += -I$(SOFT_TIMER_PATH)
|
| 37 | CFLAGS += -I$(SOFT_TIMER_PATH) \
|
| 38 | -L$(SOFT_TIMER_PATH)
|
| 39 | CFLAGS += -g
|
| 40 | CFLAGS += -I$(WORKPATH)/libnvram
|
| 41 | CFLAGS += -g -Werror=implicit-function-declaration
|
| 42 | ifeq ($(LINUX_TYPE),uClinux)
|
| 43 | CFLAGS += -g -O0
|
| 44 | endif
|
| 45 |
|
| 46 | #*******************************************************************************
|
| 47 | # macro definition
|
| 48 | #*******************************************************************************
|
| 49 |
|
| 50 |
|
| 51 | #*******************************************************************************
|
| 52 | # library
|
| 53 | #*******************************************************************************
|
| 54 | LDLIBS += -lpthread -lm -lrt
|
| 55 | CFLAGS += -I$(SOFT_TIMER_PATH)
|
| 56 | CFLAGS += -I$(zte_app_path)/zte_comm/rtc-service
|
| 57 | LDLIBS += -lnvram -lpthread -lsoft_timer -lsoftap
|
| 58 | #LDFLAGS += -L../soft_timer -lsofttimer
|
| 59 | #*******************************************************************************
|
| 60 | # library path
|
| 61 | #*******************************************************************************
|
| 62 | LDLIBS += -L$(WORKPATH)/libnvram
|
| 63 | LDLIBS += -L$(WORKPATH)/libsoft_timer
|
| 64 | LDLIBS += -L$(zte_lib_path)/libsoftap
|
| 65 | #*******************************************************************************
|
| 66 | # targets
|
| 67 | #*******************************************************************************
|
| 68 | lib: $(OBJS)
|
| 69 | @echo Compiling zte_watchdog libraries.
|
| 70 |
|
| 71 | clean:
|
| 72 | -rm -f $(OBJS)
|
| 73 |
|
| 74 |
|
| 75 |
|