From 4d28974574076f482af7b631d118e24917eba3f0 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 13:37:19 +1100 Subject: fix(make): Build objects into dist/ directory --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4ba7959..640725b 100644 --- a/Makefile +++ b/Makefile @@ -6,16 +6,17 @@ SRC=$(shell find src -name "*.c") OBJ=$(SRC:.c=.o) LIB=libtinyff.a +OUTDIR=dist all: $(LIB) $(LIB): $(OBJ) - $(AR) rcs $(LIB) $(OBJ) + $(AR) rcs $(OUTDIR)/$(LIB) $(OUTDIR)/$(OBJ) %.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $(OUTDIR)/$@ clean: - rm -f $(OBJ) $(LIB) + rm -f $(OUTDIR)/$(OBJ) $(LIB) .PHONY: all clean -- cgit v1.2.3