summaryrefslogtreecommitdiff
path: root/Makefile
blob: b274ebce69fd2bb7b24486dd57ac09e66dbf450b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC=gcc
FILES:=$(wildcard src/*.c)
FILES:=$(FILES:.c=.o)

CFLAGS += -Wall
CFLAGS += -std=c99
CFLAGS += -O3
LIBS += -lcsfml-graphics 
LIBS += -lcsfml-window 
LIBS += -lcsfml-system 

all: tetris

tetris: $(FILES) 
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

clean:
	rm -f tetris $(FILES)