-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 841 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 841 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
34
35
36
37
PATH := $(PATH):$(PWD)/fastjet/bin
SHELL := env PATH=$(PATH) /bin/bash
CONTRIB_INC=-I${PWD}/fastjet/include/fastjet/contrib/
CONTRIB_LIB=-I${PWD}/fastjet/lib -lRecursiveTools -lNsubjettiness -lSoftKiller
CLASSES_INC=-I${PWD}/classes
CC=gcc
CXX=g++
RM=rm -f
CPPFLAGS=-g $(shell root-config --cflags) $(shell fastjet-config --cxxflags) $(CONTRIB_INC) $(CLASSES_INC) -std=c++1y -Wall
LDFLAGS=-g $(shell root-config --ldflags)
LDLIBS=-g $(shell root-config --libs) $(shell fastjet-config --libs) $(CONTRIB_LIB)
SRCS=$(wildcard src/*.cc) $(wildcard classes/*.cc)
OBJS=$(subst .cc,.o,$(SRCS))
all: analyze
analyze: $(OBJS)
$(CXX) $(LDFLAGS) -o analyze $(OBJS) $(LDLIBS)
depend: .depend
.depend: $(SRCS)
$(RM) ./.depend
$(CXX) $(CPPFLAGS) -MM $^>>./.depend;
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) *~ .depend
include .depend