We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 572d12a commit 0704b44Copy full SHA for 0704b44
.gitignore
@@ -1,2 +1,3 @@
1
main
2
build/
3
+zig-cache
Makefile
build.zig
@@ -0,0 +1,22 @@
+const Builder = @import("std").build.Builder;
+
+pub fn build(b: &Builder) {
4
+ const exe = b.addCExecutable("main");
5
+ exe.addCompileFlags([][]const u8 {
6
+ "-std=c99"
7
+ });
8
9
+ const source_files = [][]const u8 {
10
+ "compute.c",
11
+ "compute_helper.c",
12
+ "display.c",
13
+ "main.c"
14
+ };
15
16
+ for (source_files) |source| {
17
+ exe.addSourceFile(source);
18
+ }
19
20
+ exe.setOutputPath("./main");
21
+ b.default_step.dependOn(&exe.step);
22
+}
0 commit comments