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 /core/Makefile | |
| parent | 0ef3aa8f1e3698fb3572ad722cd66226ce14815c (diff) | |
move build to objects
Diffstat (limited to 'core/Makefile')
| -rw-r--r-- | core/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
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: |