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 CC = gcc
CFLAGS = -g -Wall CFLAGS = -g -Wall
all: main all: bff
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
main: main.o bff: main.o
$(CC) $(CFLAGS) -o $@ $+ $(CC) $(CFLAGS) -o $@ $+
clean: clean:
rm -f *.o core.* rm -f *.o core.*
mrproper: clean mrproper: clean
rm -f main rm -f bff
run: main
./$< ./hello_world.bf