diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 01:13:51 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 01:13:51 +0100 |
| commit | 3f79b7bd553a52fca7a098f5195b406ff9970491 (patch) | |
| tree | 99d0399141e7894219fe7a0deed1ccadb226b9c9 /core/Makefile | |
| parent | 919450dc7d965c4067287e1ece3ceafdde8ff5a9 (diff) | |
add list and static library builder
Diffstat (limited to 'core/Makefile')
| -rw-r--r-- | core/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile new file mode 100644 index 0000000..3382b52 --- /dev/null +++ b/core/Makefile @@ -0,0 +1,14 @@ +SRC=$(wildcard *.c) +OBJ=$(SRC:.c=) + +all: ${OBJ} + +options: + @echo SRC: ${SRC} + @echo OBJ: ${OBJ} + +%: %.c + gcc $< -o $@ ../lib/slib.a -static -nostdlib -fno-stack-protector -Wno-implicit-function-declaration -fno-builtin -g + +clean: + rm ${OBJ} |