summary refs log tree commit diff
path: root/Makefile
blob: 5da7d551041b020c0f9ed84df02943eee2db2db2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
EXE = wlb
OBJ != find -type f -name '*.c' | sed 's/\.c$$/.o/'
CFLAGS = -Wall -Wpedantic -std=c17 -Os
LDFLAGS = -s

.PHONY: run all clean

all: ${EXE}
run: ${EXE}
	./${EXE}
clean:
	rm ${EXE} ${OBJ}

${EXE}: ${OBJ}
	${CC} ${OBJ} -o ${EXE} ${LDFLAGS}