summaryrefslogtreecommitdiff
path: root/Makefile
blob: 247a4363fc0bd51418a0d9ce6fc7cab302e1bcc3 (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 += -O2
LIBS += -lcsfml-graphics 
LIBS += -lcsfml-window 
LIBS += -lcsfml-system 

all: tetris

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

clean:
	rm -f tetris $(FILES)