Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
eb34a2d3
Commit
eb34a2d3
authored
Oct 09, 2017
by
Simon Spannagel
Browse files
Remove obsolete Makefile
parent
e0f8b448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
deleted
100644 → 0
View file @
e0f8b448
BINDIR
=
bin/
SRCDIR
=
src/
INCLUDE_PATH
=
-I
core
\
-I
algorithms
\
-I
objs
# Compiler
CC
=
g++
# Compiler flags
ROOTCFLAGS
:=
$(
shell
root-config
--cflags
)
ROOTLIBS
:=
$(
shell
root-config
--glibs
)
CFLAGS
=
-fPIC
-w
-g
-W
${ROOTCFLAGS}
-O3
#-std=c++0x
LFLAGS
=
${ROOTLIBS}
-g
-lGenVector
-lMinuit
-O3
# Automatically decide what to compile
# Core parts of the framework
CORE
=
$(
notdir
$(
wildcard
core/
*
.C
))
OBJS
=
$(CORE:.C=.o)
OBJS
:=
$(
addprefix
${BINDIR}
,
${OBJS}
)
# Data classes
DATAOBJS
=
$(
wildcard
${PWD}
/objs/
*
.h
)
DATACLASS
=
$(
notdir
$(
wildcard
${PWD}
/objs/
*
.C
))
DATACLASSOBJS
=
$(DATACLASS:.C=.do)
DATACLASSOBJS
:=
$(
addprefix
${BINDIR}
,
${DATACLASSOBJS}
)
# User algorithms
ALGORITHMS
=
$(
notdir
$(
wildcard
algorithms/
*
.C
))
ALGOBJS
=
$(ALGORITHMS:.C=.ao)
ALGOBJS
:=
$(
addprefix
${BINDIR}
,
${ALGOBJS}
)
# Executable
EXE
=
${BINDIR}
tbAnalysis
# Compile core, user algorithms and make an executable for each user algorithm
all
:
${OBJS} ${ALGOBJS} ${DATACLASSOBJS} ${EXE}
@
echo
"Done"
# Compile core algorithms (everything .C)
${BINDIR}%.o
:
core/%.C core/%.h
@
echo
"Compiling
$(
notdir
$<
)
"
@
$(CC)
$(CFLAGS)
${INCLUDE_PATH}
-c
$<
-o
$@
${BINDIR}%.ao
:
algorithms/%.C algorithms/%.h
@
echo
"Compiling
$(
notdir
$<
)
"
@
$(CC)
$(CFLAGS)
${INCLUDE_PATH}
-c
$<
-o
$@
${BINDIR}%.do
:
objs/%.C objs/%.h
@
echo
"Compiling
$(
notdir
$<
)
"
@
$(CC)
$(CFLAGS)
${INCLUDE_PATH}
-c
$<
-o
$@
${BINDIR}Steering.o
:
core/Steering.C
@
echo
"Compiling steering file"
@
$(CC)
$(CFLAGS)
${INCLUDE_PATH}
-c
core/Steering.C
-o
${BINDIR}
Steering.o
${BINDIR}EventDict.o
:
${DATAOBJS}
@
echo
"Making event dictionary"
@
rm
-f
core/EventDict.C core/EventDict.h
@
rootcint core/EventDict.C
-c
${DATAOBJS}
@
$(CC)
$(CFLAGS)
${INCLUDE_PATH}
-c
core/EventDict.C
-o
${BINDIR}
EventDict.o
@
rm
-f
core/EventDict.C core/EventDict.h
@
mv
core/EventDict_rdict.pcm bin/
${EXE}
:
${BINDIR}EventDict.o ${OBJS} ${DATACLASSOBJS} ${ALGOBJS}
@
echo
"Making executable tbAnalysis"
@
$(CC)
-o
${BINDIR}
tbAnalysis
$(OBJS)
${DATACLASSOBJS}
${ALGOBJS}
${BINDIR}
EventDict.o
$(LFLAGS)
# Remove all executables and object files
clean
:
@
rm
-f
${BINDIR}
*
@
rm
-f
core/EventDict
*
@
echo
"Cleaned"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment