-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (21 loc) · 827 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
SPRITE = galaga/sprites/
PROJ = galaga/sprites/projectiles/
SHIP = galaga/sprites/ship/
CREEP = galaga/sprites/creeps/
FLAGS = -std=c++14 -Wall
default:
make final
clean:
rm sprite.o proj.o ship.o creep.o
sprite.o: $(SPRITE)sprite.cpp $(SPRITE)sprite.h
g++ -c $(SPRITE)sprite.cpp -o sprite.o $(FLAGS)
proj.o: $(PROJ)projectile.cpp $(PROJ)projectile.h sprite.o
g++ -c $(PROJ)projectile.cpp sprite.o -o proj.o $(FLAGS)
ship.o: $(SHIP)ship.cpp $(SHIP)ship.h sprite.o proj.o
g++ -c $(SHIP)ship.cpp sprite.o proj.o -o ship.o $(FLAGS)
creep.o: $(CREEP)creep.cpp $(CREEP)creep.h sprite.o proj.o
g++ -c $(CREEP)creep.cpp sprite.o proj.o -o creep.o $(FLAGS)
final: final.cpp ship.o creep.o proj.o
g++ final.cpp gfxnew.o ship.o creep.o proj.o -lX11 -o final $(FLAGS)
new:
g++ new1.cpp gfxnew.o -lX11 -o test