From 3f79b7bd553a52fca7a098f5195b406ff9970491 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 15 Jan 2023 01:13:51 +0100 Subject: add list and static library builder --- core/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 core/Makefile (limited to 'core/Makefile') 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} -- cgit v1.2.3-70-g09d2