Skip to content
Snippets Groups Projects
Commit e3d4b07b authored by Charles Leggett's avatar Charles Leggett
Browse files

remove CMT configuration and related files

* removed CMT configuration files
* adapted scripts not to use CMT

Fixes GAUDI-1216
Fixes GAUDI-979

See merge request !186
parents c2d751db 1fa49f4d
No related branches found
No related tags found
1 merge request!186remove CMT configuration and related files
Pipeline #
Showing
with 0 additions and 627 deletions
#-- start of install_python ------
#-- end of install_python ------
#-- start of install_python_header ------
installarea = ${CMTINSTALLAREA}$(shared_install_subdir)
install_python_dir = $(installarea)
ifneq ($(strip "$(source)"),"")
src = ../$(source)
dest = $(install_python_dir)/python
else
src = ../python
dest = $(install_python_dir)
endif
ifneq ($(strip "$(offset)"),"")
dest = $(install_python_dir)/python
endif
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_python_dir)
@if [ ! "$(installarea)" = "" ] ; then\
echo "installation done"; \
fi
$(install_python_dir) ::
@if [ "$(installarea)" = "" ] ; then \
echo "Cannot install header files, no installation source specified"; \
else \
if [ -d $(src) ] ; then \
echo "Installing files from $(src) to $(dest)" ; \
if [ "$(offset)" = "" ] ; then \
$(install_command) --exclude="*.py?" $(src) $(dest) ; \
else \
$(install_command) --exclude="*.py?" $(src) $(dest) --destname $(offset); \
fi ; \
else \
echo "no source $(src)"; \
fi; \
fi
${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
@if test "$(installarea)" = ""; then \
echo "Cannot uninstall header files, no installation source specified"; \
else \
echo "Uninstalling files from $(dest)"; \
$(uninstall_command) "$(dest)" ; \
fi
#-- end of install_python_header ------
#-- start of install_resources ------
${CONSTITUENT} :: $(destdir)/$(FILENAME)
$(destdir)/$(FILENAME): $(FULLNAME)
$(install_command) $< $(destdir)
${CONSTITUENT}clean ::
$(uninstall_command) $(destdir)/$(FILENAME)
#-- end of install_resources ------
#-- start of install_resources_header ------
installarea = ${CMTINSTALLAREA}$(shared_install_subdir)
ifeq ($(strip "$(${CONSTITUENT}_base)"),"")
${CONSTITUENT}_base=data
endif
destdir = $(installarea)/$(${CONSTITUENT}_base)/${package}/$(${CONSTITUENT}_offset)
${CONSTITUENT} ::
@echo "Installation of ${CONSTITUENT} done."
${CONSTITUENT}clean ::
@echo "Uninstallation of ${CONSTITUENT} done."
#-- end of install_resources_header ------
#-- start of install_scripts ------
#-- end of install_scripts ------
#-- start of install_scripts_header ------
installarea = ${CMTINSTALLAREA}$(shared_install_subdir)
install_scripts_dir = $(installarea)/$(offset)
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_scripts_dir)
@if [ ! "$(installarea)" = "" ]; then\
echo "installation done"; \
fi
$(install_scripts_dir) ::
@if [ "$(installarea)" = "" ]; then \
echo "Cannot install header files, no installation source specified"; \
else \
src=../$(source) ; \
dest=$(install_scripts_dir) ; \
if [ -d $$src ]; then \
echo "Installing files from source $$src to $$dest"; \
$(install_command) --exclude="*.py?" $$src $$dest ;\
chmod -R +x $$dest/$(source) ; \
else \
echo "no source $$src"; \
fi; \
fi
${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
@if test "$(installarea)" = ""; then \
echo "Cannot uninstall header files, no installation source specified"; \
else \
dest=$(install_scripts_dir) ; \
echo "Uninstalling files from $$dest"; \
$(uninstall_command) "$${dest}" ; \
fi
#-- end of install_more_includes_header ------
#-- start of libary ----------------------
${CONSTITUENT}LIB :: $(${CONSTITUENT}lib) $(${CONSTITUENT}shstamp)
$(echo) "${CONSTITUENT} : library ok"
$(${CONSTITUENT}lib) :: ${OBJS}
$(lib_echo) "static library $@"
$(lib_silent) [ ! -f $@ ] || \rm -f $@
$(lib_silent) $(ar) $(${CONSTITUENT}lib) ${OBJS}
$(lib_silent) $(ranlib) $(${CONSTITUENT}lib)
$(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp)
#------------------------------------------------------------------
# Future improvement? to empty the object files after
# storing in the library
#
## for f in $?; do \
## rm $${f}; touch $${f}; \
## done
#------------------------------------------------------------------
#
# We add one level of dependency upon the true shared library
# (rather than simply upon the stamp file)
# this is for cases where the shared library has not been built
# while the stamp was created (error??)
#
$(${CONSTITUENT}libname).$(shlibsuffix) :: $(${CONSTITUENT}lib) requirements $(use_requirements) $(${CONSTITUENT}stamps)
$(lib_echo) "shared library $@"
$(lib_silent) if test "$(makecmd)"; then QUIET=; else QUIET=1; fi; QUIET=$${QUIET} bin=$(bin) $(make_shlib) "$(tags)" ${CONSTITUENT} $(${CONSTITUENT}_shlibflags)
$(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}libname).$(shlibsuffix)
$(lib_silent) if test -f $(${CONSTITUENT}libname).$(shlibsuffix) ; then cat /dev/null >$(${CONSTITUENT}shstamp) ; fi
${CONSTITUENT}clean ::
$(cleanup_echo) objects ${CONSTITUENT}
$(cleanup_silent) /bin/rm -f ${OBJS}
$(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS})
$(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make
#-----------------------------------------------------------------
#
# New section for automatic installation
#
#-----------------------------------------------------------------
install_dir = ${CMTINSTALLAREA}/$(tag)/lib
${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).$(shlibsuffix)
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(echo) "installation done"
endif
$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(install_silent) $(cmt_install_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmd "$(cmt_installarea_command)" \
-cmtpath "$($(package)_cmtpath)"
endif
##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
ifdef CMTINSTALLAREA
$(cleanup_silent) $(cmt_uninstall_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmtpath "$($(package)_cmtpath)"
endif
#-- end of libary -----------------------
${CONSTITUENT}LIB :: $(${CONSTITUENT}lib)
@/bin/echo ${CONSTITUENT} : library ok
$(${CONSTITUENT}lib) :: ${OBJS}
$(lib_echo) "static library $@"
$(lib_silent) $(ar) $(${CONSTITUENT}lib) $?
$(lib_silent) $(ranlib) $(${CONSTITUENT}lib)
$(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp)
#------------------------------------------------------------------
# Future improvement? to empty the object files after
# storing in the library
#
## for f in $?; do \
## rm $${f}; touch $${f}; \
## done
#------------------------------------------------------------------
#-----------------------------------------------------------------
#
# New section for automatic installation
#
#-----------------------------------------------------------------
install_dir = ${CMTINSTALLAREA}/$(tag)/lib
${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).a
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(echo) "installation done"
endif
$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(install_silent) $(cmt_install_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmd "$(cmt_installarea_command)" \
-cmtpath "$($(package)_cmtpath)"
endif
##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
ifdef CMTINSTALLAREA
$(cleanup_silent) $(cmt_uninstall_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmtpath "$($(package)_cmtpath)"
endif
${CONSTITUENT}clean ::
$(cleanup_echo) objects ${CONSTITUENT}
$(cleanup_silent) /bin/rm -f ${OBJS}
$(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS})
$(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make
# $(cleanup_echo) ${OBJS}
# $(cleanup_silent) /bin/rm -f ${OBJS}
#-- end of library_no_share ------
#-- start of library_no_static ------
#${CONSTITUENT}LIB :: $(${CONSTITUENT}lib) $(${CONSTITUENT}shstamp)
${CONSTITUENT}LIB :: $(${CONSTITUENT}shstamp)
$(echo) "${CONSTITUENT} : library ok"
$(${CONSTITUENT}lib) :: ${OBJS}
$(lib_echo) "static library $@"
$(lib_silent) cd $(bin); \
$(ar) $(${CONSTITUENT}lib) $?
$(lib_silent) $(ranlib) $(${CONSTITUENT}lib)
$(lib_silent) cat /dev/null >$(${CONSTITUENT}stamp)
#------------------------------------------------------------------
# Future improvement? to empty the object files after
# storing in the library
#
## for f in $?; do \
## rm $${f}; touch $${f}; \
## done
#------------------------------------------------------------------
#
# We add one level of dependency upon the true shared library
# (rather than simply upon the stamp file)
# this is for cases where the shared library has not been built
# while the stamp was created (error??)
#
$(${CONSTITUENT}libname).$(shlibsuffix) :: ${OBJS} $(use_requirements) $(${CONSTITUENT}stamps)
$(lib_echo) "shared library $@"
$(lib_silent) $(shlibbuilder) $(shlibflags) -o $@ ${OBJS} $(${CONSTITUENT}_shlibflags)
$(${CONSTITUENT}shstamp) :: $(${CONSTITUENT}libname).$(shlibsuffix)
$(lib_silent) if test -f $(${CONSTITUENT}libname).$(shlibsuffix) ; then \
cat /dev/null >$(${CONSTITUENT}stamp) && \
cat /dev/null >$(${CONSTITUENT}shstamp) ; fi
${CONSTITUENT}clean ::
$(cleanup_echo) objects ${CONSTITUENT}
$(cleanup_silent) /bin/rm -f ${OBJS}
$(cleanup_silent) /bin/rm -f $(patsubst %.o,%.d,${OBJS}) $(patsubst %.o,%.dep,${OBJS}) $(patsubst %.o,%.d.stamp,${OBJS})
$(cleanup_silent) cd $(bin); /bin/rm -rf ${CONSTITUENT}_deps ${CONSTITUENT}_dependencies.make
#-----------------------------------------------------------------
#
# New section for automatic installation
#
#-----------------------------------------------------------------
install_dir = ${CMTINSTALLAREA}/$(tag)/lib
${CONSTITUENT}installname = $(library_prefix)${CONSTITUENT}$(library_suffix).$(shlibsuffix)
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(echo) "installation done"
endif
$(install_dir)/$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
ifdef CMTINSTALLAREA
$(install_silent) $(cmt_install_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmd "$(cmt_installarea_command)" \
-cmtpath "$($(package)_cmtpath)"
endif
##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
ifdef CMTINSTALLAREA
$(cleanup_silent) $(cmt_uninstall_action) \
-source "`(cd $(bin); pwd)`" \
-name "$(${CONSTITUENT}installname)" \
-out "$(install_dir)" \
-cmtpath "$($(package)_cmtpath)"
endif
#-- end of library_no_static ------
# File: cmt/fragments/merge_componentslist_header
# Author: Sebastien Binet (binet@cern.ch)
# Makefile fragment to merge a <library>.components file into a single
# <project>.components file in the (lib) install area
# If no InstallArea is present the fragment is dummy
.PHONY: ${CONSTITUENT} ${CONSTITUENT}clean
# default is already '#'
#genmap_comment_char := "'#'"
componentsListRef := ../$(tag)/$(library).components
ifdef CMTINSTALLAREA
componentsListDir := ${CMTINSTALLAREA}/$(tag)/lib
mergedComponentsList := $(componentsListDir)/$(project).components
stampComponentsList := $(componentsListRef).stamp
else
componentsListDir := ../$(tag)
mergedComponentsList :=
stampComponentsList :=
endif
${CONSTITUENT} :: $(stampComponentsList) $(mergedComponentsList)
@:
.NOTPARALLEL : $(stampComponentsList) $(mergedComponentsList)
$(stampComponentsList) $(mergedComponentsList) :: $(componentsListRef)
@echo "Running merge_componentslist ${CONSTITUENT}"
$(merge_componentslist_cmd) $(merge_componentslist_switch) \
--input-file $(componentsListRef) --merged-file $(mergedComponentsList)
${CONSTITUENT}clean ::
$(cleanup_silent) $(merge_componentslist_cmd) --un-merge \
--input-file $(componentsListRef) --merged-file $(mergedComponentsList) ;
$(cleanup_silent) $(remove_command) $(stampComponentsList)
# File: cmt/fragments/merge_genconfDb_header
# Author: Sebastien Binet (binet@cern.ch)
# Makefile fragment to merge a <library>.confdb file into a single
# <project>.confdb file in the (lib) install area
.PHONY: ${CONSTITUENT} ${CONSTITUENT}clean
# default is already '#'
#genconfDb_comment_char := "'#'"
instdir := ${CMTINSTALLAREA}/$(tag)
confDbRef := $(inDir)/$(library).confdb
stampConfDb := $(confDbRef).stamp
mergedConfDb := $(instdir)/lib/$(project).confdb
${CONSTITUENT} :: $(stampConfDb) $(mergedConfDb)
@:
.NOTPARALLEL : $(stampConfDb) $(mergedConfDb)
$(stampConfDb) $(mergedConfDb) :: $(confDbRef)
@echo "Running merge_genconfDb ${CONSTITUENT}"
$(merge_genconfDb_cmd) \
$(merge_genconfDb_switch) \
--input-file $(confDbRef) \
--merged-file $(mergedConfDb)
${CONSTITUENT}clean ::
$(cleanup_silent) $(merge_genconfDb_cmd) \
--un-merge \
--input-file $(confDbRef) \
--merged-file $(mergedConfDb) ;
$(cleanup_silent) $(remove_command) $(stampConfDb)
# File: cmt/fragments/merge_rootmap_header
# Author: Sebastien Binet (binet@cern.ch)
# Makefile fragment to merge a <library>.rootmap file into a single
# <project>.rootmap file in the (lib) install area
# If no InstallArea is present the fragment is dummy
.PHONY: ${CONSTITUENT} ${CONSTITUENT}clean
# default is already '#'
#genmap_comment_char := "'#'"
rootMapRef := ../$(tag)/$(library).rootmap
ifdef CMTINSTALLAREA
rootMapDir := ${CMTINSTALLAREA}/$(tag)/lib
mergedRootMap := $(rootMapDir)/$(project).rootmap
stampRootMap := $(rootMapRef).stamp
else
rootMapDir := ../$(tag)
mergedRootMap :=
stampRootMap :=
endif
${CONSTITUENT} :: $(stampRootMap) $(mergedRootMap)
@:
.NOTPARALLEL : $(stampRootMap) $(mergedRootMap)
$(stampRootMap) $(mergedRootMap) :: $(rootMapRef)
@echo "Running merge_rootmap ${CONSTITUENT}"
$(merge_rootmap_cmd) $(merge_rootmap_switch) \
--input-file $(rootMapRef) --merged-file $(mergedRootMap)
${CONSTITUENT}clean ::
$(cleanup_silent) $(merge_rootmap_cmd) --un-merge \
--input-file $(rootMapRef) --merged-file $(mergedRootMap) ;
$(cleanup_silent) $(remove_command) $(stampRootMap)
#-- start of application
$(bin)${CONSTITUENT}$(application_suffix) :: ${OBJS} $(use_stamps) $(${CONSTITUENT}_stamps) $(${CONSTITUENT}stamps) $(use_requirements)
$(link_echo) application $@
$(link_silent) ${LINKMACRO} /out:$(bin)${CONSTITUENT}$(application_suffix) @<<
${OBJS}
$(cmt_installarea_linkopts)
$(${CONSTITUENT}_use_linkopts)
$(${CONSTITUENT}linkopts)
<<
$(link_silent) mt.exe -nologo -manifest $(bin)${CONSTITUENT}$(application_suffix).manifest -outputresource:$(bin)${CONSTITUENT}$(application_suffix);1
install_dir = $(CMTINSTALLAREA)\$(tag)\bin
${CONSTITUENT}installname = ${CONSTITUENT}$(application_suffix)
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_dir)\$(${CONSTITUENT}installname)
!if "$(CMTINSTALLAREA)" != ""
$(echo) "installation done"
!endif
$(install_dir)\$(${CONSTITUENT}installname) :: $(bin)$(${CONSTITUENT}installname)
!if "$(CMTINSTALLAREA)" != ""
$(install_echo) $(@F) into $(@D)
$(install_silent) $(cmt_install_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)"
!endif
##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
!if "$(CMTINSTALLAREA)" != ""
$(cleanup_echo) "$(${CONSTITUENT}installname)" from "$(install_dir)"
$(cleanup_silent) $(cmt_uninstall_action) "$(BIN)" "$(${CONSTITUENT}installname)" "$(install_dir)"
!endif
#-- end of application
#-- start of dependency ------------------
!if defined (QUICK)
!else
!if exist ("$(CMTROOT)/$(CMTBIN)/cmt.exe")
!if [$(build_dependencies) ${CONSTITUENT} -all_sources] == 0
!endif
!else
!if [echo no cmt $(CMTROOT)/$(CMTBIN)/cmt.exe] == 0
!endif
!endif
!endif
!if defined(QUICK)
!if $(QUICK) != 2
!include $(bin)${CONSTITUENT}_dependencies.nmake
!endif
!else
!include $(bin)${CONSTITUENT}_dependencies.nmake
!endif
#-- end of dependency ------------------
# File: cmt/fragments/genconfig_header
# Author: Wim Lavrijsen (WLavrijsen@lbl.gov)
# Pere Mato
# Use genconf.exe to create configurables python modules, then have the
# normal python install procedure take over.
.PHONY: ${CONSTITUENT} ${CONSTITUENT}clean
confpy = ${CONSTITUENT}.py
conflib = $(bin)$(library_prefix)$(library).$(shlibsuffix)
dbpy = $(library)_confDb.py
instdir = $(CMTINSTALLAREA)$(shared_install_subdir)\python\$(package)
product = $(instdir)\$(confpy)
initpy = $(instdir)\__init__.py
!if defined (GENCONF_ECHO)
genconf_silent =
!else
genconf_silent = $(silent)
!endif
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install : $(outdir)\$(confpy)
@$(install_command) --exclude="*.py?" --exclude="__init__.py" $(outdir) $(conf_destdir)
$(outdir)\$(confpy) : $(conflib) $(outdir)
$(genconf_silent) "$(genconfig_cmd)" $(library_preload) $(extraModules) -o $(outdir) -p $(package) \
--configurable-module=$(confModuleName) \
--configurable-default-name=$(confDefaultName) \
--configurable-algorithm=$(confAlgorithm) \
--configurable-algtool=$(confAlgTool) \
--configurable-auditor=$(confAuditor) \
--configurable-service=$(confService) \
-i ../$(tag)/$(library_prefix)$(library).$(shlibsuffix)
$(outdir) :
@if NOT exist $(outdir) $(mkdir) $(outdir)
${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
$(cleanup_silent) $(remove_command) $(outdir)\$(confpy) $(outdir)\$(dbpy)
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
@$(uninstall_command) $(conf_destdir)
#
# We want to install all header files stored in $more and/or $offset
#
# ../<package>
#
install_dir = $(CMTINSTALLAREA)$(shared_install_subdir)\include
${CONSTITUENT} :: ${CONSTITUENT}install
install :: ${CONSTITUENT}install
${CONSTITUENT}install :: $(install_dir)
@if NOT "$(CMTINSTALLAREA)"=="" echo "installation done"
$(install_dir) ::
@if NOT "$(CMTINSTALLAREA)"=="" if NOT "$(more)"=="" $(install_command) "$(PACKAGE_ROOT)\$(more)" "$(install_dir)"
@if NOT "$(CMTINSTALLAREA)"=="" if NOT "$(offset)"=="" $(install_command) "$(PACKAGE_ROOT)\$(offset)" "$(install_dir)"
${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
uninstall :: ${CONSTITUENT}uninstall
${CONSTITUENT}uninstall ::
@if NOT "$(CMTINSTALLAREA)"=="" if NOT "$(more)"=="" $(uninstall_command) "$(install_dir)/$(more)/*"
@if NOT "$(CMTINSTALLAREA)"=="" if NOT "$(offset)"=="" $(uninstall_command) "$(install_dir)/$(offset)/*"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment