-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.con
37 lines (24 loc) · 1.07 KB
/
Makefile.con
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile.con
#
# This file is part of Tetris game.
# https://github.com/berk76/tetris
#
# Tetris is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version. <http://www.gnu.org/licenses/>
#
# Written by Jaroslav Beran <jaroslav.beran@gmail.com>, on 25.7.2016
CC = cc
CFLAGS = -O2 -Wall -c -o $@
LDFLAGS=-lncurses
all: Tetris
Tetris: src/main_con.o src/tetris.o src/shape.o src/tui_con.o src/wait_con.o
$(CC) -Wall -o $@ src/main_con.o src/tetris.o src/shape.o src/tui_con.o src/wait_con.o $(LDFLAGS)
src/main_con.o: src/main_con.c src/main.h src/tetris.h src/tui_con.h src/wait_con.h
src/tetris.o: src/tetris.c src/tetris.h src/main.h src/shape.h
src/shape.o: src/shape.c src/shape.h
src/tui_con.o: src/tui_con.c src/tui_con.h src/wait_con.h
src/wait_con.o: src/wait_con.c src/wait_con.h
clean:
rm -f src/*.o *.exe src/*.res Tetris