forked from irenedutta23/HmmAna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 866 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
CXX = g++
CXXFLAGS= $(shell root-config --cflags)
LIBS = $(shell root-config --libs)
SOURCES = RoccoR.cc MainEvent.cc HmmAnalyzer.cc
HEADERS = RoccoR.h MainEvent.h HmmAnalyzer.h
OBJECTS = $(SOURCES:.cc=.o)
EXECUTABLE = analyzeHmm
all: $(SOURCES) $(EXECUTABLE)
%.o: %.cc $(HEADERS)
@echo Compiling $<...
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(EXECUTABLE): $(OBJECTS)
@echo "Linking $(EXECUTABLE) ..."
@echo "@$(CXX) $(LIBS) $(OBJECTS) -o $@"
@$(CXX) -o $@ $^ $(LIBS)
@echo "done"
# Specifying the object files as intermediates deletes them automatically after the build process.
.INTERMEDIATE: $(OBJECTS)
# The default target, which gives instructions, can be called regardless of whether or not files need to be updated.
.PHONY : clean
clean:
rm -f $(OBJECTS) $(EXECUTABLE)
###
MainEvent.o: MainEvent.h
AnalyzeHmm.o:MainEvent.h HmmAnalyzer.h