diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-03 01:58:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-03 01:59:43 -0400 |
commit | c2d6e46a104e3ee7b9824e00bd54303a2215a402 (patch) | |
tree | e9fb76c281d69232f32a5c22d88e55ec274e602a /lib/liboda/Makefile | |
parent | 64f2e8e70e2fcfcaf311928578d2ee9894996f39 (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'lib/liboda/Makefile')
-rw-r--r-- | lib/liboda/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
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/ |