~ac/chnode

ref: a31b3e57897391f735fc67e63e5e6c5bd7068ff4 chnode/Makefile -rw-r--r-- 473 bytes
a31b3e57 — Ant Cosentino add check for command processor, resolve todo, handle other command processor errors 1 year, 2 months ago
                                                                                
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
chnode: *.c
	cc \
		-fsanitize=undefined,nullability,integer \
		-std=c18 \
		-Wall \
		-D PREFIX="\"$(shell echo $$HOME)\"" \
		-D TRACE \
		-pedantic \
		$^ \
		$(shell curl-config --libs) \
		-o $@

.PHONY: install
install: *.c
	cc \
		-O3 \
		-D_FORTIFY_SOURCE=2 \
		-D PREFIX="\"$(PREFIX)\"" \
		-std=c18 \
		-Wall \
		-pedantic \
		$^ \
		$(shell curl-config --libs) \
		-o chnode
	cp -r chnode $(PREFIX)/bin

clean:
	-rm -f *.o *.out chnode
	-rm -rf $$HOME/.chnode