From a7784a7eaa8cbd267db83f43662b68cfaab18444 Mon Sep 17 00:00:00 2001 From: aspiring_aurelian Date: Fri, 8 Dec 2023 10:30:58 -0600 Subject: Update target --- main.c | 4 ++-- makefile | 2 +- 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 -- cgit v1.2.3