
all: sbus_factory.o

PWD = $(shell pwd)

#INCLUDES =  -I $(PWD)/../../../../../../cygwin/systemC/include/ -I $(PWD)/../../../transaction_generator_2/include/ -I $(PWD)/../../packet_codec/systemc/ -I $(PWD)/../../fifo/systemc

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

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

#.PHONY: subs
#subs:
#	cd sc_rtl_1; $(MAKE)
#	cd sc_rtl_2; $(MAKE)

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

.PHONY: clean
clean:
#	cd sc_rtl_1; $(MAKE) clean
#	cd sc_rtl_2; $(MAKE) clean
	rm -f *~ *.o *.d