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

BINS := TestException1 TestException2 TestException3 TestVersion
HDRS := $(wildcard *.h)
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)

LDLIBS += -lSct

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

all: c++ java install
distclean: clean
	-rm -f *.d 

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

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

%: %.o
	$(BINCMD)

%.o: %.cpp
	$(CPPCMD)

$(BINS): $(DEPENDLIBCMD)

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

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

