cleaned more paths and seperated library types

This commit is contained in:
Noah Swerhun 2023-12-14 11:49:53 -06:00
parent 3c990e2ac7
commit 4412b08a45
2 changed files with 8 additions and 4 deletions

View file

@ -66,7 +66,7 @@ impl BuildRule {
let mut prerequisites: Vec<String> = Vec::new();
prerequisites.push(String::from(path));
prerequisites.push((PathBuf::from(path)).clean().to_str().unwrap().to_string());
prerequisites.append(&mut BuildRule::get_headers_from_c_file(path, makefile));

View file

@ -21,12 +21,16 @@ struct Args {
#[arg(short, long)]
run: bool,
/// Configure build rule to create a library rather than an executable (NYI)
/// Configure to build a statically linked library
#[arg(short, long)]
library: bool,
static_library: bool,
/// Configure to build a dynamically linked library
#[arg(short, long)]
dynamic_library: bool,
/// Path to makefile
#[arg(short, long, default_value = "./Makefile")]
#[arg(short, long, default_value = "Makefile")]
makefile: String,
}