summaryrefslogtreecommitdiff
path: root/userland/windowserver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'userland/windowserver/Makefile')
-rw-r--r--userland/windowserver/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/userland/windowserver/Makefile b/userland/windowserver/Makefile
new file mode 100644
index 0000000..f67bd66
--- /dev/null
+++ b/userland/windowserver/Makefile
@@ -0,0 +1,16 @@
+CC="/home/anton/prj/osdev/sysroot/bin/i686-sb-gcc"
+CFLAGS = -ggdb -ffreestanding -O2 -Wall -Wextra -pedantic -mgeneral-regs-only -Wimplicit-fallthrough -fsanitize=shift,signed-integer-overflow,bounds
+BIN=ws
+LIB=-L../json -ljson -L../json/hashmap -lhashmap -L../libc -lc -lgcc
+INC=-I../json/ -I../libgui/
+all: $(BIN)
+OBJ=ws.o draw.o
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(INC) $(LIB) -o $@ -c $<
+
+clean:
+ rm $(OBJ) ws
+
+$(BIN): $(OBJ)
+ $(CC) -o $(BIN) -ffreestanding -nostdlib $(CFLAGS) $(OBJ) $(LIB)