-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
26 lines (19 loc) · 862 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
ROOTFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs)
all: Nestor
clean:
rm -rf Nestor lib/*.o
Nestor: Nestor.o NestorInvestment.o CSVReaderInterface.o CSVWriterInterface.o
c++ lib/Nestor.o lib/NestorInvestment.o lib/CSVReaderInterface.o lib/CSVWriterInterface.o -o Nestor $(ROOTFLAGS) $(ROOTLIBS) -O2
CSVReaderInterface.o: CSVInterface/CSVReaderInterface.cc
c++ -c CSVInterface/CSVReaderInterface.cc -O2 -Wall
mv CSVReaderInterface.o lib/
CSVWriterInterface.o: CSVInterface/CSVWriterInterface.cc
c++ -c CSVInterface/CSVWriterInterface.cc -O2 -Wall
mv CSVWriterInterface.o lib/
NestorInvestment.o: src/NestorInvestment.cc
c++ -c src/NestorInvestment.cc -c $(ROOTFLAGS) -O2
mv NestorInvestment.o lib/
Nestor.o: src/Nestor.cc src/StocksPage.cc src/FundsPage.cc
c++ -c src/Nestor.cc -c $(ROOTFLAGS) -O2
mv Nestor.o lib/