forked from martin-segersten/space_war
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (30 loc) · 1.3 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
CC = g++
CFLAGS = -c
LFLAGS = -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf
OBJECTS = main.o Objects.o Player.o timer.o Gamestates.o GamestateGameplay.o general.o
space_war : $(OBJECTS)
$(CC) $(LFLAGS) $(OBJECTS) -o space_war
main.o : main.cpp Gamestates.h general.h
$(CC) $(LFLAGS) $(CFLAGS) main.cpp -o main.o
GamestateGameplay.o : GamestateGameplay.cpp Gamestates.h timer.h Objects.h
$(CC) $(LFLAGS) $(CFLAGS) GamestateGameplay.cpp -o GamestateGameplay.o
Gamestates.o : Gamestates.cpp Gamestates.h timer.h Objects.h
$(CC) $(LFLAGS) $(CFLAGS) Gamestates.cpp -o Gamestates.o
Player.o : Player.cpp Objects.h general.h
$(CC) $(LFLAGS) $(CFLAGS) Player.cpp -o Player.o
Objects.o : Objects.cpp Objects.h general.h
$(CC) $(LFLAGS) $(CFLAGS) Objects.cpp -o Objects.o
ParticleEngine.o : ParticleEngine.cpp ParticleEngine.h Particle.h
$(CC) $(LFLAGS) $(CLFLAGS) ParticleEngine.cpp -o ParticleEngine.o
Particle.o : Particle.cpp Particle.h
$(CC) $(LFLAGS) $(CLFLAGS) Particle.cpp -o Particle.o
general.o : general.cpp general.h
$(CC) $(LFLAGS) $(CFLAGS) general.cpp -o general.o
timer.o : timer.cpp timer.h
$(CC) $(LFLAGS) $(CFLAGS) timer.cpp -o timer.o
Gamestates.h : Objects.h timer.h
Objects.h : general.h
clean:
\rm *.o *~ space_war
tar:
tar cfv space_war.tar *.h *.cpp files/