Fixing Makefile for program name

This commit is contained in:
Debucquoy Anthony 2023-10-26 14:19:06 +02:00
parent b18854c74f
commit bbfd39916a
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 6 additions and 6 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
main
bff
*.o

View File

@ -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