tangled
alpha
login
or
join now
stau.space
/
tsched
0
fork
atom
Threads and Scheduling
0
fork
atom
overview
issues
pulls
pipelines
ci: Updated flags.
stau.space
6 months ago
96a7cd94
be01f937
+8
-4
1 changed file
expand all
collapse all
unified
split
Makefile
+8
-4
Makefile
···
1
1
-
SRC := src/
1
1
+
SRC := src
2
2
BUILD := .build/
3
3
CC := gcc
4
4
-
CFLAGS := -std=c11 -g -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wconversion -Wunreachable-code -pedantic -fsanitize=address -fsanitize=undefined -save-temps
5
5
-
CLIBS := -lm $(SRC)/lib/*.c
4
4
+
CFLAGS := -std=gnu23 -g -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wconversion -Wunreachable-code -pedantic -fsanitize=address -fsanitize=undefined -save-temps -Wno-builtin-declaration-mismatch -fsanitize=leak
5
5
+
6
6
+
CLIBS := $(SRC)/lib/*.c
6
7
7
8
ADDRESS := 127.0.0.1
8
9
PORT := 42069
9
10
10
10
-
run: edevice.py cluster.py
11
11
+
run: cluster.py edevice.py
11
12
12
13
# -- the targets that actually get used --
13
14
14
15
edevice.py: $(BUILD)/edevice # this is the client
16
16
+
@echo
15
17
./$^ "$(ADDRESS)" "$(PORT)"
16
18
17
19
cluster.py: $(BUILD)/cluster # this is the server
20
20
+
@echo
18
21
./$^ "$(ADDRESS)" "$(PORT)"
19
22
20
23
$(BUILD)/edevice: $(BUILD) $(SRC)/edevice.c
···
28
31
$(BUILD):
29
32
mkdir $@
30
33
34
34
+
.PHONY: clean
31
35
clean:
32
36
rm -rf $(BUILD)