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


SRCS := $(wildcard *.cpp)
BINS := TestRawFitArchiving TestTestArchiving 


CPPFLAGS += $(ROOTINCLUDES)
LDLIBS += -lSctData -lSct -lArchiving -lSummaryWriter -lsctConfIPC $(ROOTLIBS)


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

all: c++ java install
distclean: clean

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

install:
java:
c++: $(BINS) 

%.o: %.cpp
	$(CPPCMD)

%: %.o
	$(BINCMD)

#dependencies
$(BINS): $(DEPENDLIBCMD)

%.d: %.cpp
	$(DEPENDCMD)

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