From b2146cd4d6e6f5fda36d59c054e0634a2098a03c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 15 Jan 2023 10:33:54 +0100 Subject: move build to objects --- core/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/Makefile') diff --git a/core/Makefile b/core/Makefile index 3382b52..0dc6d12 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,5 +1,5 @@ SRC=$(wildcard *.c) -OBJ=$(SRC:.c=) +OBJ=$(SRC:%.c=objects/%) all: ${OBJ} @@ -7,7 +7,8 @@ options: @echo SRC: ${SRC} @echo OBJ: ${OBJ} -%: %.c +objects/%: %.c + -mkdir -p $$(dirname $@) gcc $< -o $@ ../lib/slib.a -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -fno-builtin -g clean: -- cgit v1.2.3-70-g09d2