From 012bf15d20fac68da3f494c41a22bea4e389b884 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 09:21:56 +1100 Subject: feat(makefile): Add makefile and compile_commands.json --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4ba7959 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC=gcc +AR=ar +CFLAGS=-Wall -Wextra -std=c11 -O2 -Iinclude -Iinclude/tinyff -Iinclude/ext + +SRC=$(shell find src -name "*.c") +OBJ=$(SRC:.c=.o) + +LIB=libtinyff.a + +all: $(LIB) + +$(LIB): $(OBJ) + $(AR) rcs $(LIB) $(OBJ) + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -f $(OBJ) $(LIB) + +.PHONY: all clean -- cgit v1.2.3