Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-21 23:14:26

0001 include ${SADIR}/Makefile.config
0002 
0003 CPPFLAGS := -I. -I${SRCDIR} -I../mkFit-external ${CPPFLAGS}
0004 
0005 CORE_DIR := ${SRCDIR}/RecoTracker/MkFitCore
0006 
0007 LIB_CORE := ../libMicCore.so
0008 
0009 TGTS := ${LIB_CORE}
0010 
0011 .PHONY: all clean distclean
0012 
0013 all: ${TGTS}
0014 
0015 SRCS := $(wildcard ${CORE_DIR}/src/*.cc) \
0016         $(wildcard ${CORE_DIR}/src/Ice/*.cc) \
0017                 $(wildcard ${CORE_DIR}/src/Matriplex/*.cc) \
0018                 $(wildcard ${SADIR}/*.cc)
0019 SRCB := $(notdir ${SRCS})
0020 DEPS := $(SRCB:.cc=.d)
0021 OBJS := $(SRCB:.cc=.o)
0022 
0023 vpath %.cc ${CORE_DIR}/src ${CORE_DIR}/src/Ice ${CORE_DIR}/src/Matriplex ${SADIR}
0024 
0025 AUTO_TGTS :=
0026 
0027 # Begin Matriplex
0028 
0029 auto-matriplex:
0030 ###     ${MAKE} -f ${CORE_DIR}/src/Matriplex auto && touch $@
0031         touch $@
0032 
0033 AUTO_TGTS += auto-matriplex
0034 
0035 ${DEPS}: auto-matriplex
0036 
0037 # End Matriplex
0038 
0039 ifeq ($(filter clean-local clean distclean, ${MAKECMDGOALS}),)
0040 include ${DEPS}
0041 endif
0042 
0043 clean-local:
0044         -rm -f ${TGTS} *.d *.o *.om *.so
0045         -rm -rf main.dSYM
0046         -rm -rf plotting/*.so plotting/*.d plotting/*.pcm
0047 
0048 clean: clean-local
0049 
0050 distclean: clean-local
0051         -rm -f ${AUTO_TGTS}
0052         -rm -f *.optrpt
0053         -rm -f ${LIB_CORE}
0054 ###     cd Matriplex && ${MAKE} distclean
0055 
0056 ${LIB_CORE}: ${OBJS}
0057         @mkdir -p $(@D)
0058         ${CXX} ${CXXFLAGS} ${VEC_HOST} ${OBJS} -shared -o $@ ${LDFLAGS_HOST} ${LDFLAGS}
0059 
0060 ${OBJS}: %.o: %.cc %.d
0061         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${VEC_HOST} -c -o $@ $<
0062 
0063 %.d: %.cc
0064         ${MAKEDEPEND} -o $@ $<
0065 
0066 echo:
0067         @echo "CXX=${CXX}"
0068         @echo SRCS = ${SRCS}
0069         @echo DEPS = ${DEPS}
0070         @echo OBJS = ${OBJS}
0071 
0072 echo_cc_defs:
0073         ${CXX} -dM -E -mavx2 - < /dev/null
0074 
0075 echo-srcs:
0076         @echo ${SRCS}
0077 
0078 echo-flags:
0079         @echo "CPPFLAGS=${CPPFLAGS}"
0080 
0081 echo-tbb:
0082         @echo "TBB_GCC=${TBB_GCC}, TBB_PREFIX=${TBB_PREFIX}, TBB_ROOT=${TBB_ROOT}"