-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (37 loc) · 1.67 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
main: main.cpp Critter.o Sensor.o Eye.o Ear.o Behavior.o Fearful.o Careful.o SuicideBomber.o Gregarious.o MultipleBehavior.o Environment.o Aquarium.o Shell.o Fin.o Camouflage.o
g++ -o main main.cpp Critter.o Sensor.o Eye.o Ear.o Behavior.o Fearful.o Careful.o SuicideBomber.o Gregarious.o MultipleBehavior.o Environment.o Aquarium.o Shell.o Fin.o Camouflage.o -I . -lX11 -lpthread
Critter.o : Critter.cpp Critter.h
g++ -c Critter.cpp
Environment.o : Environment.cpp Environment.h
g++ -c Environment.cpp -I .
Aquarium.o : Aquarium.cpp Aquarium.h
g++ -c Aquarium.cpp -I .
# ********** Sensors **********
Sensor.o : sensor/Sensor.cpp sensor/Sensor.h
g++ -c sensor/Sensor.cpp
Eye.o : sensor/Eye.cpp sensor/Eye.h
g++ -c sensor/Eye.cpp
Ear.o : sensor/Ear.cpp sensor/Ear.h
g++ -c sensor/Ear.cpp
# ********** Accessories **********
Fin.o : accessory/Fin.h accessory/Fin.cpp
g++ -c accessory/Fin.cpp
Shell.o : accessory/Shell.h accessory/Shell.cpp
g++ -c accessory/Shell.cpp
Camouflage.o : accessory/Camouflage.h accessory/Camouflage.cpp
g++ -c accessory/Camouflage.cpp
# ********** Behaviors **********
Behavior.o: behavior/Behavior.cpp behavior/Behavior.h
g++ -c behavior/Behavior.cpp
Fearful.o: behavior/Fearful.cpp behavior/Fearful.h
g++ -c behavior/Fearful.cpp
Careful.o: behavior/Careful.cpp behavior/Careful.h
g++ -c behavior/Careful.cpp
SuicideBomber.o: behavior/SuicideBomber.cpp behavior/SuicideBomber.h
g++ -c behavior/SuicideBomber.cpp
Gregarious.o: behavior/Gregarious.cpp behavior/Gregarious.h
g++ -c behavior/Gregarious.cpp
MultipleBehavior.o: behavior/MultipleBehavior.cpp behavior/MultipleBehavior.h
g++ -c behavior/MultipleBehavior.cpp
clean :
rm *.o main