# Makefile for fitter_tree, program to extract info from a # fitter.hddm file and write it out to a root tree. CXXFLAGS += -g -I. -I$(HALLD_HOME)/include `root-config --cflags` CFLAGS = $(CXXFLAGS) BINDIR = $(HALLD_MY)/bin/$(BMS_OSNAME) all: install install: mkbindir fitter_tree install fitter_tree $(BINDIR) mkbindir: test -d $(BINDIR) || mkdir -p $(BINDIR) fitter_tree: fitter_tree.o hddm_fitter.o g++ -o fitter_tree fitter_tree.o hddm_fitter.o `root-config --libs` fitter_tree.o: hddm_fitter.h hddm_fitter.h hddm_fitter.c: ../fitter/fitter_template.hddm hddm-c ../fitter/fitter_template.hddm hddm_fitter.o: hddm_fitter.c gcc -c $(CFLAGS) hddm_fitter.c clean: rm -rv *.o fitter_tree # end of makefile