From c2d6e46a104e3ee7b9824e00bd54303a2215a402 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 3 Aug 2025 01:58:00 -0400 Subject: lib: Introduce initial liboda sources Please refer to 'share/docs/lib/liboda.md' for more information on the OSMORA Display Architecture (ODA). Signed-off-by: Ian Moffett --- lib/liboda/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/liboda/Makefile (limited to 'lib/liboda/Makefile') diff --git a/lib/liboda/Makefile b/lib/liboda/Makefile new file mode 100644 index 0000000..5b4022c --- /dev/null +++ b/lib/liboda/Makefile @@ -0,0 +1,29 @@ +CFLAGS = -c -fno-stack-protector -nostdlib -static \ + -Iinclude/ -I$(USRDIR)/include/ +CFILES = $(shell find src/ -name "*.c") +OBJ = $(CFILES:.c=.o) + +all: headers $(OBJ) build/liboda.a + echo $(USRDIR) + mv build/liboda.a $(USRDIR)/lib/ + cp -r include/ $(USRDIR)/include/ + +build/liboda.a: + mkdir -p build/ + ar rcs build/liboda.a $(OBJ) + +%.o: %.c + $(CC) $(CFLAGS) -Iinclude/ $< -o $@ + +.PHONY: headers +headers: + cp -rf include/* $(USRDIR)/include/ + +.PHONY: +build/: + mkdir -p build/ + +.PHONY: clean +clean: + rm -f $(OBJ) + rm -rf build/ -- cgit v1.2.3