-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (41 loc) · 857 Bytes
/
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
CXX = g++
# Warnings frequently signal eventual errors:
CXXFLAGS=`sdl2-config --cflags` -g -W -Wall -Werror -std=c++11 -Weffc++ -Wextra -pedantic -O0 -I `sdl2-config --prefix`/include/
LDFLAGS = `sdl2-config --libs` -lm -lexpat -lSDL2_ttf -lSDL2_image -lSDL2_mixer
OBJS = \
renderContext.o \
ioMod.o \
parseXML.o \
gameData.o \
viewport.o \
world.o \
collisionStrategy.o\
spriteSheet.o \
image.o \
imageFactory.o \
frameGenerator.o \
explodingSprite.o \
sprite.o \
multisprite.o \
painterSprite.o \
vector2f.o \
smartSprite.o \
bullet.o \
bulletPool.o \
chunk.o \
player.o \
clock.o \
HUD.o \
engine.o \
TwoWayMultiSprite.o \
sound.o \
main.o
EXEC = run
%.o: %.cpp %.h
$(CXX) $(CXXFLAGS) -c $< -o $@
$(EXEC): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS)
clean:
rm -rf $(OBJS)
rm -rf $(EXEC)
rm -rf frames/*.bmp