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 = CarregarPacote
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 = \
	CalcularPosicao$(OBJ_EXT) \
	CarregarPacote$(OBJ_EXT) \
	CommAlteracaoRota$(OBJ_EXT) \
	CommSolicitaPacote$(OBJ_EXT) \
	Dados$(OBJ_EXT) \
	DetectarAlteracaoRota$(OBJ_EXT) \
	DetectarObstaculo$(OBJ_EXT) \
	DetectarPacote$(OBJ_EXT) \
	LerSonarDireito$(OBJ_EXT) \
	LerSonarEsquerdo$(OBJ_EXT) \
	Navegacao$(OBJ_EXT) \
	Operador$(OBJ_EXT) \
	Pacote$(OBJ_EXT) \
	Pallet$(OBJ_EXT) \
	Planejamento$(OBJ_EXT) \
	Sensores$(OBJ_EXT) \
	Sensor$(OBJ_EXT) \
	SolicitaPacote$(OBJ_EXT) \
	RTSystem/PVA$(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 = PVA
USER_OBJS_LIST = $(USER_OBJS)
SPACEDEPS = -spacify dq
include <CalcularPosicao.dep>
include <CarregarPacote.dep>
include <CommAlteracaoRota.dep>
include <CommSolicitaPacote.dep>
include <Dados.dep>
include <DetectarAlteracaoRota.dep>
include <DetectarObstaculo.dep>
include <DetectarPacote.dep>
include <LerSonarDireito.dep>
include <LerSonarEsquerdo.dep>
include <Navegacao.dep>
include <Operador.dep>
include <Pacote.dep>
include <Pallet.dep>
include <Planejamento.dep>
include <Sensores.dep>
include <Sensor.dep>
include <SolicitaPacote.dep>
include <RTSystem/PVA.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)

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

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

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

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

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

DetectarAlteracaoRota$(OBJ_EXT) : $(DetectarAlteracaoRota_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src DetectarAlteracaoRota $(SOURCE_DIR)/DetectarAlteracaoRota.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/DetectarAlteracaoRota.cpp $(CC_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)

DetectarPacote$(OBJ_EXT) : $(DetectarPacote_DEPS) $(RTCOMPILE_DAT)
	$(RTCOMP) -vendor $(VENDOR) $(SPACEDEPS) $(USER_DEPPATHS) \
		-componentname $(RTCOMPONENT) -src DetectarPacote $(SOURCE_DIR)/DetectarPacote.cpp -- \
		$(USER_CC) $(CC_HEAD) \
		$(USER_CCFLAGS) $(USER_INCPATHS) \
		$(SOURCE_DIR)/DetectarPacote.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)

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

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

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

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

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

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

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

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

