Threads and Scheduling

ci: Updated flags.

+8 -4
+8 -4
Makefile
··· 1 - SRC := src/ 1 + SRC := src 2 2 BUILD := .build/ 3 3 CC := gcc 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 - CLIBS := -lm $(SRC)/lib/*.c 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 + 6 + CLIBS := $(SRC)/lib/*.c 6 7 7 8 ADDRESS := 127.0.0.1 8 9 PORT := 42069 9 10 10 - run: edevice.py cluster.py 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 + @echo 15 17 ./$^ "$(ADDRESS)" "$(PORT)" 16 18 17 19 cluster.py: $(BUILD)/cluster # this is the server 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 + .PHONY: clean 31 35 clean: 32 36 rm -rf $(BUILD)