summaryrefslogtreecommitdiffstats
path: root/src/pmdk/src/tools/Makefile
blob: f94bcb7d5c19f74ff1fecf4981d38c1c026198e6 (plain)
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
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2014-2018, Intel Corporation
#
# Makefile -- top Makefile for tools
#

TOP = ../..

TESTCONFIG=$(TOP)/src/test/testconfig.sh

TARGETS = pmempool rpmemd daxio pmreorder
SCOPEDIRS=$(TARGETS)
SCOPEFILES=$(foreach dir, $(SCOPEDIRS), $(shell find $(dir) -name *.[ch] ))

all    : TARGET = all
check  : TARGET = check
test   : TARGET = test
clean  : TARGET = clean
clobber: TARGET = clobber
cstyle : TARGET = cstyle
format : TARGET = format
install: TARGET = install
uninstall: TARGET = uninstall
sync-remotes: TARGET = sync-remotes
sparse: TARGET = sparse

all clean clobber cstyle install uninstall check format test sparse: $(TARGETS)

$(TESTCONFIG):

sync-remotes: $(TARGETS) $(TESTCONFIG)

$(TARGETS):
	$(MAKE) -C $@ $(TARGET)

clean:
	$(RM) TAGS cscope.in.out cscope.out cscope.po.out

clobber: clean

cscope:
	cscope -q -b $(SCOPEFILES)
	ctags -e $(SCOPEFILES)

.PHONY: all clean clobber cstyle format install uninstall common cscope sync-remotes $(TARGETS)