RTS_HOME = C:\Arquivos de programas\Rational\Rose RealTime/C++/TargetRTS
PLATFORM = NT40
THREADED = T
LIBRARY_SET = x86-VisualC++-6.0
USER_CC = $(CC)
USER_CCFLAGS = $(DEBUG_TAG)
USER_INCPATHS = $(INCLUDE_TAG)../src
USER_DEPPATHS = $(DEPEND_TAG) ../src
TOP_CAPSULE = DetectarObstaculo
BUILD_TARGET = $(TOP_CAPSULE)$(EXEC_EXT)
USER_LD = $(LD)
USER_LDFLAGS =
USER_OBJS =
USER_LIBS =
RTCOMPONENT_LIBS =
RTCOMPONENT_LIBS_DEP = $(RTCOMPONENT_LIBS)
SOURCE_DIR = ../src
RTCOMPILE_DAT = rtcompile.dat
RTLINK_DAT = rtlink.dat
ALL_OBJS = \
	DetectarObstaculo$(OBJ_EXT) \
	LerSonarDireito$(OBJ_EXT) \
	LerSonarEsquerdo$(OBJ_EXT) \
	Navegacao$(OBJ_EXT) \
	RTSystem/DetectarObstaculoComponent$(OBJ_EXT)

ALL_OBJS_LISTFILE = ALL_OBJS.olist
COMPILE_TARGET = $(BUILD_TARGET)
PURIFY_TARGET = Purify_$(BUILD_TARGET)
PURIFY = purify $(PURIFY_OPTIONS)
PURIFY_OPTIONS = -log-file=Purify_$(BUILD_TARGET).txt -windows=no
RTCOMPONENT = DetectarObstaculoComponent
USER_OBJS_LIST = $(USER_OBJS)
SPACEDEPS = -spacify dq
include <DetectarObstaculo.dep>
include <LerSonarDireito.dep>
include <LerSonarEsquerdo.dep>
include <Navegacao.dep>
include <RTSystem/DetectarObstaculoComponent.dep>
include <$(RTS_HOME)/codegen/ms_nmake.mk>

RTcompile : $(COMPILE_TARGET)

RTpurify : $(PURIFY_TARGET)

$(BUILD_TARGET) : $(ALL_OBJS) $(USER_OBJS) $(RTCOMPONENT_LIBS_DEP) $(ALL_OBJS_LISTFILE) $(RTLINK_DAT)
	$(RTLINK) -vendor $(VENDOR) -exe $(BUILD_TARGET) -componentname $(RTCOMPONENT) -- \
		$(USER_LD) $(LD_HEAD) $(USER_LDFLAGS) \
		$(ALL_OBJS_LIST) $(USER_OBJS_LIST) \
		$(RTCOMPONENT_LIBS) $(USER_LIBS) $(LD_TAIL)

Purify_$(BUILD_TARGET) : $(ALL_OBJS) $(USER_OBJS) $(RTCOMPONENT_LIBS_DEP) $(ALL_OBJS_LISTFILE) $(RTLINK_DAT)
	$(RTLINK) -vendor $(VENDOR) -purify -exe Purify_$(BUILD_TARGET) -componentname $(RTCOMPONENT) -- \
		$(PURIFY) $(USER_LD) $(LD_HEAD) $(USER_LDFLAGS) \
		$(ALL_OBJS_LIST) $(USER_OBJS_LIST) \
		$(RTCOMPONENT_LIBS) $(USER_LIBS) $(LD_TAIL)

DetectarObstaculo$(OBJ_EXT) : $(DetectarObstaculo_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src DetectarObstaculo $(SOURCE_DIR)/DetectarObstaculo.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/DetectarObstaculo.cpp $(CC_TAIL)

LerSonarDireito$(OBJ_EXT) : $(LerSonarDireito_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src LerSonarDireito $(SOURCE_DIR)/LerSonarDireito.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/LerSonarDireito.cpp $(CC_TAIL)

LerSonarEsquerdo$(OBJ_EXT) : $(LerSonarEsquerdo_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src LerSonarEsquerdo $(SOURCE_DIR)/LerSonarEsquerdo.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/LerSonarEsquerdo.cpp $(CC_TAIL)

Navegacao$(OBJ_EXT) : $(Navegacao_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src Navegacao $(SOURCE_DIR)/Navegacao.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/Navegacao.cpp $(CC_TAIL)

RTSystem/DetectarObstaculoComponent$(OBJ_EXT) : $(DetectarObstaculoComponent_SYSDEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-component -src DetectarObstaculoComponent ../src/RTSystem/DetectarObstaculoComponent.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		 ../src/RTSystem/DetectarObstaculoComponent.cpp $(CC_TAIL)

