Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 include ${SADIR}/Makefile.config
0002 
0003 CPPFLAGS := -I${SRCDIR} -I../mkFit-external ${CPPFLAGS}
0004 
0005 .PHONY: all clean distclean echo
0006 
0007 SRCS := $(wildcard ${SADIR}/Geoms/*.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 vpath %.cc ${SADIR}/Geoms
0016 
0017 all: ${TGTS}
0018 
0019 %.o: %.cc %.d
0020         ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${VEC_HOST} -c -o $@ $<
0021 
0022 %.d: %.cc
0023         ${MAKEDEPEND} -o $@ $<
0024 
0025 ../%.so: %.o
0026         ${CXX} -shared -L.. -lMicCore -o $@ $<
0027 
0028 ifeq ($(filter clean distclean, ${MAKECMDGOALS}),)
0029 include ${DEPS}
0030 endif
0031 
0032 clean:
0033         -rm -f *.so *.o *.om *.d *.optrpt
0034 
0035 distclean: clean
0036         -rm -f ${TGTS}
0037 
0038 echo:
0039         @echo SRCS = ${SRCS}
0040         @echo DEPS = ${DEPS}
0041         @echo OBJS = ${OBJS}