aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authoraspiring_aurelian <tom.wells46@protonmail.com>2023-12-07 20:31:56 -0600
committeraspiring_aurelian <tom.wells46@protonmail.com>2023-12-07 20:31:56 -0600
commite03a3015c611ca9c2847c5ca15c49d644b3ef1a8 (patch)
tree4c05e040457e6b68d929f9f3585f224e9a7ba9d7 /main.c
Initial commit
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..7380acf
--- /dev/null
+++ b/main.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+int main() {
+ int fd = creat("makefile", S_IRWXU | S_IXGRP | S_IXOTH);
+ FILE *file = fdopen(fd, "w");
+ fprintf(file, "debug: main.c\n\tgcc -Wall main.c -o ./bin/debug");
+ fclose(file);
+
+ mkdir("./bin", 0777);
+
+ return 0;
+}