all: libmyarray.so test

clean:
	rm -f *.o
	rm -f *Dict*
	rm -f *.so
	rm -f *~


libDict.cxx: histo.h myarray.h
	rootcint -f libDict.cxx -c $^ LinkDef.h

libDict.o: libDict.cxx
	g++ -I$(ROOTSYS)/include -c libDict.cxx


libmyarray.so:  libDict.o
	g++ -shared $^ -o $@

test: libmyarray.so
	@echo "Hello there!"
