Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:14

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-phase1.cc ${SACMS}/Geoms/CMS-phase2.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_phase1_BIN = ../CMS-phase1.bin
0016 GEO_phase2_BIN = ../CMS-phase2.bin
0017 
0018 vpath %.cc ${SACMS}/Geoms
0019 
0020 all: ${TGTS} ${GEO_phase1_BIN} ${GEO_phase2_BIN}
0021 
0022 %.o: %.cc %.d
0023         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${VEC_HOST} -c -o $@ $<
0024 
0025 %.d: %.cc
0026         ${MAKEDEPEND} -o $@ $<
0027 
0028 ../%.so: %.o
0029         ${CXX} -shared -L.. -lMicCore -o $@ $<
0030 
0031 ${GEO_phase1_BIN}:
0032         curl http://xrd-cache-1.t2.ucsd.edu/matevz/PKF/CMS-phase1.bin -o $@
0033 
0034 ${GEO_phase2_BIN}:
0035         curl http://xrd-cache-1.t2.ucsd.edu/matevz/PKF/CMS-phase2.bin -o $@
0036 
0037 ifeq ($(filter clean distclean, ${MAKECMDGOALS}),)
0038 include ${DEPS}
0039 endif
0040 
0041 clean:
0042         -rm -f *.so *.o *.om *.d *.optrpt
0043 
0044 distclean: clean
0045         -rm -f ${TGTS}
0046 
0047 echo:
0048         @echo SRCS = ${SRCS}
0049         @echo DEPS = ${DEPS}
0050         @echo OBJS = ${OBJS}