-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (32 loc) · 2.72 KB
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
47
48
export LD_LIBRARY_PATH=./raylib/lib:$LD_LIBRARY_PATH
CFLAGS=-g -Wall -I./raylib/include/
LDFLAGS=-L./raylib/lib/ -lraylib -lm -lpthread -ldl -lrt -lX11
all: tetriste
tetriste: src/tetriste.o src/cli/tetriste_cli.o src/gui/tetriste_gui.o src/gui/audio/audio.o src/gui/screens/screen_title.o src/gui/screens/screen_ranking.o src/gui/screens/screen_difficulty.o src/gui/screens/screen_input.o src/gui/screens/screen_main.o src/gui/screens/screen_pause.o src/gui/screens/screen_winloss.o main.o raylib/lib/libraylib.a Makefile
gcc -o tetriste src/tetriste.o src/cli/tetriste_cli.o src/gui/tetriste_gui.o src/gui/audio/audio.o src/gui/screens/screen_title.o src/gui/screens/screen_ranking.o src/gui/screens/screen_difficulty.o src/gui/screens/screen_input.o src/gui/screens/screen_main.o src/gui/screens/screen_pause.o src/gui/screens/screen_winloss.o main.o raylib/lib/libraylib.a $(LDFLAGS)
src/tetriste.o: src/tetriste.c src/tetriste.h
gcc -o src/tetriste.o -c src/tetriste.c $(CFLAGS)
src/cli/tetriste_cli.o: src/cli/tetriste_cli.c src/cli/tetriste_cli.h
gcc -o src/cli/tetriste_cli.o -c src/cli/tetriste_cli.c $(CFLAGS)
src/gui/tetriste_gui.o: src/gui/tetriste_gui.c src/gui/tetriste_gui.h
gcc -o src/gui/tetriste_gui.o -c src/gui/tetriste_gui.c $(CFLAGS)
src/gui/audio/audio.o: src/gui/audio/audio.c src/gui/audio/audio.h
gcc -o src/gui/audio/audio.o -c src/gui/audio/audio.c $(CFLAGS)
src/gui/screens/screen_main.o: src/gui/screens/screen_main.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_main.o -c src/gui/screens/screen_main.c $(CFLAGS)
src/gui/screens/screen_title.o: src/gui/screens/screen_title.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_title.o -c src/gui/screens/screen_title.c $(CFLAGS)
src/gui/screens/screen_input.o: src/gui/screens/screen_input.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_input.o -c src/gui/screens/screen_input.c $(CFLAGS)
src/gui/screens/screen_pause.o: src/gui/screens/screen_pause.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_pause.o -c src/gui/screens/screen_pause.c $(CFLAGS)
src/gui/screens/screen_winloss.o: src/gui/screens/screen_winloss.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_winloss.o -c src/gui/screens/screen_winloss.c $(CFLAGS)
src/gui/screens/screen_difficulty.o: src/gui/screens/screen_difficulty.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_difficulty.o -c src/gui/screens/screen_difficulty.c $(CFLAGS)
src/gui/screens/screen_ranking.o: src/gui/screens/screen_ranking.c src/gui/screens/screens.h
gcc -o src/gui/screens/screen_ranking.o -c src/gui/screens/screen_ranking.c $(CFLAGS)
main.o: main.c
gcc -o main.o -c main.c $(CFLAGS)
clean:
rm ./*.o src/*.o src/cli/*.o src/gui/*.o src/gui/audio/*.o src/gui/screens/*.o