project setup

This commit is contained in:
Lorenzo Torres 2026-01-17 11:55:02 +01:00
commit b8d5044e64
6 changed files with 647 additions and 0 deletions

17
makefile Normal file
View file

@ -0,0 +1,17 @@
include config.mk
SRC_LIB:=lib/sweet.c
OBJ_LIB:=$(SRC_LIB:.c=.o)
all: libsweet.a
libsweet.a: $(OBJ_LIB)
$(AR) $(ARFLAGS) $@ $(OBJ_LIB)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
@rm -rfv $(OBJ_LIB) libsweet.a
.PHONY: clean libsweet.a