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/.gitignore | 1 + core/Makefile | 5 +++-- core/ls | Bin 58216 -> 0 bytes 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 core/.gitignore delete mode 100755 core/ls (limited to 'core') diff --git a/core/.gitignore b/core/.gitignore new file mode 100644 index 0000000..994a687 --- /dev/null +++ b/core/.gitignore @@ -0,0 +1 @@ +objects/ 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: diff --git a/core/ls b/core/ls deleted file mode 100755 index 6cfe041..0000000 Binary files a/core/ls and /dev/null differ -- cgit v1.2.3-70-g09d2