From 708526c3dc1f0dace5a7f518c02c6ab7a6951664 Mon Sep 17 00:00:00 2001 From: Chloe M Date: Sat, 15 Aug 2026 23:01:43 -0500 Subject: build: Add support for cleaning object files Signed-off-by: Chloe M --- head/bop/build.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'head') diff --git a/head/bop/build.h b/head/bop/build.h index ff4c8e5..0041044 100644 --- a/head/bop/build.h +++ b/head/bop/build.h @@ -6,13 +6,25 @@ #ifndef BOP_BUILD_H #define BOP_BUILD_H 1 +/* + * Build operations that can be performed + * + * @BUILD_OP_BUILD: Build all CFILES and ASMFILES + * @BUILD_OP_CLEAN: Clean all object files + */ +typedef enum { + BUILD_OP_BUILD, + BUILD_OP_CLEAN +} build_op_t; + /* * Build a directory * * @dirpath: Directory to build + * @bop: Build operation to perform * * Returns zeron on success */ -int bop_build_dir(const char *dirpath); +int bop_build_dir(const char *dirpath, build_op_t bop); #endif /* !BOP_BUILD_H */ -- cgit v1.2.3