Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-07 05:53:40

0001 include ${SADIR}/Makefile.config
0002 
0003 CPPFLAGS := -I${SRCDIR} -I../mkFit-external ${CPPFLAGS}
0004 
0005 .PHONY: all clean distclean echo
0006 
0007 SRCS := ${SACMS}/Geoms/CMS-2017.cc
0008 SRCB := $(notdir ${SRCS})
0009 DEPS := $(SRCB:.cc=.d)
0010 OBJS := $(SRCB:.cc=.o)
0011 
0012 TGTS := $(basename ${OBJS})
0013 TGTS := $(addprefix ../, $(addsuffix .so, ${TGTS}))
0014 
0015 GEO_2017_BIN = ../CMS-2017.bin
0016 
0017 vpath %.cc ${SACMS}/Geoms
0018 
0019 all: ${TGTS} ${GEO_2017_BIN}
0020 
0021 %.o: %.cc %.d
0022         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${VEC_HOST} -c -o $@ $<
0023 
0024 %.d: %.cc
0025         ${MAKEDEPEND} -o $@ $<
0026 
0027 ../%.so: %.o
0028         ${CXX} -shared -L.. -lMicCore -o $@ $<
0029 
0030 ${GEO_2017_BIN}:
0031         curl http://xrd-cache-1.t2.ucsd.edu/matevz/PKF/CMS-2017.bin -o $@
0032 
0033 ifeq ($(filter clean distclean, ${MAKECMDGOALS}),)
0034 include ${DEPS}
0035 endif
0036 
0037 clean:
0038         -rm -f *.so *.o *.om *.d *.optrpt
0039 
0040 distclean: clean
0041         -rm -f ${TGTS}
0042 
0043 echo:
0044         @echo SRCS = ${SRCS}
0045         @echo DEPS = ${DEPS}
0046         @echo OBJS = ${OBJS}