diff options
| -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 |