summaryrefslogtreecommitdiff
path: root/userland/libgui/Makefile
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
commit4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch)
tree80f156b7940d9d19971395f335530170c69516c7 /userland/libgui/Makefile
Move everything into a new repo.
Diffstat (limited to 'userland/libgui/Makefile')
-rw-r--r--userland/libgui/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/userland/libgui/Makefile b/userland/libgui/Makefile
new file mode 100644
index 0000000..5a895c4
--- /dev/null
+++ b/userland/libgui/Makefile
@@ -0,0 +1,17 @@
+CC="/home/anton/prj/osdev/sysroot/bin/i686-sb-gcc"
+AR="/home/anton/prj/osdev/sysroot/bin/i686-sb-ar"
+#CFLAGS = -ggdb -ffreestanding -O0 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough -nostdlib -static -Wno-undef -fsanitize=shift,signed-integer-overflow,bounds
+CFLAGS = -O2 -ggdb -ffreestanding -O0 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough -nostdlib -static -Wno-undef
+BINS=libgui.a
+all: $(BINS)
+LIBS=-L../libc -lc -L../json -ljson -lgcc
+OBJ=libgui.o
+
+libgui.o: libgui.c
+ $(CC) $(CFLAGS) -c libgui.c -I../libc/ -I../json/ $(LIBS)
+
+libgui.a: $(OBJ)
+ $(AR) rcs libgui.a $^
+
+clean:
+ rm $(OBJ) $(BINS)