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

BINS := ProxyPublish
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: $(addprefix $(BinDir)/,$(BINS))

java:
c++: $(BINS) 

%: %.o
	$(BINCMD)

%.o: %.cpp
	$(CPPCMD)

$(BINS): $(DEPENDLIBCMD)

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

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

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

