aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-10 14:32:45 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-03-10 14:32:45 +0200
commit9ce9968745dc64fafc800d7ede0fb13bedc6f1db (patch)
tree15f127ea2dbee08855f8a178093b528e3727a3d5
parent66b2913da7249fe5ef51da5c662ca27167940090 (diff)
Build a test program
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ebbff3e..c55dda1 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,9 @@ CC = gcc-13
CFLAGS = -std=c2x -Iinclude
endif
-all: $(objs)
+all: out
+out: $(objs)
+ $(CC) $(CFLAGS) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<