-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (32 loc) · 977 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
49
#makefile
CC = g++
UCFLAGS = -O0 -g3 -Wall -gstabs+ -std=c++0x
#UCFLAGS = -O3 -Wall -gstabs+ -std=c++0x
RUCFLAGS := $(shell root-config --cflags) -I./include/
LIBS := $(shell root-config --libs) -lTreePlayer
GLIBS := $(shell root-config --glibs)
VPATH = ./src/
SRCPP = main.cpp\
Mixer.cpp\
Utilities.cpp\
ParReader.cpp
#OBJCPP = $(SRCPP:.cpp=.o)
OBJCPP = $(patsubst %.cpp,obj/%.o,$(SRCPP))
all : mixing.exe obj/libDictionary_C.so
obj/%.o : %.cpp
@echo "> compiling $*"
@mkdir -p obj/
@$(CC) -c $< $(UCFLAGS) $(RUCFLAGS) -o $@
mixing.exe : $(OBJCPP)
@echo "> linking"
@$(CC) $^ $(ACLIBS) $(LIBS) $(GLIBS) -o $@
clean:
@echo "> Cleaning dictionary"
@rm -f obj/libDictionary_C.so
@echo "> Cleaning object files and executable"
@rm -f obj/*.o
@rm -f mixing.exe
obj/libDictionary_C.so: ./include/libDictionary.C
@echo "> Generating dictionary"
@cd include && root -b -q libDictionary.C++
@mv ./include/libDictionary_C.so ./obj/