forked from Metaswitch/sprout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (31 loc) · 1.37 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
# Top level Makefile for building NGV Server components
# this should come first so make does the right thing by default
all: build
ROOT ?= ${PWD}
MK_DIR := ${ROOT}/mk
PREFIX ?= ${ROOT}/usr
INSTALL_DIR ?= ${PREFIX}
MODULE_DIR := ${ROOT}/modules
DEB_COMPONENT := sprout
DEB_MAJOR_VERSION := 1.0${DEB_VERSION_QUALIFIER}
DEB_NAMES := sprout-libs sprout-libs-dbg sprout sprout-dbg bono bono-dbg restund clearwater-sip-stress clearwater-sip-stress-dbg clearwater-sip-stress-stats
INCLUDE_DIR := ${INSTALL_DIR}/include
LIB_DIR := ${INSTALL_DIR}/lib
SUBMODULES := pjsip jsoncpp c-ares curl libevhtp libmemcached libre restund openssl websocketpp sipp sas-client
include $(patsubst %, ${MK_DIR}/%.mk, ${SUBMODULES})
include ${MK_DIR}/sprout.mk
build: ${SUBMODULES} sprout scripts/sipp-stats/clearwater-sipp-stats-1.0.0.gem
test: ${SUBMODULES} sprout_test
testall: $(patsubst %, %_test, ${SUBMODULES}) test
clean: $(patsubst %, %_clean, ${SUBMODULES}) sprout_clean
rm -rf ${ROOT}/usr
rm -rf ${ROOT}/build
distclean: $(patsubst %, %_distclean, ${SUBMODULES}) sprout_distclean
rm -rf ${ROOT}/usr
rm -rf ${ROOT}/build
include build-infra/cw-deb.mk
.PHONY: deb
deb: build deb-only
.PHONY: all build test clean distclean
scripts/sipp-stats/clearwater-sipp-stats-1.0.0.gem : $(shell find scripts/sipp-stats/ -type f | grep -v ".gem")
cd scripts/sipp-stats; gem build clearwater-sipp-stats.gemspec