summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2025-03-28 19:52:47 +0200
committerdweller <dweller@cabin.digital>2025-03-28 19:52:47 +0200
commitb41ec911812e66931f01939378979845716b6119 (patch)
tree08be727857d9881182a723af382680c48fb89434 /Makefile
parent2bcb97cade32e4781135ff4c1500b95fcf351889 (diff)
experimenting with UI
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4f32fb4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+.POSIX:
+.SUFFIXES:
+
+CC = gcc
+CFLAGS = -std=c89 -Wall -Wextra -fwhole-program
+X11FLAGS = -lm -lX11 -lxcb -lXau -lXdmcp
+
+x11: artifacts/xip-8
+
+artifacts/xip-8: sources/*.c resources/icon.tga.h
+ $(CC) $(CFLAGS) $(X11FLAGS) sources/main.c -o artifacts/xip-8
+
+artifacts/bin2c: utils/bin2.c
+ $(CC) $(CFLAGS) utils/bin2.c -o artifacts/bin2c
+
+resources/icon.tga.h: resources/icon.tga artifacts/bin2c
+ ./artifacts/bin2c resources/icon.tga
+
+run: x11
+ ./artifacts/xip-8
+
+clean:
+ rm -f resources/*.h
+ rm -rf artifacts/*