aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--justfile9
-rw-r--r--main.c6
3 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7fc71cc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/a.out
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..52cf61c
--- /dev/null
+++ b/justfile
@@ -0,0 +1,9 @@
+CFLAGS := "-Wno-builtin-declaration-mismatch"
+
+all: build
+
+build:
+ gcc main.c {{CFLAGS}}
+
+clean:
+ rm a.out
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..d96c299
--- /dev/null
+++ b/main.c
@@ -0,0 +1,6 @@
+int printf();
+
+int main() {
+ printf("Hello, World!\n");
+ return 0;
+}