forked from openhisilicon/HIVIEW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (65 loc) · 1.54 KB
/
Makefile
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
# Makefile for all libs
# (c) fangyi, 2014
GSF_HOME ?= $(PWD)
GSF_CPU_ARCH ?= XXX
MOD_DIRS := mod/bsp \
mod/mpp/${GSF_CPU_ARCH} \
mod/codec \
mod/rtsps \
mod/rec \
mod/webs \
mod/onvif \
mod/svp \
mod/rtmps \
mod/sips \
mod/srts \
mod/app
FW_DIRS := fw/nm \
fw/cfifo \
fw/cjson \
fw/mxml \
fw/comm \
fw/tindex \
fw/libmov \
fw/libfont \
fw/libhttp \
fw/librtp \
fw/librtsp \
fw/librtmp \
fw/libmpeg \
fw/libsip \
fw/libflv \
fw/h26xbits \
fw/gsoap \
fw/lvgl
CLEAN_DIRS := $(addprefix _cls_, $(FW_DIRS) $(MOD_DIRS))
.PHONY: mod fw $(FW_DIRS) $(MOD_DIRS) CHECK_ENV SUMMARY clean
mod: CHECK_ENV $(MOD_DIRS) SUMMARY
@echo "..."
fw: CHECK_ENV $(FW_DIRS) SUMMARY
@echo "..."
SUMMARY:
@echo ""
@echo "================ GSF-$(GSF_DEV_TYPE) ================"
@echo "All Done."
@echo "Env: $(GSF_CPU_ARCH)"
@echo "Output: $(GSF_HOME)/lib/$(GSF_CPU_ARCH)"
@echo "Output: `ls -l $(GSF_HOME)/lib/$(GSF_CPU_ARCH)`"
@echo "Output: $(GSF_HOME)/bin/$(GSF_CPU_ARCH)"
@echo "Output: `ls -l $(GSF_HOME)/bin/$(GSF_CPU_ARCH)`"
CHECK_ENV:
@echo "================ GSF-IPC ================"
@echo "Env: $(GSF_CPU_ARCH)"
ifeq ($(GSF_CPU_ARCH), XXX)
@echo "Env Error."
@exit 1
endif
$(MOD_DIRS):
@$(MAKE) -C $@ || exit "$$?"
$(FW_DIRS):
@$(MAKE) -C $@ || exit "$$?"
clean: $(CLEAN_DIRS)
#-rm $(GSF_HOME)/bin/$(GSF_CPU_ARCH)/*.exe -rf
#-rm $(GSF_HOME)/lib/$(GSF_CPU_ARCH)/*.so -rf
$(CLEAN_DIRS):
$(MAKE) -C $(patsubst _cls_%, %, $@) clean