summaryrefslogtreecommitdiff
path: root/userland/json/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/json/Makefile
Move everything into a new repo.
Diffstat (limited to 'userland/json/Makefile')
-rw-r--r--userland/json/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/userland/json/Makefile b/userland/json/Makefile
new file mode 100644
index 0000000..9fcb567
--- /dev/null
+++ b/userland/json/Makefile
@@ -0,0 +1,18 @@
+#CC="/home/anton/opt/cross/bin/i686-elf-gcc"
+#AR="/home/anton/opt/cross/bin/i686-elf-ar"
+CC="/home/anton/prj/osdev/sysroot/bin/i686-sb-gcc"
+AR="/home/anton/prj/osdev/sysroot/bin/i686-sb-ar"
+CFLAGS = -O0 -Wall -Wextra -pedantic -Wimplicit-fallthrough -static -Wno-undef
+BINS=libjson.a
+all: $(BINS)
+LIBS=-L./hashmap -lhashmap
+OBJ=json.o
+
+json.o: json.c
+ $(CC) $(CFLAGS) $(LIBS) -c json.c
+
+libjson.a: $(OBJ)
+ $(AR) rcs libjson.a $^
+
+clean:
+ rm libjson.a json.o