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

#Lists of source files
HDRS := $(wildcard *.h)
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o) 

#Flags
CPPFLAGS += $(ROOTINCLUDES)
LDLIBS += $(ROOTLIBS)

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

all: c++

c++: $(OBJS)

distclean: clean
	-rm -f *.d
	
clean:
	-rm -f *.o 

#Patterns
%.o: %.cpp
	$(CPPCMD)

#dependencies
%.d: %.cpp
	$(DEPENDCMD)

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