aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libgui/Makefile')
-rw-r--r--libs/libgui/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/libgui/Makefile b/libs/libgui/Makefile
new file mode 100644
index 0000000..3e2b0b2
--- /dev/null
+++ b/libs/libgui/Makefile
@@ -0,0 +1,25 @@
+# MIT License, Copyright (c) 2020 Marvin Borner
+
+COBJS = psf.o \
+ bmp.o \
+ png.o \
+ gfx.o \
+ gui.o \
+ msg.o
+CC = ccache ../../cross/opt/bin/i686-elf-gcc
+LD = ccache ../../cross/opt/bin/i686-elf-ld
+AR = ccache ../../cross/opt/bin/i686-elf-ar
+
+CFLAGS = $(CFLAGS_DEFAULT) -I../ -I../libc/inc/ -Duserspace
+
+all: libgui
+
+%.o: %.c
+ @$(CC) -c $(CFLAGS) $< -o $@
+
+libgui: $(COBJS)
+ @mkdir -p ../../build/
+ @$(AR) rcs ../../build/libgui.a $+
+
+clean:
+ @find . -name "*.o" -type f -delete