Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
analyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jlab
hallc
analyzer_software
analyzer
Commits
c79e5b11
Commit
c79e5b11
authored
8 years ago
by
Ole Hansen
Browse files
Options
Downloads
Patches
Plain Diff
Pick up improved dependency handling in Makefiles from master
parent
dd4179a3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+18
-23
18 additions, 23 deletions
Makefile
hana_decode/Makefile
+13
-16
13 additions, 16 deletions
hana_decode/Makefile
hana_scaler/Makefile
+13
-16
13 additions, 16 deletions
hana_scaler/Makefile
with
44 additions
and
55 deletions
Makefile
+
18
−
23
View file @
c79e5b11
...
...
@@ -133,11 +133,6 @@ ifdef ONLINE_ET
endif
MAKEDEPEND
:=
gcc
ifeq
($(shell root-config --version | cut -c1),6)
MAKEDEPEND
+=
-std
=
c++11
endif
ifdef
WITH_DEBUG
DEFINES
+=
-DWITH_DEBUG
endif
...
...
@@ -255,8 +250,12 @@ src/ha_compiledata.h: Makefile
@echo
""
>>
$@
@echo
"#endif"
>>
$@
subdirs
:
set
-e
;
for
i
in
$(
SUBDIRS
);
do
$(
MAKE
)
-C
$$
i
;
done
src/THaInterface.o
:
src/ha_compiledata.h
subdirs
:
$(SUBDIRS)
$(SUBDIRS)
:
set
-e
;
$(
MAKE
)
-C
$@
#---------- Core libraries -----------------------------------------
$(LIBHALLA).$(VERSION)
:
$(HDR) $(OBJS)
...
...
@@ -382,29 +381,25 @@ ifneq ($(NAME),analyzer)
endif
set
-e
;
for
i
in
$(
SUBDIRS
);
do
$(
MAKE
)
-C
$$
i
install
;
done
.PHONY
:
all clean realclean srcdist cvsdist subdirs static
###--- DO NOT CHANGE ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT
### YOU ARE DOING
.PHONY
:
all clean realclean srcdist cvsdist subdirs $(SUBDIRS)
.SUFFIXES
:
.SUFFIXES
:
.c .cc .cpp .C .o .d
%.o
:
%.C
ifeq
($(strip $(MAKEDEPEND)),)
$(
CXX
)
$(
CXXFLAGS
)
-MMD
-o
$@
-c
$<
@
mv
-f
$*
.d
$*
.d.tmp
else
$(
CXX
)
$(
CXXFLAGS
)
-o
$@
-c
$<
%.d
:
%.C src/ha_compiledata.h
@
echo
Creating dependencies
for
$<
# @$(SHELL) -ec '$(CXX) -MM $(CXXFLAGS) -c $< \
# | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
# [ -s $@ ] || rm -f $@'
@$(SHELL)
-ec
'$(MAKEDEPEND)
-MM
$(ROOTINC)
$(INCLUDES)
$(DEFINES)
-c
$<
\
|
sed
'\''
s%^.*\.o%$*\.o%g
'\''
\
| sed '\''s%\($*\)\.o[
:
]*%
\1
.o $@ : %g'
\'
' > $@;
\
[ -s $@ ] || rm -f $@'
###
$(
MAKEDEPEND
)
$(
ROOTINC
)
$(
INCLUDES
)
$(
DEFINES
)
-c
$<
>
$*
.d.tmp
endif
@
sed
-e
's|.*:|$*.o:|'
<
$*
.d.tmp
>
$*
.d
@
sed
-e
's/.*://'
-e
's/\\$$//'
<
$*
.d.tmp |
fmt
-1
|
\
sed
-e
's/^ *//'
-e
's/$$/:/'
>>
$*
.d
@
rm
-f
$*
.d.tmp
-include
$(DEP)
This diff is collapsed.
Click to expand it.
hana_decode/Makefile
+
13
−
16
View file @
c79e5b11
...
...
@@ -129,11 +129,6 @@ else
DEFINES
+=
$(
shell getconf LFS_CFLAGS
)
endif
MAKEDEPEND
=
g++
ifeq
($(shell root-config --version | cut -c1),6)
MAKEDEPEND
+=
-std
=
c++11
endif
export
OSNAME
:=
$(
shell
uname
)
ifeq
($(OSNAME),SunOS)
...
...
@@ -360,19 +355,21 @@ install: all
# -cp -puvf libdc.so $(ANALYZER)/$(PLATFORM)
###
.PHONY
:
all static evio tarfile version clean realclean install
.SUFFIXES
:
.SUFFIXES
:
.c .cc .cpp .C .o .d
%.o
:
%.C
$(
CXX
)
$(
CXXFLAGS
)
-c
$<
%.d
:
%.C
@
echo
Creating dependencies
for
$<
# @$(SHELL) -ec '$(CXX) -MM $(CXXFLAGS) -c $< \
# | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
# [ -s $@ ] || rm -f $@'
@$(SHELL)
-ec
'$(MAKEDEPEND)
-MM
$(ROOTINC)
$(INCLUDES)
$(DEFINES)
-c
$<
\
| sed '\''s/\($*\)\.o[
:
]*/
\1
.o $@ : /g'
\'
' > $@;
\
[ -s $@ ] || rm -f $@'
ifeq
($(strip $(MAKEDEPEND)),)
$(
CXX
)
$(
CXXFLAGS
)
-MMD
-o
$@
-c
$<
@
mv
-f
$*
.d
$*
.d.tmp
else
$(
CXX
)
$(
CXXFLAGS
)
-o
$@
-c
$<
$(
MAKEDEPEND
)
$(
ROOTINC
)
$(
INCLUDES
)
$(
DEFINES
)
-c
$<
>
$*
.d.tmp
endif
@
sed
-e
's|.*:|$*.o:|'
<
$*
.d.tmp
>
$*
.d
@
sed
-e
's/.*://'
-e
's/\\$$//'
<
$*
.d.tmp |
fmt
-1
|
\
sed
-e
's/^ *//'
-e
's/$$/:/'
>>
$*
.d
@
rm
-f
$*
.d.tmp
-include
$(DEPS)
This diff is collapsed.
Click to expand it.
hana_scaler/Makefile
+
13
−
16
View file @
c79e5b11
...
...
@@ -118,11 +118,6 @@ ARCH = linux
DEFINES
+=
$(
shell getconf LFS_CFLAGS
)
endif
MAKEDEPEND
=
g++
ifeq
($(shell root-config --version | cut -c1),6)
MAKEDEPEND
+=
-std
=
c++11
endif
export
OSNAME
:=
$(
shell
uname
)
ifeq
($(OSNAME),SunOS)
...
...
@@ -307,19 +302,21 @@ install: all
# -cp -puvf libscaler.so $(ANALYZER)/$(PLATFORM)
###
.PHONY
:
all static tarfile version clean realclean install
.SUFFIXES
:
.SUFFIXES
:
.c .cc .cpp .C .o .d
%.o
:
%.C
$(
CXX
)
$(
CXXFLAGS
)
-c
$<
%.d
:
%.C
@
echo
Creating dependencies
for
$<
# @$(SHELL) -ec '$(CXX) -MM $(CXXFLAGS) -c $< \
# | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
# [ -s $@ ] || rm -f $@'
@$(SHELL)
-ec
'$(MAKEDEPEND)
-MM
$(ROOTINC)
$(INCLUDES)
$(DEFINES)
-c
$<
\
| sed '\''s/\($*\)\.o[
:
]*/
\1
.o $@ : /g'
\'
' > $@;
\
[ -s $@ ] || rm -f $@'
ifeq
($(strip $(MAKEDEPEND)),)
$(
CXX
)
$(
CXXFLAGS
)
-MMD
-o
$@
-c
$<
@
mv
-f
$*
.d
$*
.d.tmp
else
$(
CXX
)
$(
CXXFLAGS
)
-o
$@
-c
$<
$(
MAKEDEPEND
)
$(
ROOTINC
)
$(
INCLUDES
)
$(
DEFINES
)
-c
$<
>
$*
.d.tmp
endif
@
sed
-e
's|.*:|$*.o:|'
<
$*
.d.tmp
>
$*
.d
@
sed
-e
's/.*://'
-e
's/\\$$//'
<
$*
.d.tmp |
fmt
-1
|
\
sed
-e
's/^ *//'
-e
's/$$/:/'
>>
$*
.d
@
rm
-f
$*
.d.tmp
-include
$(DEPS)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment