Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 ifndef ROOTSYS
0002 $(error ROOTSYS is not set. Please set ROOT environment properly)
0003 endif
0004 
0005 WITH_ROOT:=1
0006 
0007 include ../Makefile.config
0008 
0009 .PHONY: all clean distclean echo
0010 
0011 all: default
0012 
0013 CPPEXTRA := -I.. ${USER_CPPFLAGS} ${DEFS}
0014 LDEXTRA  := ${USER_LDFLAGS}
0015 
0016 CPPFLAGS := -I${ROOTSYS}/include ${CPPEXTRA} ${CPPFLAGS} 
0017 CXXFLAGS += ${USER_CXXFLAGS}
0018 LDFLAGS  += -L${ROOTSYS}/lib -L../lib -lCore -lRIO -lTree -lMathCore ${LDEXTRA}
0019 
0020 
0021 EXES     := writeMemoryFile
0022 
0023 default: ${EXES}
0024 
0025 clean:
0026         rm -f ${EXES} *.d *.o *.om *.so *Dict.* *.pcm
0027         rm -rf writeMemoryFile.dSYM
0028 
0029 distclean: clean
0030         rm -f *.optrpt 
0031         rm -f ${EXES} *.ah
0032 
0033 echo:
0034         @echo "CXX      = ${CXX}"
0035         @echo "CPPFLAGS = ${CPPFLAGS}"
0036         @echo "CXXFLAGS = ${CXXFLAGS}"
0037         @echo "LDFLAGS  = ${LDFLAGS}"
0038         @echo "EXES     = ${EXES}"
0039 
0040 
0041 ################################################################
0042 
0043 SRCS := WriteMemoryFile.cc
0044 
0045 OBJS := $(SRCS:.cc=.o)
0046 
0047 #libDicts.so: DictsDict.o
0048 #       ${CXX} ${CXXFLAGS} ${LDFLAGS} $< -shared -o $@ ${LDFLAGS_HOST}
0049 
0050 DictsDict.cc: DictsLinkDef.h
0051         rootcint -v3 -f $@ -c -p $<
0052 
0053 writeMemoryFile: ${OBJS} DictsDict.o
0054         ${CXX} ${CXXFLAGS} ${LDFLAGS} $^ -L.. -lMicCore -Wl,-rpath=..,-rpath=.,-rpath=../lib -o $@
0055 
0056 %.o: %.cc
0057         ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c -o $@ $<