# Makefile for turning ROOT scripts into compiled programs. # This contains rules for making several different programs. ##### # Name of the program we're compiling. # No extension (that gets added later). PROGNAME = compiled_mu_fit_Rob_2004pass2 # Default program to make. all: ${PROGNAME} # List of object files from my own scripts etc. # Space-separated list. (\ at the end of a line for continuation.) MYOBJ = ${PROGNAME}.o # Directories where included files are found. (In g++ format.) #INCLUDEDIR = -I${HOME}/e614soft/twtools/tta \ # -I${HOME}/e614soft/twtools/twtcommon INCLUDEDIR = # Files These files are included, so check them for modifications # when deciding if we need to recompile. INCLUDEFILES = # These commands will get the directories for various .h files # and libraries and all those other good things ROOT programs need. # They also set up other useful compilation flags, like optimization etc. COMPILE_ROOTFLAGS = `root-config --cflags` LINK_ROOTFLAGS = `root-config --libs` # What compiler (with flags) will we use? COMPILER = g++ -m32 # Debug version: #COMPILER = g++ -m32 -g # Other: #COMPILER = g++ -O3 #COMPILER = g++ #COMPFLAGS = -fPIC COMPFLAGS = LINKFLAGS = ${PROGNAME}: ${MYOBJ} ${COMPILER} ${LINKFLAGS} ${COMPILE_ROOTFLAGS} -o ${PROGNAME} ${LINK_ROOTFLAGS} ${MYOBJ} ${PROGNAME}.o: ${PROGNAME}.C ${INCLUDEFILES} ${COMPILER} ${COMPFLAGS} -c ${COMPILE_ROOTFLAGS} ${INCLUDEDIR} ${PROGNAME}.C clean: rm -f ${MYOBJ} ${PROGNAME}