26 |
# "#ifdef DEBUGPAMCUT" and "#endif"). Note that if you |
# "#ifdef DEBUGPAMCUT" and "#endif"). Note that if you |
27 |
# use debug instructions also in the .h code (headers) you will also have to add -DDEBUGPAMCUT |
# use debug instructions also in the .h code (headers) you will also have to add -DDEBUGPAMCUT |
28 |
# to the compiler options for the main analysis program. |
# to the compiler options for the main analysis program. |
29 |
|
# 3) Since this is a general compiler flag it can also be used, eg., to set the -m32 flag |
30 |
OPTIMIZE = -g3 #-DDEBUGPAMCUT |
OPTIMIZE = -g3 #-DDEBUGPAMCUT |
31 |
|
|
32 |
|
# Linker flags |
33 |
|
# The flags defined here will be directly inserted into the linker invocation. Place here the |
34 |
|
# -m32 flag, for example. |
35 |
|
LINKERFLAGS = |
36 |
|
|
37 |
# Library flags |
# Library flags |
38 |
# Pamela software is modular, so some libraries may not be available in some istallations. |
# Pamela software is modular, so some libraries may not be available in some istallations. |
39 |
# To avoid linking problems, here you can define flags to exclude those parts of the |
# To avoid linking problems, here you can define flags to exclude those parts of the |
40 |
# PamCut software which make use of unavailable libraries. Remember to place |
# PamCut software which make use of unavailable libraries. Remember to place |
41 |
# the code to be excluded between proper preprocessor directives. See the documentation or the cut |
# the code to be excluded between proper preprocessor directives. See the documentation or the cut |
42 |
# TofNucleiZCut for an example. |
# TofNucleiZCut for an example. |
43 |
EXCLUSIONFLAGS = #-DNO_TOFNUCLEI -DNO_CALONUCLEI -DNO_TRKNUCLEI |
# Since PamCut headers may refer to the optional libraries, it's important to define the same |
44 |
|
# flags when compiling the analysis code. Otherwise, analysis code will include PamCut headers which, |
45 |
|
# if no exclusion flag is set, will try to include optional software headers. |
46 |
|
# Conversely, if you use optional libraries remember to tell it to the linker. |
47 |
|
|
48 |
|
EXCLUSIONFLAGS = -DNO_CALONUCLEI -DNO_TRKNUCLEI -DNO_TOFNUCLEI #-DNO_CALOPRESAMPLER |
49 |
|
|
50 |
# Put below the files on which every .cpp must depend on, ie., those files that, |
# Put below the files on which every .cpp must depend on, ie., those files that, |
51 |
# if modified, will trigger a complete recompilation of the project. |
# if modified, will trigger a complete recompilation of the project. |
71 |
endif |
endif |
72 |
|
|
73 |
# All Target |
# All Target |
74 |
all: libPamCut.so version |
all: libPamCut.so |
75 |
|
@echo |
76 |
|
@echo "**** Compiler version and compilation host ****" |
77 |
|
@$(C++) --version | grep GCC |
78 |
|
@hostname |
79 |
|
@echo |
80 |
|
|
81 |
# Tool invocations |
# Tool invocations |
82 |
libPamCut.so: $(OBJS) $(USER_OBJS) |
libPamCut.so: $(OBJS) $(USER_OBJS) |
83 |
@echo 'Building target: $@' |
@echo 'Building target: $@' |
84 |
@echo 'Invoking: GCC C++ Linker' |
@echo 'Invoking: GCC C++ Linker' |
85 |
$(C++) -shared -o"libPamCut.so" $(OBJS) |
$(C++) -shared $(LINKERFLAGS) -o"libPamCut.so" $(OBJS) |
86 |
@echo 'Finished building target: $@' |
@echo 'Finished building target: $@' |
87 |
@echo ' ' |
@echo ' ' |
88 |
|
|
110 |
fi |
fi |
111 |
@echo PamCut installed. |
@echo PamCut installed. |
112 |
|
|
113 |
version: |
.PHONY: all clean distclean install |
|
@echo |
|
|
@echo "**** Compiler version and compilation host ****" |
|
|
@$(C++) --version | grep GCC |
|
|
@hostname |
|
|
@echo |
|
|
|
|
|
.PHONY: all clean distclean install dependents version |
|
114 |
|
|