forked from Metaswitch/chronos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (36 loc) · 1.2 KB
/
Makefile
File metadata and controls
52 lines (36 loc) · 1.2 KB
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
# Top level Makefile for building chronos
# 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 := chronos
DEB_MAJOR_VERSION ?= 1.0${DEB_VERSION_QUALIFIER}
DEB_NAMES := chronos-libs chronos-libs-dbg chronos chronos-dbg
INCLUDE_DIR := ${INSTALL_DIR}/include
LIB_DIR := ${INSTALL_DIR}/lib
SUBMODULES := c-ares curl libevhtp sas-client cpp-common
include $(patsubst %, ${MK_DIR}/%.mk, ${SUBMODULES})
include ${MK_DIR}/chronos.mk
build: ${SUBMODULES} chronos
test: ${SUBMODULES} chronos_test
full_test: ${SUBMODULES} chronos_full_test
testall: $(patsubst %, %_test, ${SUBMODULES}) full_test
clean: $(patsubst %, %_clean, ${SUBMODULES}) chronos_clean
rm -rf ${ROOT}/usr
rm -rf ${ROOT}/build
distclean: $(patsubst %, %_distclean, ${SUBMODULES}) chronos_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
.PHONY: fv_test
fv_test: build/bin/chronos
./scripts/chronos_gr.py
./scripts/chronos_resync.py
./scripts/chronos_pop_errors.py
./scripts/chronos_delete_timers.py