first commit 🎉

This commit is contained in:
ari melody 2025-05-05 17:44:20 +01:00
commit b6a4bb5a58
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
8 changed files with 213 additions and 0 deletions

View file

@ -0,0 +1,22 @@
CC = clang
CFLAGS = -std=c17 -g -Wall
LD = ld
LDFLAGS = -shared -g -lc
LIBRARY = aridoodle.so
SRCS = $(shell find . -name '*.c')
OBJS = $(SRCS:.c=.o)
.PHONY: all
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
$(LD) $(LDFLAGS) -o $(LIBRARY) $(OBJS)
%.c.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(OBJS) $(LIBRARY)