# 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
-include ../MyConfig.mk

#------------------------------------------------------------------------------


#CXXFLAGS += -I/usr/opt/sisusb/include
#LDFLAGS  += -L/usr/opt/sisusb/lib -ldl -lstdc++ -lsis3150 -Wl,"-rpath=/usr/opt/sisusb/lib"


SIS8300_TESTO      = sis8300-test.$(ObjSuf) gnuplot_i.o
SIS8300_TESTS      = sis8300-test.$(SrcSuf)
SIS8300_TEST       = sis8300-test$(ExeSuf)



OBJS          = $(SIS8300_TESTO) 

PROGRAMS      = $(SIS8300_TEST)   

#------------------------------------------------------------------------------

.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
.PHONY:    Aclock Hello Tetris

all:            $(PROGRAMS)
#ifdef th_raus

gnuplot_i.o:	gnuplot_i.cpp gnuplot_i.hpp




$(SIS8300_TEST):     $(SIS8300_TESTO) 
		$(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@
		$(MT_EXE)
		@echo "$@ done"




clean:
		@rm -f $(OBJS) $(TRACKMATHSRC) core

distclean:      clean
		@rm -f $(PROGRAMS) $(EVENTSO) $(EVENTLIB) *Dict.* *.def *.exp \
		   *.root *.ps *.so *.lib *.dll *.d *.log .def so_locations \
		   files/*
		@rm -rf cxx_repository
		-@cd RootShower && $(MAKE) distclean
		-@cd rhtml && $(MAKE) distclean
		-@cd RootIDE && $(MAKE) distclean


.SUFFIXES: .$(SrcSuf)

.$(SrcSuf).$(ObjSuf):
	$(CXX)  $(CXXFLAGS)  -c $<
