-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
27 lines (18 loc) · 1.15 KB
/
Copy pathmakefile
File metadata and controls
27 lines (18 loc) · 1.15 KB
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
# chessprog makefile
all: chessprog
chessprog: Chess.o Settings.o minimax.o GetMoves.o controlsv2.o gui.o
gcc -o chessprog Chess.o Settings.o minimax.o GetMoves.o controlsv2.o gui.o -ansi -pedantic-errors `sdl-config --libs` -g -lm -L/usr/local/lib/SDL_image-1.2.12/lib -lSDL_image
Chess.o: Chess.c
gcc -ansi -pedantic-errors -c -Wall -g Chess.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
controlsv2.o: controlsv2.c
gcc -ansi -pedantic-errors -c -Wall -g controlsv2.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
Settings.o: Settings.c
gcc -ansi -pedantic-errors -c -Wall -g Settings.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
minimax.o: minimax.c
gcc -ansi -pedantic-errors -c -Wall -g minimax.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
GetMoves.o: GetMoves.c
gcc -ansi -pedantic-errors -c -Wall -g GetMoves.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
gui.o: gui.c
gcc -ansi -pedantic-errors -c -Wall -g gui.c -lm `sdl-config --cflags` -I/usr/local/lib/SDL_image-1.2.12/include/SDL
clean:
-rm *.o chessprog