summaryrefslogtreecommitdiff
path: root/flat/CIAO/tools/IDL3_to_IDL2/IDL3_to_IDL2.mpc
blob: 8104e9908be0aeb0768db2fed73f8180187ff6f2 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// -*- MPC -*-
// $Id$

project(TAO_IDL3_TO_IDL2_BE) : acelib, install, tao_output, crosscompile {
  after       += TAO_IDL_FE
  sharedname   = TAO_IDL3_TO_IDL2_BE
  libs        += TAO_IDL_FE
  dynamicflags = TAO_IDL3_TO_IDL2_BE_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 {
    basic_visitor.cpp
    be_global.cpp
    be_helper.cpp
    be_init.cpp
    be_produce.cpp
    be_sunsoft.cpp
    checking_visitor.cpp
    identifier_helper.cpp
    idl3_to_idl2_visitor.cpp
  }

  Header_Files {
    basic_visitor.h
    be_extern.h
    be_global.h
    be_helper.h
    be_sunsoft.h
    checking_visitor.h
    identifier_helper.h
    idl3_to_idl2_visitor.h
    TAO_IDL3_TO_IDL2_BE_Export.h
  }
}


project(TAO_IDL3_TO_IDL2_EXE) : aceexe, install, tao_output, crosscompile {
  after          += TAO_IDL3_TO_IDL2_BE TAO_IDL_FE
  exename         = tao_idl3_to_idl2
  libs           += TAO_IDL3_TO_IDL2_BE TAO_IDL_FE
  includes       += . $(TAO_ROOT)/TAO_IDL/include \
                    $(TAO_ROOT)/TAO_IDL/fe \
                    $(TAO_ROOT)
  libpaths       += $(TAO_ROOT)/TAO_IDL
  install         = $(ACE_ROOT)/bin

  // 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/driver/drv_preproc.cpp
    $(TAO_ROOT)/TAO_IDL/tao_idl.cpp
  }

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

project (CDMW_IDL3_TO_IDL2_BE) : acelib, install, tao_output, crosscompile {
  sharedname = CDMW_IDL3_TO_IDL2_BE
  after     += TAO_IDL3_TO_IDL2_BE
  libs      += TAO_IDL_FE \
               TAO_IDL3_TO_IDL2_BE
  libpaths  += $(TAO_ROOT)/TAO_IDL
  dynamicflags = CDMW_IDL3_TO_IDL2_BE_BUILD_DLL
  includes  += $(TAO_ROOT)/TAO_IDL/include \
               $(TAO_ROOT)

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

  Source_Files {
    CdmwBE.cpp
    CdmwBEGlobal.cpp
    CdmwCifIDLVisitor.cpp
    InternalIDLVisitor.cpp
  }

  Header_Files {
    CDMW_IDL3_TO_IDL2_BE_Export.hpp
    CdmwBEExtern.hpp
    CdmwBEGlobal.hpp
    CdmwCifIDLVisitor.hpp
    Config.hpp
    InternalIDLVisitor.hpp
  }
}

project (CDMW_IDL3_TO_IDL2_EXE) : aceexe, install, tao_output, crosscompile, tao_idl_mcpp {
  exename    = cdmw_idl3_to_idl2
  install    = $(ACE_ROOT)/bin
  after     += CDMW_IDL3_TO_IDL2_BE
  libs      += CDMW_IDL3_TO_IDL2_BE \
               TAO_IDL3_TO_IDL2_BE \
               TAO_IDL_FE
  libpaths  += $(TAO_ROOT)/TAO_IDL
  includes  += . $(TAO_ROOT)/TAO_IDL/include \
               $(TAO_ROOT)/TAO_IDL/fe \
               $(TAO_ROOT)
               
  // 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/driver
  }

  Source_Files {
    cdmw_idl.cpp
    $(TAO_ROOT)/TAO_IDL/driver/drv_args.cpp
  }
  
  Header_Files {
    $(TAO_ROOT)/TAO_IDL/include/drv_extern.h
  }
}