summaryrefslogtreecommitdiff
path: root/head
diff options
context:
space:
mode:
Diffstat (limited to 'head')
-rw-r--r--head/bop/build.h18
-rw-r--r--head/bop/common.h21
-rw-r--r--head/bop/hook.h18
3 files changed, 57 insertions, 0 deletions
diff --git a/head/bop/build.h b/head/bop/build.h
new file mode 100644
index 0000000..ff4c8e5
--- /dev/null
+++ b/head/bop/build.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2026, Chloe M., et al.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef BOP_BUILD_H
+#define BOP_BUILD_H 1
+
+/*
+ * Build a directory
+ *
+ * @dirpath: Directory to build
+ *
+ * Returns zeron on success
+ */
+int bop_build_dir(const char *dirpath);
+
+#endif /* !BOP_BUILD_H */
diff --git a/head/bop/common.h b/head/bop/common.h
new file mode 100644
index 0000000..4e41a1e
--- /dev/null
+++ b/head/bop/common.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2026, Chloe M., et al.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef BOP_COMMON_H
+#define BOP_COMMON_H 1
+
+/* ENV for bop build directory */
+#define BOP_BUILD_ENV "BOP_BUILD"
+
+/* BOP version */
+#define BOP_VERSION "v0.0.1"
+
+/* Default BOP cflags */
+#define BOP_DEFAULT_CFLAGS "-Wall", "-pedantic", "-Ihead"
+
+/* Default C compiler */
+#define BOP_CC "/usr/bin/clang"
+
+#endif /* !BOP_COMMON_H */
diff --git a/head/bop/hook.h b/head/bop/hook.h
new file mode 100644
index 0000000..d78f2d7
--- /dev/null
+++ b/head/bop/hook.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2026, Chloe M., et al.
+ * Provided under the BSD-3 clause.
+ */
+
+#ifndef BOP_HOOK_H
+#define BOP_HOOK_H 1
+
+/*
+ * Run a shell script build hook
+ *
+ * @hook_path: Path to hook
+ *
+ * Returns zero on success
+ */
+int bop_shell_hook(const char *hook_path);
+
+#endif /* !BOP_HOOK_H */