aboutsummaryrefslogtreecommitdiff
path: root/src/common
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/common
parent27a6934ea3073c3eaf782cc7615ce4ed0dbf4a18 (diff)
downloadkogata-360da84db0d7165c84d160b518f39cd16006c758.tar.gz
kogata-360da84db0d7165c84d160b518f39cd16006c758.zip
Migrate to BAM build tool
Diffstat (limited to 'src/common')
-rw-r--r--src/common/libalgo/Makefile11
-rw-r--r--src/common/libalgo/bam.lua3
-rw-r--r--src/common/libc/Makefile11
-rw-r--r--src/common/libc/bam.lua3
-rw-r--r--src/common/libkogata/Makefile11
-rw-r--r--src/common/libkogata/bam.lua3
6 files changed, 9 insertions, 33 deletions
diff --git a/src/common/libalgo/Makefile b/src/common/libalgo/Makefile
deleted file mode 100644
index fe6dbc6..0000000
--- a/src/common/libalgo/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-OBJ = keyval.o hashtbl.o btree.o
-
-LIB =
-
-CFLAGS = -I ../include
-
-LDFLAGS =
-
-OUT = libalgo.lib
-
-include ../../rules.make
diff --git a/src/common/libalgo/bam.lua b/src/common/libalgo/bam.lua
new file mode 100644
index 0000000..3b164a8
--- /dev/null
+++ b/src/common/libalgo/bam.lua
@@ -0,0 +1,3 @@
+local source = Collect('src/common/libalgo/*.c')
+
+common_libalgo = Compile(common_settings, source)
diff --git a/src/common/libc/Makefile b/src/common/libc/Makefile
deleted file mode 100644
index 54fa9f1..0000000
--- a/src/common/libc/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-OBJ = string.o printf.o
-
-LIB =
-
-CFLAGS = -I ../include
-
-LDFLAGS =
-
-OUT = libc.lib
-
-include ../../rules.make
diff --git a/src/common/libc/bam.lua b/src/common/libc/bam.lua
new file mode 100644
index 0000000..cee2ec4
--- /dev/null
+++ b/src/common/libc/bam.lua
@@ -0,0 +1,3 @@
+local source = Collect('src/common/libc/*.c')
+
+common_libc = Compile(common_settings, source)
diff --git a/src/common/libkogata/Makefile b/src/common/libkogata/Makefile
deleted file mode 100644
index 1c1113b..0000000
--- a/src/common/libkogata/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-OBJ = slab_alloc.o region_alloc.o mutex.o
-
-LIB =
-
-CFLAGS = -I ../include
-
-LDFLAGS =
-
-OUT = libkogata.lib
-
-include ../../rules.make
diff --git a/src/common/libkogata/bam.lua b/src/common/libkogata/bam.lua
new file mode 100644
index 0000000..30cf9eb
--- /dev/null
+++ b/src/common/libkogata/bam.lua
@@ -0,0 +1,3 @@
+local source = Collect('src/common/libkogata/*.c')
+
+common_libkogata = Compile(common_settings, source)