commit deb9eed1f7d7442e71a6b1b72eeeb2412ffe7371
parent 6e83362402a67dc708acc6fddcc2771af9cce4d7
Author: bsandro <email@bsandro.tech>
Date: Mon, 20 Oct 2025 22:39:35 +0300
Makefile fixes
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,4 @@
*.swp
*.o
-*.out
+*.bin
micro0
diff --git a/Makefile b/Makefile
@@ -5,11 +5,14 @@ CC=cc
.PHONY: clean
+%+run: %.bin
+ ./$<
+
.SECONDARY:
-%: %.out
+%: %.bin
@:
-%.out: %.c
+%.bin: %.c
${CC} $< -std=gnu23 -Wpedantic -Os -s -fomit-frame-pointer -ffast-math -fno-stack-protector -march=native -fwrapv -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-unwind-tables -fmerge-all-constants -fno-ident -lm -lGL -lGLU -lX11 -Wl,--gc-sections -o $@
strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $@
upx -9 $@
@@ -21,8 +24,5 @@ micro: clean
xz -zce -9 micro0 >> micro.out
chmod +x micro.out
-run: shaders.out
- ./shaders.out
-
clean:
- rm -f ./*.out
+ rm -f ./*.bin