aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-13 22:31:46 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-13 22:31:46 +0200
commit360da84db0d7165c84d160b518f39cd16006c758 (patch)
treea6fea5da753ec4ac5a37237cefda52801f9647ac /src/lib
parent27a6934ea3073c3eaf782cc7615ce4ed0dbf4a18 (diff)
downloadkogata-360da84db0d7165c84d160b518f39cd16006c758.tar.gz
kogata-360da84db0d7165c84d160b518f39cd16006c758.zip
Migrate to BAM build tool
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libkogata/Makefile13
-rw-r--r--src/lib/libkogata/bam.lua4
2 files changed, 4 insertions, 13 deletions
diff --git a/src/lib/libkogata/Makefile b/src/lib/libkogata/Makefile
deleted file mode 100644
index 7a1a2ee..0000000
--- a/src/lib/libkogata/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-OBJ = start.o malloc.o debug.o syscall.o \
- mainloop.o gip.o draw.o keyboard.o \
- stdio.o unistd.o
-
-LIB = ../../common/libkogata/libkogata.lib ../../common/libalgo/libalgo.lib ../../common/libc/libc.lib
-
-CFLAGS = -I ../include -I ../../common/include
-
-LDFLAGS =
-
-OUT = libkogata.lib
-
-include ../../rules.make
diff --git a/src/lib/libkogata/bam.lua b/src/lib/libkogata/bam.lua
new file mode 100644
index 0000000..1e69e5d
--- /dev/null
+++ b/src/lib/libkogata/bam.lua
@@ -0,0 +1,4 @@
+local source = Collect('src/lib/libkogata/*.c')
+local obj = Compile(user_settings, source)
+
+libkogata = {obj, common_libc, common_libalgo, common_libkogata}