forked from rlite/rlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
55 lines (38 loc) · 1.32 KB
/
Makefile.in
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
FINDCMD=-type f -and \( -name "*.c" -or -name "*.h" -or -name "*.cpp" -or -name "*.hpp" -or -name "*.py" \) | grep -v "\.mod\.c" | xargs wc -l
KERNMODDIR=@ROOTDIR@/kernel
KERNBUILDDIR=@KERNBUILDDIR@
all: usr ker
usr:
cd build && @CLANG_PREFIX@ $(MAKE)
ker:
@CLANG_PREFIX@ $(MAKE) -C $(KERNBUILDDIR) M=$(KERNMODDIR) PWD=$(shell pwd)/kernel \
WITH_SHIM_UDP4=@WITH_SHIM_UDP4@ \
WITH_SHIM_TCP4=@WITH_SHIM_TCP4@ \
modules
test: usr
cd build && $(MAKE) test
usr_count:
find common user include $(FINDCMD)
ker_count:
find common kernel $(FINDCMD)
count:
cloc --exclude-dir=build,tmp-kernel-test-dir,.git . || (find common kernel user include $(FINDCMD); echo "install 'cloc' for better code statistics")
clean: usr_clean ker_clean
usr_clean:
cd build && $(MAKE) clean
ker_clean:
$(MAKE) -C $(KERNBUILDDIR) M=$(KERNMODDIR) clean
install: usr_install ker_install
usr_install:
cd build && $(MAKE) install
ker_install: @KER_INSTALL_DEPS@
$(MAKE) -C $(KERNBUILDDIR) INSTALL_MOD_PATH=@INSTALL_MOD_PATH@ M=$(KERNMODDIR) modules_install
depmod: ker_install
depmod -b @INSTALL_MOD_PATH@ -a
format:
clang-format -i -style=file $(shell git ls-files *.c *.h *.cpp *.hpp | grep -v wpa-supplicant)
clang-format -i -style=google $(shell git ls-files *.proto)
intest:
tests/run-integration-tests.sh
deb: usr
cd build && cpack -G DEB .