-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
48 lines (33 loc) · 928 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
42
43
44
45
46
47
48
#makefile
CC = g++
#UCFLAGS = -O0 -g3 -Wall -gstabs+
UCFLAGS = -O3 -Wall -gstabs+ -std=c++0x
RUCFLAGS := $(shell root-config --cflags) -I./include/ -I./include/external/
LIBS := $(shell root-config --libs) -lTreePlayer
GLIBS := $(shell root-config --glibs)
VPATH = ./src/:./src/external/:./bin/
SRCPP = main.cpp\
json_reader.cpp\
json_value.cpp\
json_writer.cpp\
BinTree.cpp\
GaussKernelSmoother.cpp\
Smoother1D.cpp\
Template.cpp\
TemplateManager.cpp\
TemplateBuilder.cpp\
TemplateParameters.cpp
#OBJCPP = $(SRCPP:.cpp=.o)
OBJCPP = $(patsubst %.cpp,obj/%.o,$(SRCPP))
all : buildTemplate.exe
obj/%.o : %.cpp
@echo ">> compiling $*"
@mkdir -p obj/
@$(CC) -c $< $(UCFLAGS) $(RUCFLAGS) -o $@
buildTemplate.exe : $(OBJCPP)
@echo ">> linking..."
@$(CC) $^ $(ACLIBS) $(LIBS) $(GLIBS) -o $@
clean:
@echo ">> cleaning objects and executable"
@rm -f obj/*.o
@rm -f buildTemplate.exe