Debian Codegraph @

unstable/CMakeLists.txt

raw
1 # dynamips - unstable code
2
3 set ( COMMON "${CMAKE_SOURCE_DIR}/common" )
4 set ( LOCAL "${CMAKE_CURRENT_SOURCE_DIR}" )
5 include_directories ( "${CMAKE_CURRENT_SOURCE_DIR}" "${COMMON}" "${CMAKE_CURRENT_BINARY_DIR}" )
6
7 # mips64_microcode_dump.inc
8 set ( _input "${LOCAL}/mips64_microcode" )
9 set ( _output "${CMAKE_CURRENT_BINARY_DIR}/mips64_microcode_dump.inc" )
10 add_custom_command (
11 OUTPUT ${_output}
12 COMMAND ${ROM2C_EXECUTABLE} ARGS ${_input} ${_output} 0xbfc00000
13 DEPENDS rom2c ${_input}
14 )
15 add_custom_target ( mips64_microcode_dump_unstable
16 DEPENDS ${_output}
17 )
18
19 # ppc32_microcode_dump.inc
20 set ( _input "${LOCAL}/ppc32_microcode" )
21 set ( _output "${CMAKE_CURRENT_BINARY_DIR}/ppc32_microcode_dump.inc" )
22 add_custom_command (
23 OUTPUT ${_output}
24 COMMAND ${ROM2C_EXECUTABLE} ARGS ${_input} ${_output} 0xfff00000
25 DEPENDS rom2c ${_input}
26 )
27 add_custom_target ( ppc32_microcode_dump_unstable
28 DEPENDS ${_output}
29 )
30
31 #-------------------------#
32 # dynamips: unstable code #
33 #-------------------------#
34
35 if ( NOT BUILD_DYNAMIPS_UNSTABLE )
36 return ()
37 endif ( NOT BUILD_DYNAMIPS_UNSTABLE )
38
39 # dynamips_*_unstable
40 add_definitions( "-DUSE_UNSTABLE" )
41
42 set ( _files
43 "${COMMON}/mempool.c"
44 "${COMMON}/registry.c"
45 "${COMMON}/rbtree.c"
46 "${COMMON}/hash.c"
47 "${COMMON}/sbox.c"
48 "${COMMON}/utils.c"
49 "${COMMON}/parser.c"
50 "${COMMON}/plugin.c"
51 "${COMMON}/ptask.c"
52 "${COMMON}/timer.c"
53 "${COMMON}/crc.c"
54 "${COMMON}/base64.c"
55 "${COMMON}/net.c"
56 "${COMMON}/net_io.c"
57 "${COMMON}/net_io_bridge.c"
58 "${COMMON}/net_io_filter.c"
59 "${COMMON}/atm.c"
60 "${COMMON}/atm_vsar.c"
61 "${COMMON}/atm_bridge.c"
62 "${COMMON}/frame_relay.c"
63 "${COMMON}/eth_switch.c"
64 "${COMMON}/dynamips.c"
65 "${COMMON}/insn_lookup.c"
66 "${LOCAL}/vm.c"
67 "${LOCAL}/cpu.c"
68 "${LOCAL}/tcb.c" # only present in unstable
69 "${COMMON}/jit_op.c"
70 "${LOCAL}/mips64.c"
71 "${LOCAL}/mips64_mem.c"
72 "${LOCAL}/mips64_cp0.c"
73 "${LOCAL}/mips64_jit.c"
74 "${LOCAL}/mips64_exec.c"
75 "${LOCAL}/ppc32.c"
76 "${LOCAL}/ppc32_mem.c"
77 "${LOCAL}/ppc32_jit.c"
78 "${LOCAL}/ppc32_exec.c"
79 "${LOCAL}/ppc32_vmtest.c"
80 "${COMMON}/memory.c"
81 "${COMMON}/device.c"
82 "${COMMON}/nmc93cX6.c"
83 "${COMMON}/cisco_eeprom.c"
84 "${COMMON}/cisco_card.c"
85 "${COMMON}/pci_dev.c"
86 "${COMMON}/pci_io.c"
87 "${COMMON}/dev_zero.c"
88 "${COMMON}/dev_bswap.c"
89 "${COMMON}/dev_vtty.c"
90 "${COMMON}/dev_ram.c"
91 "${COMMON}/dev_rom.c"
92 "${COMMON}/dev_nvram.c"
93 "${COMMON}/dev_bootflash.c"
94 "${COMMON}/dev_flash.c"
95 "${COMMON}/dev_mpc860.c"
96 "${COMMON}/dev_ds1620.c"
97 "${COMMON}/dev_remote.c"
98 "${COMMON}/dev_clpd6729.c"
99 "${COMMON}/dev_pcmcia_disk.c"
100 "${COMMON}/dev_gt.c"
101 "${COMMON}/dev_mv64460.c"
102 "${COMMON}/dev_plx.c"
103 "${COMMON}/dev_dec21x50.c"
104 "${COMMON}/dev_pericom.c"
105 "${COMMON}/dev_ti2050b.c"
106 "${COMMON}/dev_ap1011.c"
107 "${COMMON}/dev_plx6520cb.c"
108 "${COMMON}/dev_ns16552.c"
109 "${COMMON}/dev_dec21140.c"
110 "${COMMON}/dev_am79c971.c"
111 "${COMMON}/dev_i8254x.c"
112 "${COMMON}/dev_i8255x.c"
113 "${COMMON}/dev_mueslix.c"
114 "${COMMON}/dev_wic_serial.c"
115 "${COMMON}/dev_c3600.c"
116 "${COMMON}/dev_c3600_bay.c"
117 "${COMMON}/dev_c3600_iofpga.c"
118 "${COMMON}/dev_c3600_eth.c"
119 "${COMMON}/dev_c3600_serial.c"
120 "${COMMON}/dev_c7200.c"
121 "${COMMON}/dev_c7200_iofpga.c"
122 "${COMMON}/dev_c7200_mpfpga.c"
123 "${COMMON}/dev_c7200_sram.c"
124 "${COMMON}/dev_c7200_eth.c"
125 "${COMMON}/dev_c7200_serial.c"
126 "${COMMON}/dev_c7200_pos.c"
127 "${COMMON}/dev_c7200_bri.c"
128 "${COMMON}/dev_c7200_jcpa.c"
129 "${COMMON}/dev_c2691.c"
130 "${COMMON}/dev_c2691_iofpga.c"
131 "${COMMON}/dev_c2691_eth.c"
132 "${COMMON}/dev_c2691_serial.c"
133 "${COMMON}/dev_c2691_wic.c"
134 "${COMMON}/dev_c2691_pcmod.c"
135 "${COMMON}/dev_c3725.c"
136 "${COMMON}/dev_c3725_iofpga.c"
137 "${COMMON}/dev_c3725_eth.c"
138 "${COMMON}/dev_c3725_serial.c"
139 "${COMMON}/dev_c3725_wic.c"
140 "${COMMON}/dev_c3725_pcmod.c"
141 "${COMMON}/dev_c3745.c"
142 "${COMMON}/dev_c3745_iofpga.c"
143 "${COMMON}/dev_c3745_eth.c"
144 "${COMMON}/dev_c3745_serial.c"
145 "${COMMON}/dev_c3745_wic.c"
146 "${COMMON}/dev_c3745_pcmod.c"
147 "${COMMON}/dev_c2600.c"
148 "${COMMON}/dev_c2600_pci.c"
149 "${COMMON}/dev_c2600_iofpga.c"
150 "${COMMON}/dev_c2600_eth.c"
151 "${COMMON}/dev_c2600_pcmod.c"
152 "${COMMON}/dev_c2600_wic.c"
153 "${COMMON}/dev_c1700.c"
154 "${COMMON}/dev_c1700_iofpga.c"
155 "${COMMON}/dev_c1700_eth.c"
156 "${COMMON}/dev_c1700_wic.c"
157 "${COMMON}/dev_c6msfc1.c"
158 "${COMMON}/dev_c6msfc1_iofpga.c"
159 "${COMMON}/dev_c6msfc1_mpfpga.c"
160 "${COMMON}/dev_c6sup1.c"
161 "${COMMON}/dev_c6sup1_iofpga.c"
162 "${COMMON}/dev_c6sup1_mpfpga.c"
163 "${COMMON}/dev_nm_16esw.c"
164 "${COMMON}/dev_pa_a1.c"
165 "${COMMON}/dev_pa_mc8te1.c"
166 "${COMMON}/dev_sb1.c"
167 "${COMMON}/dev_sb1_io.c"
168 "${COMMON}/dev_sb1_pci.c"
169 "${LOCAL}/hypervisor.c"
170 "${COMMON}/hv_nio.c"
171 "${COMMON}/hv_nio_bridge.c"
172 "${COMMON}/hv_frsw.c"
173 "${COMMON}/hv_atmsw.c"
174 "${COMMON}/hv_atm_bridge.c"
175 "${COMMON}/hv_ethsw.c"
176 "${LOCAL}/hv_vm.c"
177 "${COMMON}/hv_vm_debug.c"
178 "${COMMON}/hv_store.c"
179 "${COMMON}/hv_c7200.c"
180 "${COMMON}/hv_c3600.c"
181 "${COMMON}/hv_c2691.c"
182 "${COMMON}/hv_c3725.c"
183 "${COMMON}/hv_c3745.c"
184 "${COMMON}/hv_c2600.c"
185 "${COMMON}/hv_c1700.c"
186 "${COMMON}/rommon_var.c"
187 "${COMMON}/get_cpu_time.c"
188 "${COMMON}/fs_fat.c"
189 "${COMMON}/fs_mbr.c"
190 "${COMMON}/fs_nvram.c"
191 "${COMMON}/dev_lxt970a.c"
192 )
193 if ( ENABLE_LINUX_ETH )
194 set ( _files ${_files} "${COMMON}/linux_eth.c" )
195 endif ( ENABLE_LINUX_ETH )
196 if ( ENABLE_GEN_ETH )
197 set ( _files ${_files} "${COMMON}/gen_eth.c" )
198 endif ( ENABLE_GEN_ETH )
199 set ( _dependencies ppc32_microcode_dump_unstable mips64_microcode_dump_unstable )
200
201 # dynamips_amd64_unstable
202 if ( "amd64" STREQUAL "${DYNAMIPS_ARCH}" )
203 add_executable ( dynamips_amd64_unstable
204 ${_files}
205 "${LOCAL}/mips64_amd64_trans.c"
206 "${LOCAL}/ppc32_amd64_trans.c"
207 )
208 add_dependencies ( dynamips_amd64_unstable ${_dependencies} )
209 target_link_libraries ( dynamips_amd64_unstable ${DYNAMIPS_LIBRARIES} )
210 maybe_rename_to_dynamips ( dynamips_amd64_unstable )
211 install_executable ( dynamips_amd64_unstable )
212 endif ()
213
214 # dynamips_x86_unstable
215 if ( "x86" STREQUAL "${DYNAMIPS_ARCH}" )
216 add_executable ( dynamips_x86_unstable
217 ${_files}
218 "${LOCAL}/mips64_x86_trans.c"
219 "${LOCAL}/ppc32_x86_trans.c"
220 )
221 add_dependencies ( dynamips_x86_unstable ${_dependencies} )
222 target_link_libraries ( dynamips_x86_unstable ${DYNAMIPS_LIBRARIES} )
223 maybe_rename_to_dynamips ( dynamips_x86_unstable )
224 install_executable ( dynamips_x86_unstable )
225 endif ()
226
227 # dynamips_nojit_unstable
228 if ( "nojit" STREQUAL "${DYNAMIPS_ARCH}" )
229 add_executable ( dynamips_nojit_unstable
230 ${_files}
231 "${LOCAL}/mips64_nojit_trans.c"
232 "${COMMON}/ppc32_nojit_trans.c"
233 )
234 add_dependencies ( dynamips_nojit_unstable ${_dependencies} )
235 target_link_libraries ( dynamips_nojit_unstable ${DYNAMIPS_LIBRARIES} )
236 maybe_rename_to_dynamips ( dynamips_nojit_unstable )
237 install_executable ( dynamips_nojit_unstable )
238 endif ()