blob: a7e755a94673ff728fd1c6eb32d2bf24eb807387 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# /*****************************************************************************
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#*******************************************************************************
18include $(COMMON_MK)
19WORKPATH = $(zte_lib_path)
20SOFT_TIMER_PATH = $(WORKPATH)/libsoft_timer
21
22#*******************************************************************************
23# execute
24#*******************************************************************************
25EXEC = zte_watchdog
26
27#*******************************************************************************
28# objects
29#*******************************************************************************
30OBJS = watchdog.o watchdog_adapter.o watchdog_battery.o
31#*******************************************************************************
32# include path
33#*******************************************************************************
34INCLUE_PATH = -I. -I./../../include
35CFLAGS += -Wextra -Wall $(INCLUE_PATH) $(CUSTOM_MACRO)
36CFLAGS += -I$(SOFT_TIMER_PATH)
37CFLAGS += -I$(SOFT_TIMER_PATH) \
38 -L$(SOFT_TIMER_PATH)
39CFLAGS += -g
40CFLAGS += -I$(WORKPATH)/libnvram
41CFLAGS += -g -Werror=implicit-function-declaration
42ifeq ($(LINUX_TYPE),uClinux)
43CFLAGS += -g -O0
44endif
45
46#*******************************************************************************
47# macro definition
48#*******************************************************************************
49
50
51#*******************************************************************************
52# library
53#*******************************************************************************
54LDLIBS += -lpthread -lm -lrt
55CFLAGS += -I$(SOFT_TIMER_PATH)
56CFLAGS += -I$(zte_app_path)/zte_comm/rtc-service
57LDLIBS += -lnvram -lpthread -lsoft_timer -lsoftap
58#LDFLAGS += -L../soft_timer -lsofttimer
59#*******************************************************************************
60# library path
61#*******************************************************************************
62LDLIBS += -L$(WORKPATH)/libnvram
63LDLIBS += -L$(WORKPATH)/libsoft_timer
64LDLIBS += -L$(zte_lib_path)/libsoftap
65#*******************************************************************************
66# targets
67#*******************************************************************************
68lib: $(OBJS)
69 @echo Compiling zte_watchdog libraries.
70
71clean:
72 -rm -f $(OBJS)
73
74
75