-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (24 loc) · 1.87 KB
/
makefile
File metadata and controls
31 lines (24 loc) · 1.87 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
28
29
30
31
SDL_include="C:\Users\joey\Desktop\台大\計算機程式\lib_SDL\SDL2-2.0.3\i686-w64-mingw32\include\SDL2"
SDL_lib="C:\Users\joey\Desktop\台大\計算機程式\lib_SDL\SDL2-2.0.3\i686-w64-mingw32\lib"
SDL_image_include=C:\Users\joey\Desktop\台大\計算機程式\lib_SDL2_image-2.0.1\i686-w64-mingw32\include\SDL2
SDL_image_lib=C:\Users\joey\Desktop\台大\計算機程式\lib_SDL2_image-2.0.1\i686-w64-mingw32\lib
SDL_ttf_include="C:\Users\joey\Desktop\台大\計算機程式\lib_SDL2_ttf-2.0.14\i686-w64-mingw32\include\SDL2"
SDL_ttf_lib="C:\Users\joey\Desktop\台大\計算機程式\lib_SDL2_ttf-2.0.14\i686-w64-mingw32\lib"
output=output.exe
all: main
main: character.o game.o map.o mission.o object.o screen.o
g++.exe -L $(SDL_lib) -L $(SDL_image_lib) -L $(SDL_ttf_lib) -o $(output) character.o game.o map.o mission.o object.o screen.o -m32 -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf
character.o: character.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c character.cpp -o character.o
game.o: game.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -Wall -Wextra -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c game.cpp -o game.o
map.o: map.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -Wall -Wextra -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c map.cpp -o map.o
mission.o: mission.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -Wall -Wextra -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c mission.cpp -o mission.o
object.o: object.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -Wall -Wextra -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c object.cpp -o object.o
screen.o: screen.cpp
g++.exe -Wall -g -m32 -std=c++11 -O2 -Wall -Wextra -I $(SDL_include) -I $(SDL_image_include) -I $(SDL_ttf_include) -c screen.cpp -o screen.o
clear:
cmd /c del character.o game.o map.o mission.o object.o screen.o $(output)