<?xml version="1.0" ?>
<!DOCTYPE gprconfig [
<!ENTITY % env.ent SYSTEM "env.ent"> %env.ent;
<!ENTITY % shortcuts.ent SYSTEM "shortcuts.ent"> %shortcuts.ent;
<!ENTITY % vxworks.ent SYSTEM "vxworks.ent"> %vxworks.ent;
<!ENTITY % vx6.ent SYSTEM "vx6.ent"> %vx6.ent;

<!-- Local target-specific conditions -->

<!ENTITY this_target 'e500v2-wrs-vxworks'>
<!ENTITY this_gnu_wrs_suffix 'ppc'>

<!ENTITY if_these_c_compilers
    '<compilers>
       <compiler name="^GCC_Pro$" />
       <!--  ??? Eventually GCC_Pro will be replaced by a e500v2-vx6-specific
       definition:
       <compiler name="^E500V2-VX6-GCC-ADACORE$" />
       -->
       <compiler name="^E500V2-VX6-GCC-WRS$" />
     </compilers>'>

<!ENTITY if_these_cpp_compilers
    '<compilers>
       <compiler name="^E500V2-VX6-G\+\+-WRS$" />
     </compilers>'>

<!ENTITY if_these_wrs_compilers
    '<compilers>
       <compiler name="^E500V2-VX6-G\+\+-WRS$" />
       <compiler name="^E500V2-VX6-GCC-WRS$" />
       <compiler name="^GCC-WRS6CERTE500V2$" />
       <compiler name="^G\+\+-WRS6CERTE500V2$" />
     </compilers>'>

<!ENTITY if_these_gnu_wrs_compilers
    '<compilers>
       <compiler name="^E500V2-VX6-G\+\+-WRS$" />
       <compiler name="^E500V2-VX6-GCC-WRS$" />
       <compiler name="^GCC-WRS6CERTE500V2$" />
       <compiler name="^G\+\+-WRS6CERTE500V2$" />
     </compilers>'>

<!ENTITY this_wrs_rtp_base '0x40000000'>
<!-- For vx6cert -->

<!ENTITY this_cpu_subdir 'ppc/PPC32/e500v2common'>
]>
<gprconfig>

  &environment;

  <configuration>
     &if_this_target;

     <config>
   for Archive_Builder  use ("e500v2-wrs-vxworks-ar", "cr");
   for Archive_Builder_Append_Option use ("q");
   for Archive_Indexer  use ("e500v2-wrs-vxworks-ranlib");
   for Archive_Suffix   use ".a";
     </config>
  </configuration>

  &configurations_vxworks_gpp;
  &configurations_vx6;

  <!-- e500v2-specific part -->

  <configuration>
     &if_these_wrs_compilers;
     &if_this_target;
     <!-- vx6 and vx6cert -->

     &config_e500v2_cflags;
  </configuration>

</gprconfig>
