forked from github188/x1Indoor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-bak.bak
114 lines (98 loc) · 2.86 KB
/
Makefile-bak.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
BIN = image/bin/main
1CC = g++
CC = /home/share/kf3/opt/arm_toolchain-x1/external-toolchain/bin/arm-none-linux-gnueabi-gcc
CPP = /home/share/kf3/opt/arm_toolchain-x1/external-toolchain/bin/arm-none-linux-gnueabi-g++
STRIP = /home/share/kf3/opt/arm_toolchain-x1/external-toolchain/bin/arm-none-linux-gnueabi-strip
INC = -I . -I ./include -I ./main -I ./gui -I ./logic -I ./storage -I ./driver \
-I ./lib/dpbaseLinux -I ./lib/minigui/include
LIB = -L ./lib/dpbaseLinux/lib -L ./lib/minigui/lib \
-Xlinker "-(" -lpthread -lrt -lasound \
-lAudioCore -lAudioOut -lMP3dec -lfreetype -ljpeg \
-lnetcfg -lSilkCodec -lOnVif -lwpa_cli -lDPCall -lDPSip -lz -lpng -lminigui_ths -Xlinker "-)"
DEFINE = -D DPLINUX
#DEFINE = -D DPLINUX -D _DEBUG
USERFLAGS :=
DEBUGFLAGS :=
OPTIMIZEFLAGS =
CFLAGS = -c -Wall -O2 -rdynamic $(DEFINE)
CPPFLAGS = -c -Wall -O2 -rdynamic $(DEFINE)
TMP_CSRCS = $(wildcard *.c \
./main/*.c \
./gui/alarm/*.c \
./gui/blgn/*.c \
./gui/cctrl/*.c \
./gui/call/*.c \
./gui/comm/*.c \
./gui/ctrl/*.c \
./gui/jiadian/*.c \
./gui/lyly/*.c \
./gui/message/*.c \
./gui/photo/*.c \
./gui/set/*.c \
./gui/set/Alarm/*.c \
./gui/set/Jiadian/*.c \
./gui/set/Project/*.c \
./gui/set/System/*.c \
./gui/set/User/*.c \
./gui/yuyue/*.c \
./logic/*.c \
./logic/alarm/*.c \
./logic/call/*.c \
./logic/comm/*.c \
./logic/dianti/*.c \
./logic/ipmodule/*.c \
./logic/jiadian/*.c \
./logic/linkage/*.c \
./logic/netcom/*.c \
./logic/message/*.c \
./logic/timer/*.c \
./logic/yuyue/*.c \
./logic/set/*.c \
./logic/media/*.c \
./logic/media/rtp/*.c \
./logic/media/ace_src/*.c \
./logic/media/ace_src/audio_processing/utility/*.c \
./logic/media/ace_src/signal_processing/*.c \
./driver/*.c \
./storage/alarm/*.c \
./storage/call/*.c \
./storage/comm/*.c \
./storage/ipmodule/*.c \
./storage/jiadian/*.c \
./storage/jrly/*.c \
./storage/lyly/*.c \
./storage/message/*.c \
./storage/netdoor/*.c \
./storage/rtsp/*.c \
./storage/photo/*.c \
./storage/timer/*.c \
./storage/yuyue/*.c)
TMP_CPPSRCS = $(wildcard *.cpp)
CPPSRCS = $(TMP_CPPSRCS)
CSRCS = $(TMP_CSRCS)
COBJS := $(CSRCS:.c=.o)
CPPOBJS := $(CPPSRCS:.cpp=.o)
CFLAGS += $(DEBUGFLAGS)
CPPFLAGS += $(DEBUGFLAGS)
CFLAGS += $(OPTIMIZEFLAGS)
CPPFLAGS += $(OPTIMIZEFLAGS)
CFLAGS += $(USERFLAGS)
CPPFLAGS += $(USERFLAGS)
RES_PATH = image/res/
ETC_PATH = image/etc/
# $(COBJS) : %.o : %.c 表示所有.o文件依赖于.c 目标文件为COBJS依赖于.o
# $< 第一个依赖文件 $@ 目标文件
all : $(BIN)
$(COBJS) : %.o : %.c
@$(CC) -c $< -o $@ $(INC) $(CFLAGS) $(LIB)
$(CPPOBJS) : %.o : %.cpp
@$(CPP) -c $< -o $@ $(INC) $(CPPFLAGS) $(LIB)
$(BIN) : $(COBJS) $(CPPOBJS)
@$(CPP) -o $(BIN) $(COBJS) $(CPPOBJS) $(LIB)
@-rm $(COBJS) $(CPPOBJS)
@$(STRIP) $(BIN)
@echo "build success!"
clean:
@rm -f $(BIN) $(COBJS) $(CPPOBJS)
@rm -rf $(RES_PATH) $(ETC_PATH)
@echo "clean success!"