21 lines
231 B
Makefile
21 lines
231 B
Makefile
|
.PHONY: clean, mrproper
|
||
|
CC = gcc
|
||
|
CFLAGS = -g -Wall
|
||
|
|
||
|
all: main
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||
|
|
||
|
main: main.o
|
||
|
$(CC) $(CFLAGS) -o $@ $+
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o core.*
|
||
|
|
||
|
mrproper: clean
|
||
|
rm -f main
|
||
|
|
||
|
run: main
|
||
|
./$< ./hello_world.bf
|