-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (29 loc) · 1014 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
ROOTCFLAGS = $(shell root-config --cflags)
ROOTLIBS = $(shell root-config --libs) -lMinuit
ROOTGLIBS = $(shell root-config --glibs)
CXX = gcc -fPIC
LD = gcc
LDFLAGS = -g
SOFLAGS = -shared
CXXFLAGS = $(ROOTCFLAGS) -fPIC
INCLUDE_FLAGS =
LDLIBS = $(ROOTLIBS)
GLIBS = $(ROOTGLIBS)
EXE = norm
INC = norm.h
SRC = norm.cxx
OBJS = norm.o
LIB = libNORM.so
all: $(LIB)
$(LIB): $(INC) $(SRC)
@echo "####### Generating dictionary"
@rootcint -f normDict.cxx -c -p $(CXXFLAGS) \
$(INCLUDE_FLAGS) -I. $(INC) LinkDef.h
@echo "####### Building library $(LIB)"
@$(CXX) $(SOFLAGS) $(CXXFLAGS) $(ROOTLIBS) $(INCLUDE_FLAGS) -I. $(SRC) \
normDict.cxx -o $(LIB) $(ROOTLIBS)
@echo "####### Removing generated dictionary"
@rm -f normDict.cxx normDict.h
@rm -f *.o
clean:
@rm -f $(OBJS) $(EXE) normDict.cxx normDict.h $(LIB)