aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: 7380acf0cd7334fd09de0f57326a93d5e203f3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}