# -*- 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 -features java=1 java -exclude java/jms
#
#----------------------------------------------------------------------------

MAKEFILE = GNUmakefile

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

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

all: idl2jni_codegen idl2jni_runtime tao_java dcps_java idl2jni_test_simple messenger_idl_test builtintopics_test complex_idl_test hello_java_client publisher_idl_test subscriber_idl_test multirepo_test transport_config

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

$(REMAINING_TARGETS):
	@cd idl2jni/codegen && $(MAKE) -f GNUmakefile.idl2jni_codegen $(@)
	@cd idl2jni/runtime && $(MAKE) -f GNUmakefile.idl2jni_runtime $(@)
	@cd tao && $(MAKE) -f GNUmakefile.tao_java $(@)
	@cd dds && $(MAKE) -f GNUmakefile.dcps_java $(@)
	@cd idl2jni/tests/simple && $(MAKE) -f GNUmakefile.idl2jni_test_simple $(@)
	@cd tests/messenger/messenger_idl && $(MAKE) -f GNUmakefile.messenger_idl_test $(@)
	@cd tests/builtintopics && $(MAKE) -f GNUmakefile.builtintopics_test $(@)
	@cd tests/complex_idl && $(MAKE) -f GNUmakefile.complex_idl_test $(@)
	@cd tests/hello && $(MAKE) -f GNUmakefile.hello_java_client $(@)
	@cd tests/messenger/publisher && $(MAKE) -f GNUmakefile.publisher_idl_test $(@)
	@cd tests/messenger/subscriber && $(MAKE) -f GNUmakefile.subscriber_idl_test $(@)
	@cd tests/multirepo && $(MAKE) -f GNUmakefile.multirepo_test $(@)
	@cd tests/transport_config && $(MAKE) -f GNUmakefile.transport_config $(@)

.PHONY: idl2jni_codegen
idl2jni_codegen:
	@cd idl2jni/codegen && $(MAKE) -f GNUmakefile.idl2jni_codegen all

.PHONY: idl2jni_runtime
idl2jni_runtime:
	@cd idl2jni/runtime && $(MAKE) -f GNUmakefile.idl2jni_runtime all

.PHONY: tao_java
tao_java: idl2jni_codegen idl2jni_runtime
	@cd tao && $(MAKE) -f GNUmakefile.tao_java all

.PHONY: dcps_java
dcps_java: idl2jni_codegen idl2jni_runtime tao_java
	@cd dds && $(MAKE) -f GNUmakefile.dcps_java all

.PHONY: idl2jni_test_simple
idl2jni_test_simple: idl2jni_codegen idl2jni_runtime
	@cd idl2jni/tests/simple && $(MAKE) -f GNUmakefile.idl2jni_test_simple all

.PHONY: messenger_idl_test
messenger_idl_test: idl2jni_codegen idl2jni_runtime dcps_java
	@cd tests/messenger/messenger_idl && $(MAKE) -f GNUmakefile.messenger_idl_test all

.PHONY: builtintopics_test
builtintopics_test: idl2jni_codegen idl2jni_runtime dcps_java messenger_idl_test
	@cd tests/builtintopics && $(MAKE) -f GNUmakefile.builtintopics_test all

.PHONY: complex_idl_test
complex_idl_test: idl2jni_codegen idl2jni_runtime dcps_java
	@cd tests/complex_idl && $(MAKE) -f GNUmakefile.complex_idl_test all

.PHONY: hello_java_client
hello_java_client: idl2jni_codegen idl2jni_runtime
	@cd tests/hello && $(MAKE) -f GNUmakefile.hello_java_client all

.PHONY: publisher_idl_test
publisher_idl_test: idl2jni_codegen idl2jni_runtime dcps_java messenger_idl_test
	@cd tests/messenger/publisher && $(MAKE) -f GNUmakefile.publisher_idl_test all

.PHONY: subscriber_idl_test
subscriber_idl_test: idl2jni_codegen idl2jni_runtime dcps_java messenger_idl_test
	@cd tests/messenger/subscriber && $(MAKE) -f GNUmakefile.subscriber_idl_test all

.PHONY: multirepo_test
multirepo_test: idl2jni_codegen idl2jni_runtime dcps_java
	@cd tests/multirepo && $(MAKE) -f GNUmakefile.multirepo_test all

.PHONY: transport_config
transport_config: idl2jni_codegen idl2jni_runtime dcps_java
	@cd tests/transport_config && $(MAKE) -f GNUmakefile.transport_config all

project_name_list:
	@echo dcps_java
	@echo idl2jni_codegen
	@echo idl2jni_runtime
	@echo idl2jni_test_simple
	@echo tao_java
	@echo builtintopics_test
	@echo complex_idl_test
	@echo hello_java_client
	@echo messenger_idl_test
	@echo publisher_idl_test
	@echo subscriber_idl_test
	@echo multirepo_test
	@echo transport_config
