diff --git a/src/build_rule.rs b/src/build_rule.rs index 1760dd8..4ad55b8 100644 --- a/src/build_rule.rs +++ b/src/build_rule.rs @@ -66,7 +66,7 @@ impl BuildRule { let mut prerequisites: Vec = 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)); diff --git a/src/main.rs b/src/main.rs index 18bb07a..e4300e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }