bulk changes: main feat: GNU target

This commit is contained in:
2025-08-23 07:20:35 -04:00
parent fb12449431
commit ea32095d27
12 changed files with 817 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
prefix = /usr/bin
YAIT_SRCS := $(wildcard src/*.c)
YAIT_OBJS := $(patsubst src/%.c,build/obj/%.o,$(YAIT_SRCS))
YAIT := bin/yait
@@ -16,9 +17,13 @@ all: build $(YAIT)
build:
mkdir -p bin
mkdir -p build/obj
$(YAIT): $(YAIT_SRCS) config.mak
$(CC) $(CFLAGS) -Iinclude -DCOMMIT=$(shell git rev-list --count --all) $(YAIT_SRCS) -o $@
build/obj/%.o: src/%.c config.mak
$(CC) $(CFLAGS) -Iinclude -c $< -o $@
$(YAIT): $(YAIT_OBJS)
$(CC) $(CFLAGS) -Iinclude -DCOMMIT=$(shell git rev-list --count --all) $^ -o $@
endif
@@ -32,6 +37,7 @@ uninstall:
clean:
$(RM) -rf bin
$(RM) -rf build
dist-clean: clean
$(RM) -f config.mak