diff options
| author | Chloe M <chloe@faracom.org> | 2026-08-15 23:01:43 -0500 |
|---|---|---|
| committer | Chloe M <chloe@faracom.org> | 2026-08-15 23:02:02 -0500 |
| commit | 708526c3dc1f0dace5a7f518c02c6ab7a6951664 (patch) | |
| tree | fe379dae23eb1679b1202dea07c2728928448b48 /head | |
| parent | 9c80ee7c449fc9ebdfe41c3e4c0dfaa9fb55ccc8 (diff) | |
build: Add support for cleaning object files
Signed-off-by: Chloe M <chloe@faracom.org>
Diffstat (limited to 'head')
| -rw-r--r-- | head/bop/build.h | 14 |
1 files changed, 13 insertions, 1 deletions
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 @@ -7,12 +7,24 @@ #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 */ |
