diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-02 02:47:53 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-02 02:47:53 -0400 |
commit | d68e7acced381037f49d55d083c7059cd07bc76c (patch) | |
tree | ba143cf26b52bb57a5bf9f2aa3052a96a209087b /lib/libgfx/Makefile | |
parent | 55fca707f04dbcbc92201956da85d3949f404841 (diff) |
lib: Introduce libgfx
This commit introduces libgfx which is a low-level graphics library
and does not know anything about windows, display architecture, etc.
The job of libgfx is soley to provide an API to draw shapes, graphical objects
and perform operations on them.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libgfx/Makefile')
-rw-r--r-- | lib/libgfx/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libgfx/Makefile b/lib/libgfx/Makefile new file mode 100644 index 0000000..1f866ac --- /dev/null +++ b/lib/libgfx/Makefile @@ -0,0 +1,30 @@ +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/libgfx.a + echo "----------------------------------------" + echo $(USRDIR) + mv build/libgfx.a $(USRDIR)/lib/ + cp -r include/ $(USRDIR)/include/ + +build/libgfx.a: + mkdir -p build/ + ar rcs build/libgfx.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/ |