-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.win
46 lines (34 loc) · 2.28 KB
/
Makefile.win
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
# Project: River Raid
# Makefile created by Dev-C++ 5.11
CPP = g++.exe -D__DEBUG__
CC = gcc.exe -D__DEBUG__
WINDRES = windres.exe
OBJ = main.o RRApp.o Asset.o RRMap.o Bullet.o Enemy.o Fuel.o
LINKOBJ = main.o RRApp.o Asset.o RRMap.o Bullet.o Enemy.o Fuel.o
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc -L"C:/SDL2-2.0.5/x86_64-w64-mingw32/lib" -L"C:/SDL2-2.0.5/SDL2_image-2.0.1/x86_64-w64-mingw32/lib" -L"C:/SDL2-2.0.5/SDL2_ttf-2.0.14/x86_64-w64-mingw32/lib" -lSDL2 -lSDL2main -lSDL2_image -lSDL2_ttf -g3
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/SDL2-2.0.5/x86_64-w64-mingw32/include" -I"C:/SDL2-2.0.5/SDL2_image-2.0.1/x86_64-w64-mingw32/include" -I"C:/SDL2-2.0.5/x86_64-w64-mingw32/include/SDL2" -I"C:/SDL2-2.0.5/SDL2_ttf-2.0.14/x86_64-w64-mingw32/include"
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++" -I"C:/SDL2-2.0.5/x86_64-w64-mingw32/include" -I"C:/SDL2-2.0.5/SDL2_image-2.0.1/x86_64-w64-mingw32/include" -I"C:/SDL2-2.0.5/x86_64-w64-mingw32/include/SDL2" -I"C:/SDL2-2.0.5/SDL2_ttf-2.0.14/x86_64-w64-mingw32/include"
BIN = river.exe
CXXFLAGS = $(CXXINCS) -std=c++11 -g3 -O3 -Wall
CFLAGS = $(INCS) -std=c++11 -g3 -O3 -Wall
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
main.o: main.cpp
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)
RRApp.o: RRApp.cpp
$(CPP) -c RRApp.cpp -o RRApp.o $(CXXFLAGS)
Asset.o: Asset.cpp
$(CPP) -c Asset.cpp -o Asset.o $(CXXFLAGS)
RRMap.o: RRMap.cpp
$(CPP) -c RRMap.cpp -o RRMap.o $(CXXFLAGS)
Bullet.o: Bullet.cpp
$(CPP) -c Bullet.cpp -o Bullet.o $(CXXFLAGS)
Enemy.o: Enemy.cpp
$(CPP) -c Enemy.cpp -o Enemy.o $(CXXFLAGS)
Fuel.o: Fuel.cpp
$(CPP) -c Fuel.cpp -o Fuel.o $(CXXFLAGS)