-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 847 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 847 Bytes
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
SHELL=/bin/bash
TRGT = tf_parse
SRC_DIR = ./src
OBJ_DIR = ./bld
CC = g++
OBJS = $(OBJ_DIR)/tf_parse.o $(OBJ_DIR)/TFPWrapper.o $(OBJ_DIR)/TFileParser.o
FLAGS = `root-config --cflags`
#INCS = -I`root-config --incdir` #already included with root-config --cflags
LIBS = `root-config --evelibs` -lTMVA -lTMVAGui -lRooFitCore -lRooFitMore -lRooFit
$(TRGT) : $(OBJS)
$(CC) $(FLAGS) $(INCS) -o $(TRGT) $(OBJS) $(LIBS)
$(OBJ_DIR)/tf_parse.o :
$(CC) $(FLAGS) $(INCS) -c $(SRC_DIR)/tf_parse.cc $(LIBS)
mv tf_parse.o $(OBJ_DIR)/tf_parse.o
$(OBJ_DIR)/TFPWrapper.o :
$(CC) $(FLAGS) $(INCS) -c $(SRC_DIR)/TFPWrapper.cc $(LIBS)
mv TFPWrapper.o $(OBJ_DIR)/TFPWrapper.o
$(OBJ_DIR)/TFileParser.o :
$(CC) $(FLAGS) $(INCS) -c $(SRC_DIR)/TFileParser.cc $(LIBS)
mv TFileParser.o $(OBJ_DIR)/TFileParser.o
.PHONY : clean
clean :
-rm -rf $(TRGT) $(OBJS)