# Simple example of Makefile use
 
CC     = g++
 
INCS = `root-config --cflags`
LIBS = `root-config --libs`
 
media : media.cxx
	$(CC) -o media media.cxx

media_fun : media_fun.cxx
	$(CC) -o media_fun media_fun.cxx

TF1example : TF1example.cxx
	$(CC) -o TF1example TF1example.cxx $(INCS) $(LIBS)

TH1example : TH1example.cxx
	$(CC) -o TH1example TH1example.cxx $(INCS) $(LIBS)

TGraphexample : TGraphexample.cxx
	$(CC) -o TGraphexample TGraphexample.cxx $(INCS) $(LIBS)

all : media media_fun TF1example TH1example TGraphexample

clean :
	rm -rf media media_fun T*example
