
all: noc_factory.o

PWD = $(shell pwd)

%.d: %.cc
	$(SHELL) -ec "$(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $< | sed 's/$*.o/& $@/g' > $@"

ifneq ($(MAKECMDGOALS),clean)
-include noc_factory.d
endif

noc_factory.o:
	$(CXX) -c noc_factory.cc $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES)

.PHONY: clean
clean:
	rm -f *~ *.o *.d