-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (33 loc) · 870 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
CXX=g++
CXXFLAGS=-O -Wall -fPIC
RINT=-DWITHRINT
THREAD_LIB=-lpthread
#use TRint or TApplication
CXXFLAGS += $(RINT)
## Libs
ROOTCXXFLAGS = $(shell root-config --cflags)
ROOTLDFLAGS = $(shell root-config --ldflags)
ROOTLIBS = $(shell root-config --libs)
ROOTGLIBS = $(shell root-config --glibs)
LIBS = ${THREAD_LIB} -lcurses
LIBS += $(ROOTLIBS)
CXXFLAGS += $(ROOTCXXFLAGS)
#objects
PLOTT_OBJ = Plotter.o
PLMAK_OBJ = PlotMaker.o
##Build
all: PlotMaker Plotter
Plotter: $(PLOTT_OBJ)
@echo ""
@echo "Compiling objects ($(PLOTT_OBJ)) ... "
@$(CXX) $(PLOTT_OBJ) $(ROOTLDFLAGS) -o Plotter PlotMaker.o -g $(LIBS) -lm -lEG
PlotMaker: $(PLMAK_OBJ)
@echo ""
@echo "Compiling objects ($(PLMAK_OBJ)) ... "
@$(CXX) -c $(PLMAK_OBJ) $(ROOTLDFLAGS) -o -g $(LIBS) -lm -lEG
## Clean
clean:
@echo "Cleaning path ... "
rm -rf *.o
rm -rf Plotter
rm -rf *~