Fixing Makefile for program name
This commit is contained in:
parent
b18854c74f
commit
bbfd39916a
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
main
|
||||||
|
bff
|
||||||
|
*.o
|
9
Makefile
9
Makefile
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user