# Makefile for the ROOT test programs. # This Makefile shows nicely how to compile and link applications # using the ROOT libraries on all supported platforms. # # Copyright (c) 2000 Rene Brun and Fons Rademakers # # Author: Fons Rademakers, 29/2/2000 include Makefile.arch #------------------------------------------------------------------------------ ##################################### ### Real Program & compile set-up ### ##################################### HDRS = $(subst .C,.h,$(SRCS)) SRCS = $(wildcard *.C) OBJS = $(subst .C,.o,$(SRCS)) TDEFS = -D__Compiled__ -D__DEBUG__ PROGRAM = TP CXXFLAGS += -g all: ${PROGRAM} $(PROGRAM): $(OBJS) Main.o @echo "Linking $(PROGRAM) ..." @/bin/rm -f ${PROGRAM} @echo $(LD) $(LDFLAGS) Main.o $(OBJS) $(LIBS) -o $(PROGRAM) @$(LD) $(LDFLAGS) Main.o $(OBJS) $(LIBS) -o $(PROGRAM) @echo "done" ########################################################## ### Only edit this part if you wish other dependencies ### ########################################################## dump: @echo src=${SRCS}; @echo obj=${OBJS}; @echo lib=${LIBS}; @echo def=${DEFS}; @echo inc=${HDRS}; purge: @rm -f *~ clean: @rm -f *.o *~ libZEvent.so libZEvent.dylib ${PROGRAM} ClassDict.* G__* .C.o:ClassDict.cc ${SRCS} ${HDRS} $(CXX) $(CXXFLAGS) $(DEFS) -c $< .cc.o:Main.cc ${HDRS} $(CXX) $(CXXFLAGS) $(DEFS) -c $<