forked from martinohanlon/mayhem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·88 lines (62 loc) · 3.2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
CPP = mingw32-g++.exe
CC = mingw32-gcc.exe
RES =
OBJ = allegro_compatibility.o battle_sequence.o collision.o command.o game_mgr.o intro_sequence.o player_input.o mapping_key.o mapping_joy.o menuhandler.o Mayhem2.o option.o physics.o platform_data.o player_info.o player_view.o soundfx.o ticktimer.o utils.o vaisseau_data.o vaisseau_gfx.o xc.o $(RES)
LINKOBJ = allegro_compatibility.o battle_sequence.o collision.o command.o game_mgr.o intro_sequence.o player_input.o mapping_key.o mapping_joy.o menuhandler.o Mayhem2.o option.o physics.o platform_data.o player_info.o player_view.o soundfx.o ticktimer.o utils.o vaisseau_data.o vaisseau_gfx.o xc.o $(RES)
LIBS = -L"C:\Users\mart\Documents\GitHub\mayhem" -lallegro-5.2 -lallegro_audio-5.2 -lallegro_image-5.2 -lallegro_primitives-5.2 -lallegro_font-5.2 -lallegro_ttf-5.2 -lallegro_acodec-5.2 -mwindows
INCS =
BIN = "Mayhem2.exe"
CXXINCS= -I"C:\MinGW\include" -I"C:\Users\mart\Documents\GitHub\mayhem" -O0 -g -Werror -Wno-write-strings -Wno-deprecated-declarations
INCS= -O0 -g -Werror -Wno-write-strings -Wno-deprecated-declarations
CXXFLAGS = -std=c++11 $(CXXINCS)
CFLAGS = $(INCS)
.PHONY: all all-before all-after clean clean-custom
all: all-before "Mayhem2.exe" all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "Mayhem2.exe" $(LIBS)
allegro_compatibility.o: allegro_compatibility.cpp
$(CPP) -c allegro_compatibility.cpp -o allegro_compatibility.o $(CXXFLAGS)
battle_sequence.o: battle_sequence.cpp
$(CPP) -c battle_sequence.cpp -o battle_sequence.o $(CXXFLAGS)
collision.o: collision.cpp
$(CPP) -c collision.cpp -o collision.o $(CXXFLAGS)
command.o: command.cpp
$(CPP) -c command.cpp -o command.o $(CXXFLAGS)
game_mgr.o: game_mgr.cpp
$(CPP) -c game_mgr.cpp -o game_mgr.o $(CXXFLAGS)
intro_sequence.o: intro_sequence.cpp
$(CPP) -c intro_sequence.cpp -o intro_sequence.o $(CXXFLAGS)
player_input.o: player_input.cpp
$(CPP) -c player_input.cpp -o player_input.o $(CXXFLAGS)
mapping_key.o: mapping_key.cpp
$(CPP) -c mapping_key.cpp -o mapping_key.o $(CXXFLAGS)
mapping_joy.o: mapping_joy.cpp
$(CPP) -c mapping_joy.cpp -o mapping_joy.o $(CXXFLAGS)
menuhandler.o: menuhandler.cpp
$(CPP) -c menuhandler.cpp -o menuhandler.o $(CXXFLAGS)
Mayhem2.o: Mayhem2.cpp
$(CPP) -c Mayhem2.cpp -o Mayhem2.o $(CXXFLAGS)
option.o: option.cpp
$(CPP) -c option.cpp -o option.o $(CXXFLAGS)
physics.o: physics.cpp
$(CPP) -c physics.cpp -o physics.o $(CXXFLAGS)
platform_data.o: platform_data.cpp
$(CPP) -c platform_data.cpp -o platform_data.o $(CXXFLAGS)
player_info.o: player_info.cpp
$(CPP) -c player_info.cpp -o player_info.o $(CXXFLAGS)
player_view.o: player_view.cpp
$(CPP) -c player_view.cpp -o player_view.o $(CXXFLAGS)
soundfx.o: soundfx.cpp
$(CPP) -c soundfx.cpp -o soundfx.o $(CXXFLAGS)
utils.o: utils.cpp
$(CPP) -c utils.cpp -o utils.o $(CXXFLAGS)
ticktimer.o: ticktimer.cpp
$(CPP) -c ticktimer.cpp -o ticktimer.o $(CXXFLAGS)
vaisseau_data.o: vaisseau_data.cpp
$(CPP) -c vaisseau_data.cpp -o vaisseau_data.o $(CXXFLAGS)
vaisseau_gfx.o: vaisseau_gfx.cpp
$(CPP) -c vaisseau_gfx.cpp -o vaisseau_gfx.o $(CXXFLAGS)
xc.o: xc.cpp
$(CPP) -c xc.cpp -o xc.o $(CXXFLAGS)