-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
49 lines (37 loc) · 978 Bytes
/
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
# Makefile to build the app and libs
#
include Makefile.defs
.PHONY: all
all: tool lib
.PHONY: tool
tool:
GO111MODULE=${GO111MODVAL} ${GO} build -o ${TOOLNAME} .
.PHONY: lib
lib:
GO111MODULE=${GO111MODVAL} $(MAKE) -C csecsipid/ libso
GO111MODULE=${GO111MODVAL} $(MAKE) -C csecsipid/ liba
.PHONY: install-tool
install-tool:
cp ${TOOLNAME} ${DESTDIR}${PREFIX}/bin/
.PHONY: install-lib
install-lib:
$(MAKE) -C csecsipid/ install-libso
$(MAKE) -C csecsipid/ install-liba
.PHONY: install-dev
install-dev:
$(MAKE) -C csecsipid/ install-dev
.PHONY: install-lib-all
install-lib-all: install-lib install-dev
.PHONY: install-dirs
install-dirs:
mkdir -p ${DESTDIR}${PREFIX}
mkdir -p ${DESTDIR}${PREFIX}/bin
mkdir -p ${DESTDIR}${PREFIX}/lib
mkdir -p ${DESTDIR}${PREFIX}/lib/pkgconfig
mkdir -p ${DESTDIR}${PREFIX}/include
.PHONY: install
install: install-dirs install-tool install-lib install-dev
.PHONY: clean
clean:
rm -rf ${TOOLNAME}
$(MAKE) -C csecsipid/ clean