-
Notifications
You must be signed in to change notification settings - Fork 186
/
Makefile
39 lines (29 loc) · 997 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
#
# Copyright (c) 2015 - 2020 DisplayLink (UK) Ltd.
#
FLAGS=-Werror -Wextra -Wall -Wno-error=missing-field-initializers -Werror=sign-compare
FLAGS_C=$(FLAGS) -Wmissing-prototypes -Wstrict-prototypes -Werror=discarded-qualifiers
FLAGS_CXX=$(FLAGS)
.PHONY: module library pyevdi
all: module library pyevdi
module:
CFLAGS="-isystem./include -isystem./include/uapi $(FLAGS_C) $(CFLAGS)" $(MAKE) -C module $(MFLAGS)
library:
CFLAGS="-I../module $(FLAGS_C) $(CFLAGS)" $(MAKE) -C library $(MFLAGS)
pyevdi:
CXXFLAGS="-I../module -I../library $(FLAGS_CXX) $(CXXFLAGS)" $(MAKE) -C pyevdi $(MFLAGS)
module-rc:
ci/build_against_kernel --repo-ci rc
all-with-rc-linux: module-rc library pyevdi
install:
$(MAKE) -C module install
$(MAKE) -C library install
$(MAKE) -C pyevdi install
uninstall:
$(MAKE) -C module uninstall
$(MAKE) -C library uninstall
$(MAKE) -C pyevdi uninstall
clean:
$(MAKE) clean -C module $(MFLAGS)
$(MAKE) clean -C library $(MFLAGS)
$(MAKE) clean -C pyevdi $(MFLAGS)