summary refs log tree commit diff
diff options
context:
space:
mode:
authorwrmr2024-10-30 14:18:15 -0500
committerwrmr2024-10-30 14:18:15 -0500
commit3dd482cd75e14b2b438282b686ace59d436d502c (patch)
tree5ce17feebeab520ca1243debb86f54a856b7ac14
initial commit
-rw-r--r--Makefile15
-rw-r--r--main.c2
2 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5da7d55
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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}
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..e8599dc
--- /dev/null
+++ b/main.c
@@ -0,0 +1,2 @@
+int main(void) {
+}