-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
89 lines (58 loc) · 3.32 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
89
CXX=g++
LD=g++
SRC=src
CFLAGS=-Wall -pedantic -ggdb
LIBS=-lsfml-graphics -lsfml-system -lsfml-window -lsfgui
NM=ParticleSystem
all: compile
compile: $(NM)
$(NM): main.o MovingObject.o AutomatedMovingObject.o GravityPoint.o AutomatedGravityPoint.o MouseControllGravityPoint.o ParticleSystem.o ControlPanel.o Color.o Gradient.o ParticleColorManager.o Particle.o ParticleGroup.o Shape.o ShapeRectangle.o Point.o ParticleSfmlPrimitive.o ParticleSfmlSprite.o ParticlePhysics.o ShapeCircle.o Emitter.o Misc.o
$(LD) -o $(NM) main.o MovingObject.o AutomatedMovingObject.o GravityPoint.o AutomatedGravityPoint.o MouseControllGravityPoint.o ParticleSystem.o ControlPanel.o Color.o Gradient.o ParticleColorManager.o Particle.o ParticleGroup.o Shape.o ShapeRectangle.o Point.o ParticleSfmlPrimitive.o ParticleSfmlSprite.o ParticlePhysics.o ShapeCircle.o Emitter.o Misc.o $(LIBS)
main.o: $(SRC)/main.cpp $(SRC)/ParticleSystem.h
$(CXX) $(CFLAGS) -c -o $@ $<
MovingObject.o: $(SRC)/MovingObject.cpp $(SRC)/MovingObject.h
$(CXX) $(CFLAGS) -c -o $@ $<
AutomatedMovingObject.o: $(SRC)/AutomatedMovingObject.cpp $(SRC)/AutomatedMovingObject.h
$(CXX) $(CFLAGS) -c -o $@ $<
GravityPoint.o: $(SRC)/GravityPoint.cpp $(SRC)/GravityPoint.h
$(CXX) $(CFLAGS) -c -o $@ $<
AutomatedGravityPoint.o: $(SRC)/AutomatedGravityPoint.cpp $(SRC)/AutomatedGravityPoint.h
$(CXX) $(CFLAGS) -c -o $@ $<
MouseControllGravityPoint.o: $(SRC)/MouseControllGravityPoint.cpp $(SRC)/MouseControllGravityPoint.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticleSystem.o: $(SRC)/ParticleSystem.cpp $(SRC)/ParticleSystem.h $(SRC)/Particle.h $(SRC)/ParticleGroup.h $(SRC)/Color.h $(SRC)/Color.h $(SRC)/Gradient.h
$(CXX) $(CFLAGS) -c -o $@ $<
ControlPanel.o: $(SRC)/ControlPanel.cpp $(SRC)/ControlPanel.h $(SRC)/ParticleSystem.h
$(CXX) $(CFLAGS) -c -o $@ $<
Color.o: $(SRC)/Color.cpp $(SRC)/Color.h
$(CXX) $(CFLAGS) -c -o $@ $<
Gradient.o: $(SRC)/Gradient.cpp $(SRC)/Color.h $(SRC)/Gradient.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticleColorManager.o: $(SRC)/ParticleColorManager.cpp $(SRC)/ParticleColorManager.h $(SRC)/Color.h $(SRC)/ParticleGroup.h
$(CXX) $(CFLAGS) -c -o $@ $<
Particle.o: $(SRC)/Particle.cpp $(SRC)/Particle.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticlePhysics.o: $(SRC)/ParticlePhysics.cpp $(SRC)/ParticlePhysics.h $(SRC)/Particle.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticleGroup.o: $(SRC)/ParticleGroup.cpp $(SRC)/ParticleGroup.h $(SRC)/Particle.h $(SRC)/ParticlePhysics.h
$(CXX) $(CFLAGS) -c -o $@ $<
Shape.o: $(SRC)/Shape.cpp $(SRC)/Shape.h
$(CXX) $(CFLAGS) -c -o $@ $<
ShapeRectangle.o: $(SRC)/ShapeRectangle.cpp $(SRC)/ShapeRectangle.h $(SRC)/Shape.h
$(CXX) $(CFLAGS) -c -o $@ $<
ShapeCircle.o: $(SRC)/ShapeCircle.cpp $(SRC)/ShapeCircle.h $(SRC)/Shape.h
$(CXX) $(CFLAGS) -c -o $@ $<
Emitter.o: $(SRC)/Emitter.cpp $(SRC)/Emitter.h $(SRC)/ShapeCircle.cpp $(SRC)/ShapeCircle.h $(SRC)/Shape.h
$(CXX) $(CFLAGS) -c -o $@ $<
Point.o: $(SRC)/Point.cpp $(SRC)/Point.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticleSfmlPrimitive.o: $(SRC)/ParticleSfmlPrimitive.cpp $(SRC)/ParticleSfmlPrimitive.h $(SRC)/Particle.h
$(CXX) $(CFLAGS) -c -o $@ $<
ParticleSfmlSprite.o: $(SRC)/ParticleSfmlSprite.cpp $(SRC)/ParticleSfmlSprite.h $(SRC)/Particle.h
$(CXX) $(CFLAGS) -c -o $@ $<
Misc.o: $(SRC)/Misc.cpp $(SRC)/Misc.h
$(CXX) $(CFLAGS) -c -o $@ $<
clean:
rm -f *.o $(NM)
run:
./$(NM)