summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe M <chloe@faracom.org>2026-08-16 00:14:01 -0500
committerChloe M <chloe@faracom.org>2026-08-16 00:14:01 -0500
commit28b5f78c5b21afaa5f91889139c2a50254e9da89 (patch)
tree1a5e2239296ccaefc90a21372acd41620465b9db
parentbbc81042481e8e32a7e5cc1d90d53d585a548d23 (diff)
build: Use bop instead of makefile
Signed-off-by: Chloe M <chloe@faracom.org>
-rw-r--r--Makefile14
-rw-r--r--build.sh5
-rw-r--r--levd/.bop/posthook.sh1
-rw-r--r--levd/Makefile13
-rw-r--r--levd/levd.obin0 -> 2888 bytes
-rw-r--r--newpass/.bop/posthook.sh1
-rw-r--r--newpass/Makefile13
-rw-r--r--newpass/newpass.c (renamed from newpass/core/newpass.c)0
-rw-r--r--newpass/newpass.obin0 -> 6400 bytes
9 files changed, 7 insertions, 40 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index f6bba39..0000000
--- a/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-.PHONY: all
-all: bin levd newpass
-
-.PHONY: bin
-bin:
- mkdir -p bin/
-
-.PHONY: newpass
-newpass:
- cd newpass/; $(MAKE)
-
-.PHONY: levd
-levd:
- cd levd/; $(MAKE)
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..0d7206c
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+mkdir -p bin/
+BOP_BUILD=levd bop build
+BOP_BUILD=newpass bop build
diff --git a/levd/.bop/posthook.sh b/levd/.bop/posthook.sh
new file mode 100644
index 0000000..38e4479
--- /dev/null
+++ b/levd/.bop/posthook.sh
@@ -0,0 +1 @@
+clang levd/*.o -o bin/levd
diff --git a/levd/Makefile b/levd/Makefile
deleted file mode 100644
index 9088129..0000000
--- a/levd/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-CFILES = \
- levd.c
-
-OUT_FILE = ../bin/levd
-CFLAGS = -Wall -pedantic
-CC = clang
-
-.PHONY: all
-all: $(OUT_FILE)
-
-.PHONY: $(OUT_FILE)
-$(OUT_FILE):
- $(CC) $(CFLAGS) $(CFILES) -o $@
diff --git a/levd/levd.o b/levd/levd.o
new file mode 100644
index 0000000..9d82094
--- /dev/null
+++ b/levd/levd.o
Binary files differ
diff --git a/newpass/.bop/posthook.sh b/newpass/.bop/posthook.sh
new file mode 100644
index 0000000..888db5a
--- /dev/null
+++ b/newpass/.bop/posthook.sh
@@ -0,0 +1 @@
+clang newpass/*.o -o bin/newpass
diff --git a/newpass/Makefile b/newpass/Makefile
deleted file mode 100644
index 8d28a99..0000000
--- a/newpass/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-CFILES = \
- core/newpass.c
-
-OUT_FILE = ../bin/newpass
-CFLAGS = -Wall -pedantic
-CC = clang
-
-.PHONY: all
-all: $(OUT_FILE)
-
-.PHONY: $(OUT_FILE)
-$(OUT_FILE):
- $(CC) $(CFLAGS) $(CFILES) -o $@
diff --git a/newpass/core/newpass.c b/newpass/newpass.c
index 93b481f..93b481f 100644
--- a/newpass/core/newpass.c
+++ b/newpass/newpass.c
diff --git a/newpass/newpass.o b/newpass/newpass.o
new file mode 100644
index 0000000..b1c41cc
--- /dev/null
+++ b/newpass/newpass.o
Binary files differ