This commit is contained in:
2025-08-09 00:19:53 -04:00
parent cd1fded589
commit 0cecfa4c97
7 changed files with 0 additions and 92 deletions

View File

@@ -1,44 +0,0 @@
prefix = /usr/bin
PROJECT_SRCS := $(shell find . -name 'PROJECT/*.c')
PROJECT_OBJS := $(patsubst ./%.c,c-out/obj/%.o,$(PROJECT_SRCS))
PROJECT := c-out/bin/PROJECT
-include config.mak
ifeq ($(wildcard config.mak),)
all:
@echo "File config.mak not found, run configure"
@exit 1
else
all: build $(Project)
build:
mkdir -p c-out/bin
mkdir -p c-out/obj
c-out/obj/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(PROJECT): $(PROJECT_OBJS)
$(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all 2>/dev/null || echo 0) $^ -o $@
endif
install:
@echo "NOT IMPL"
exit 1
uninstall:
@echo "NOT IMPL"
exit 1
clean:
rm -rf c-out
dist-clean: clean
rm -f config.mak
.PHONY: all clean dist-clean install uninstall

0
Project/configure vendored
View File

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +0,0 @@
PREFIX=/usr/bin/
CFLAGS=-Wall -Wextra -ggdb
LDFLAGS=
CC=clang

View File

@@ -1,44 +0,0 @@
prefix = /usr/bin
SAMPLE_PROJECT_SRCS := $(shell find . -name 'SAMPLE_PROJECT/*.c')
SAMPLE_PROJECT_OBJS := $(patsubst ./%.c,c-out/obj/%.o,$(SAMPLE_PROJECT_SRCS))
SAMPLE_PROJECT := c-out/bin/SAMPLE_PROJECT
-include config.mak
ifeq ($(wildcard config.mak),)
all:
@echo "File config.mak not found, run configure"
@exit 1
else
all: build $(sample_project)
build:
mkdir -p c-out/bin
mkdir -p c-out/obj
c-out/obj/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(SAMPLE_PROJECT): $(SAMPLE_PROJECT_OBJS)
$(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all 2>/dev/null || echo 0) $^ -o $@
endif
install:
@echo "NOT IMPL"
exit 1
uninstall:
@echo "NOT IMPL"
exit 1
clean:
rm -rf c-out
dist-clean: clean
rm -f config.mak
.PHONY: all clean dist-clean install uninstall

View File