-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (25 loc) · 1.27 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
ROOTFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs)
all: BrainInWorld
clean:
rm -rf BrainInWorld lib/*.o
BrainInWorld: lib/Neuron.o lib/Brain.o lib/Entity.o lib/Fire.o lib/Food.o lib/Bot.o lib/BrainInWorld.o
c++ lib/Neuron.o lib/Brain.o lib/Entity.o lib/Fire.o lib/Food.o lib/Bot.o lib/BrainInWorld.o -o BrainInWorld $(ROOTFLAGS) $(ROOTLIBS) -O3
TestNeuron: Neuron.o TestNeuron.o
c++ lib/Neuron.o lib/TestNeuron.o -o TestNeuron $(ROOTFLAGS) $(ROOTLIBS) -O3
lib/Neuron.o: interface/Neuron.h src/Neuron.cc
c++ -c src/Neuron.cc -o lib/Neuron.o -c $(ROOTFLAGS) -O3
lib/Brain.o: interface/Brain.h src/Brain.cc
c++ -c src/Brain.cc -o lib/Brain.o -c $(ROOTFLAGS) -O3
lib/Entity.o: interface/Entity.h src/Entity.cc
c++ -c src/Entity.cc -o lib/Entity.o -c $(ROOTFLAGS) -O3
lib/Fire.o: interface/Fire.h src/Fire.cc
c++ -c src/Fire.cc -o lib/Fire.o -c $(ROOTFLAGS) -O3
lib/Food.o: interface/Food.h src/Food.cc
c++ -c src/Food.cc -o lib/Food.o -c $(ROOTFLAGS) -O3
lib/Bot.o: interface/Bot.h src/Bot.cc
c++ -c src/Bot.cc -o lib/Bot.o -c $(ROOTFLAGS) -O3
lib/BrainInWorld.o: BrainInWorld.cc
c++ -c BrainInWorld.cc -o lib/BrainInWorld.o -c $(ROOTFLAGS) -O3
lib/TestNeuron.o: test/TestNeuron.cc
c++ -c test/TestNeuron.cc -o lib/TestNeuron.o -c $(ROOTFLAGS) -O3