#Variables
include $(SCT_DAQ_ROOT)/build/Makefile.include
#Commands
include $(SCT_DAQ_ROOT)/build/Makefile.commands

BINS := TestSubmit TestFit TestErfSpeed
HDRS := $(wildcard *.h)
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)

LDLIBS += -lSct -lSctData
CPPFLAGS += $(ROOTINCLUDES) 

#Phony Targets
.PHONY: all c++ java install clean distclean test

all: c++ java install
test: all

distclean: clean
	-rm -f *.d

clean:
	-rm -f $(BINS) *.o

install: $(addprefix $(BinDir)/,$(BINS))
java:
c++: $(BINS) 

$(BinDir)/%: %
	$(CPCMD)	

%: %.o
	$(BINCMD)

%.o: %.cpp
	$(CPPCMD)

#dependencies
$(BINS): $(DEPENDLIBCMD)

%.d: %.cpp
	$(DEPENDCMD)

ifeq ($(INCLUDEDEPENDANCIES),)
include $(SRCS:.cpp=.d)
endif
