diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 10:33:54 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 10:33:54 +0100 |
| commit | b2146cd4d6e6f5fda36d59c054e0634a2098a03c (patch) | |
| tree | 7ca56e7218a739d4e0a610a0d6395dc3fbef224a | |
| parent | 0ef3aa8f1e3698fb3572ad722cd66226ce14815c (diff) | |
move build to objects
| -rw-r--r-- | core/.gitignore | 1 | ||||
| -rw-r--r-- | core/Makefile | 5 | ||||
| -rwxr-xr-x | core/ls | bin | 58216 -> 0 bytes |
3 files changed, 4 insertions, 2 deletions
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 Binary files differdeleted file mode 100755 index 6cfe041..0000000 --- a/core/ls +++ /dev/null |