summaryrefslogtreecommitdiff
path: root/flat/CIAO/tools/IDL3_to_XMI/IDL3_TO_XMI.mpc
blob: 9631f139f3878bd6e611a1a67f251e0066abcac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// -*- MPC -*-
// $Id$

project(CIAO_IDL3_TO_XMI_BE) : acelib, install, tao_output, crosscompile, ciao_xml_utils, xerces {
  after       += TAO_IDL_FE
  sharedname   = CIAO_IDL3_TO_XMI_BE
  libs        += TAO_IDL_FE
  dynamicflags = CIAO_IDL3_TO_XMI_BUILD_DLL
  includes    += $(TAO_ROOT)/TAO_IDL/include $(TAO_ROOT)/TAO_IDL/fe

  // This is necessary for MPC to pull in rules.ciao.GNU
  includes    += $(CIAO_ROOT)

  Source_Files {
    be_global.cpp
    be_helper.cpp
    be_init.cpp
    be_produce.cpp
    be_sunsoft.cpp
    IDL3_to_XMI_visitor.cpp
    IR_Simulator_visitor.cpp
    Literals.cpp
    identifier_helper.cpp
  }

  Header_Files {
    be_extern.h
    be_global.h
    be_helper.h
    be_sunsoft.h
    IDL3_to_XMI_visitor.h
    CIAO_IDL3_TO_XMI_Export.h
  }
}

project(CIAO_IDL3_TO_XMI_EXE) : aceexe, install, tao_output, crosscompile, ciao_xml_utils, tao_idl_mcpp, xerces {
  after          += CIAO_IDL3_TO_XMI_BE TAO_IDL_FE
  exename         = tao_idl3_to_xmi
  libs           += CIAO_IDL3_TO_XMI_BE TAO_IDL_FE
  includes       += . $(TAO_ROOT)/TAO_IDL/include \
                    $(TAO_ROOT)/TAO_IDL/fe \
                    $(TAO_ROOT)
  libpaths       += $(TAO_ROOT)/TAO_IDL
  exeout          = $(ACE_ROOT)/bin

  // Adding a strict ordering dependency with TAO_IDL_EXE. It appears on some systems, there
  // can be a race between these two projects for tao_idl.cpp, causing some errors.
  after          += TAO_IDL_EXE

  // This is necessary for MPC to pull in rules.ciao.GNU
  includes       += $(CIAO_ROOT)

  verbatim(gnuace, local) {
    ifeq ($(TAO_IDL_PREPROCESSOR),)
      CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\\\"$(strip $(CXX))\\\"
    else
      CPPFLAGS += -DTAO_IDL_PREPROCESSOR=\\\"$(subst \\,\\,$(TAO_IDL_PREPROCESSOR))\\\"
    endif

    VPATH = $(TAO_ROOT)/TAO_IDL $(TAO_ROOT)/TAO_IDL/driver
  }

  Source_Files {
    $(TAO_ROOT)/TAO_IDL/driver/drv_args.cpp
    $(TAO_ROOT)/TAO_IDL/tao_idl.cpp
  }

  Header_Files {
    $(TAO_ROOT)/TAO_IDL/include/drv_extern.h
  }
}