18 lines
201 B
Makefile
18 lines
201 B
Makefile
CC=gcc
|
|
CFLAG= -O -g -o
|
|
objects=main.o\
|
|
playfield.o\
|
|
input_output.o
|
|
|
|
all:main
|
|
|
|
%.o:%.c
|
|
$(CC) -c $(CFLAG) $@ $<
|
|
|
|
|
|
main: clean $(objects)
|
|
$(CC) $(objects) $(CFLAG) main
|
|
|
|
clean:
|
|
rm $(objects) || true
|