# -*- makefile -*-
#----------------------------------------------------------------------------
#       GNU ACE Workspace
#
# $Id: GNUACEWorkspaceCreator.pm 935 2008-12-10 21:47:27Z mitza $
#
# This file was generated by MPC.  Any changes made directly to
# this file will be lost the next time it is generated.
#
# MPC Command:
# /tao_builds/taoadmin/1.6a/ACE_wrappers/bin/mwc.pl -type gnuace DDS.mwc
#
#----------------------------------------------------------------------------

MAKEFILE = GNUmakefile

ifeq ($(findstring k,$(MAKEFLAGS)),k)
  KEEP_GOING = -
endif

include $(ACE_ROOT)/include/makeinclude/macros.GNU

all: opendds_idl DdsDcps multicast SimpleTcp opendds_udp DCPSInfoRepo_InfoRepoLib DCPSInfoRepo_Federator DCPSInfoRepo_DCPSInfoRepoServ DCPSInfoRepo_InfoRepo monitor-target

REMAINING_TARGETS := $(subst all, , $(TARGETS_NESTED:.nested=)) $(CUSTOM_TARGETS)

$(REMAINING_TARGETS):
	@cd idl && $(MAKE) -f GNUmakefile.opendds_idl $(@)
	@$(MAKE) -f GNUmakefile.DdsDcps $(@)
	@cd DCPS/transport/multicast && $(MAKE) -f GNUmakefile.multicast $(@)
	@cd DCPS/transport/simpleTCP && $(MAKE) -f GNUmakefile.SimpleTcp $(@)
	@cd DCPS/transport/udp && $(MAKE) -f GNUmakefile.opendds_udp $(@)
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_InfoRepoLib $(@)
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_Federator $(@)
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_DCPSInfoRepoServ $(@)
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_InfoRepo $(@)
	@cd monitor && $(MAKE) -f GNUmakefile.monitor $(@)

.PHONY: opendds_idl
opendds_idl:
	@cd idl && $(MAKE) -f GNUmakefile.opendds_idl all

.PHONY: DdsDcps
DdsDcps: opendds_idl
	@$(MAKE) -f GNUmakefile.DdsDcps all

.PHONY: multicast
multicast: opendds_idl DdsDcps
	@cd DCPS/transport/multicast && $(MAKE) -f GNUmakefile.multicast all

.PHONY: SimpleTcp
SimpleTcp: opendds_idl DdsDcps
	@cd DCPS/transport/simpleTCP && $(MAKE) -f GNUmakefile.SimpleTcp all

.PHONY: opendds_udp
opendds_udp: opendds_idl DdsDcps
	@cd DCPS/transport/udp && $(MAKE) -f GNUmakefile.opendds_udp all

.PHONY: DCPSInfoRepo_InfoRepoLib
DCPSInfoRepo_InfoRepoLib: opendds_idl DdsDcps SimpleTcp
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_InfoRepoLib all

.PHONY: DCPSInfoRepo_Federator
DCPSInfoRepo_Federator: opendds_idl DdsDcps SimpleTcp DCPSInfoRepo_InfoRepoLib
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_Federator all

.PHONY: DCPSInfoRepo_DCPSInfoRepoServ
DCPSInfoRepo_DCPSInfoRepoServ: opendds_idl DdsDcps SimpleTcp DCPSInfoRepo_InfoRepoLib DCPSInfoRepo_Federator
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_DCPSInfoRepoServ all

.PHONY: DCPSInfoRepo_InfoRepo
DCPSInfoRepo_InfoRepo: opendds_idl DdsDcps SimpleTcp DCPSInfoRepo_InfoRepoLib DCPSInfoRepo_Federator DCPSInfoRepo_DCPSInfoRepoServ
	@cd InfoRepo && $(MAKE) -f GNUmakefile.DCPSInfoRepo_InfoRepo all

.PHONY: monitor-target
monitor-target: opendds_idl DdsDcps
	@cd monitor && $(MAKE) -f GNUmakefile.monitor all

project_name_list:
	@echo multicast
	@echo SimpleTcp
	@echo opendds_udp
	@echo DdsDcps
	@echo DCPSInfoRepo_DCPSInfoRepoServ
	@echo DCPSInfoRepo_Federator
	@echo DCPSInfoRepo_InfoRepo
	@echo DCPSInfoRepo_InfoRepoLib
	@echo opendds_idl
	@echo monitor-target
