From bbfd39916a3c498dea0c4c0b0e67c53866286cb3 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Thu, 26 Oct 2023 14:19:06 +0200 Subject: [PATCH] Fixing Makefile for program name --- .gitignore | 3 +++ Makefile | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d645b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +main +bff +*.o diff --git a/Makefile b/Makefile index a57f52c..cdcfad7 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,16 @@ CC = gcc CFLAGS = -g -Wall -all: main +all: bff %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< -main: main.o +bff: main.o $(CC) $(CFLAGS) -o $@ $+ clean: rm -f *.o core.* mrproper: clean - rm -f main - -run: main - ./$< ./hello_world.bf + rm -f bff