aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraspiring_aurelian <tom.wells46@protonmail.com>2023-12-08 10:30:58 -0600
committeraspiring_aurelian <tom.wells46@protonmail.com>2023-12-08 10:30:58 -0600
commita7784a7eaa8cbd267db83f43662b68cfaab18444 (patch)
tree3f4e9bdecbb265237903688d50a8c1350701cac9
parent3d76f61ae704c737e9ec830c8a04cd1431fad2a7 (diff)
Update target
-rw-r--r--main.c4
-rw-r--r--makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 1cc6b57..b3d9eea 100644
--- a/main.c
+++ b/main.c
@@ -33,7 +33,7 @@ void *create_make() {
/* Create simple makefile */
int fd = creat("makefile", 00644);
FILE *file = fdopen(fd, "w");
- fprintf(file, "debug: main.c\n\tgcc -Wall main.c -o ./bin/debug\nrelease: main.c\n\tgcc -O2 -march-native main.c -o ./bin/release");
+ fprintf(file, "debug: main.c\n\tgcc -Wall main.c -o ./bin/debug\nrelease: main.c\n\tgcc -O2 -march=native main.c -o ./bin/release");
fclose(file);
return NULL;
@@ -73,7 +73,7 @@ int main() {
pid_t x_pid;
if ((x_pid = fork()) == 0) {
- execl("./bin/tmp", "tmp", NULL);
+ execl("./bin/debug", "debug", NULL);
}
waitpid(x_pid, NULL, 0);
diff --git a/makefile b/makefile
index 239005f..429650c 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
debug: main.c
gcc -Wall main.c -o ./bin/debug
release: main.c
- gcc -O2 -march-native main.c -o ./bin/release \ No newline at end of file
+ gcc -O2 -march=native main.c -o ./bin/release