From d66b6169cf254cd0d7c83354170824c39a663ad5 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 25 May 2017 18:41:18 +0700 Subject: Makefile added, README.md updated --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b274ebc --- /dev/null +++ b/Makefile @@ -0,0 +1,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) -- cgit v1.2.3