-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
66 lines (55 loc) · 1.84 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.SUFFIXES:
.PHONY: clean install
CSC := csc
CHICKEN_INSTALL := chicken-install
protocols = xdg-shell-protocol
examples = tinywl pointer
modules = slib.getopt \
wlr.backend \
wlr.render.wlr-renderer \
wlr.time \
wlr.types.wlr-box \
wlr.types.wlr-compositor \
wlr.types.wlr-cursor \
wlr.types.wlr-data-device \
wlr.types.wlr-input-device \
wlr.types.wlr-keyboard \
wlr.types.wlr-matrix \
wlr.types.wlr-pointer \
wlr.types.wlr-output \
wlr.types.wlr-output-damage \
wlr.types.wlr-output-layout \
wlr.types.wlr-region \
wlr.types.wlr-seat \
wlr.types.wlr-surface \
wlr.types.wlr-tablet-tool \
wlr.types.wlr-xcursor-manager \
wlr.types.wlr-xdg-shell \
wlr.util.edges \
wlr.util.log \
wlr.util.region \
wlr.xwayland
clean = $(addsuffix .o,$(modules) $(protocols) $(addprefix examples.,$(examples))) $(examples) \
$(addsuffix .import.scm,$(modules)) \
$(addsuffix .import.so,$(modules)) \
$(addsuffix .static.o,$(modules)) \
$(addsuffix .link,$(modules)) \
$(addsuffix .so,$(modules)) \
$(addprefix include/,$(addsuffix .h,$(protocols))) \
$(addprefix src/,$(addsuffix .c,$(protocols))) \
wlroots.build.sh wlroots.install.sh
all: $(examples)
slib.getopt.o: src/slib/getopt.scm
$(CSC) -c -unit slib/getopt -J -o $@ $<
examples.tinywl.o: src/examples/tinywl.scm slib.getopt.o
$(CSC) -c -uses slib/getopt -o $@ $<
examples.pointer.o: src/examples/pointer.scm
$(CSC) -c -o $@ $<
tinywl: examples.tinywl.o slib.getopt.o
$(CSC) -o $@ $^
pointer: examples.pointer.o
$(CSC) -o $@ $^
install:
$(CHICKEN_INSTALL)
clean:
rm -f $(clean)