]> rtime.felk.cvut.cz Git - omk.git/blob - tests/header-files.files
Update wvtool
[omk.git] / tests / header-files.files
1 mkdir 'orte'
2 cat > 'orte/orte_config_omk_win32.h' <<'EOF'
3 /* orte/include/orte/orte_config.h.  Generated by configure.  */
4 /* orte/include/orte/orte_config.h.in.  Generated from configure.in by autoheader.  */
5
6 /* Define to enable JORTE's compilation */
7 /* #undef CONFIG_JORTE */
8
9 /* Define if is target CYGWIN */
10 /* #undef CONFIG_ORTE_CYGWIN */
11
12 /* Define if linux kernel is found */
13 /* #undef CONFIG_ORTE_KERNEL */
14
15 /* Define if is target MINGW */
16 #define CONFIG_ORTE_MINGW 1
17
18 /* Define to enable ORTE's RT support */
19 /* #undef CONFIG_ORTE_RT */
20
21 /* Define if kernel is RTAI patched */
22 /* #undef CONFIG_ORTE_RTAI */
23
24 /* Define if kernel is RTLinux patched */
25 /* #undef CONFIG_ORTE_RTL */
26
27 /* Define if onetd stack is found */
28 /* #undef CONFIG_ORTE_RTL_ONETD */
29
30 /* Define if wIP stack is found */
31 /* #undef CONFIG_ORTE_RTL_WIP */
32
33 /* Define if is target a unix system */
34 /* #undef CONFIG_ORTE_UNIX */
35
36 /* Define if is target windows */
37 #define CONFIG_ORTE_WIN 1
38
39 /* Define to 1 if you have the <arpa/inet.h> header file. */
40 /* #undef HAVE_ARPA_INET_H */
41
42 /* Define to 1 if you have the <asm/byteorder.h> header file. */
43 /* #undef HAVE_ASM_BYTEORDER_H */
44
45 /* Define to 1 if you have the <byteswap.h> header file. */
46 /* #undef HAVE_BYTESWAP_H */
47
48 /* Define to 1 if you have the <ctype.h> header file. */
49 #define HAVE_CTYPE_H 1
50
51 /* Define to 1 if you have the <dlfcn.h> header file. */
52 /* #undef HAVE_DLFCN_H */
53
54 /* Define to 1 if you have the <errno.h> header file. */
55 #define HAVE_ERRNO_H 1
56
57 /* Define to 1 if you have the <fcntl.h> header file. */
58 #define HAVE_FCNTL_H 1
59
60 /* Define to 1 if you have the `gethostbyname' function. */
61 /* #undef HAVE_GETHOSTBYNAME */
62
63 /* Define to 1 if you have the <getopt.h> header file. */
64 #define HAVE_GETOPT_H 1
65
66 /* Define to 1 if you have the `getopt_long' function. */
67 /* #undef HAVE_GETOPT_LONG */
68
69 /* Define for ORTE getopt_long self implemetation */
70 #define HAVE_GETPOT_LONG_ORTE 1
71
72 /* Define to 1 if you have the <inttypes.h> header file. */
73 #define HAVE_INTTYPES_H 1
74
75 /* Define to 1 if you have the `c_r' library (-lc_r). */
76 /* #undef HAVE_LIBC_R */
77
78 /* Define to 1 if you have the `nsl' library (-lnsl). */
79 /* #undef HAVE_LIBNSL */
80
81 /* Define to 1 if you have the `popt' library (-lpopt). */
82 /* #undef HAVE_LIBPOPT */
83
84 /* Define to 1 if you have the `pthread' library (-lpthread). */
85 /* #undef HAVE_LIBPTHREAD */
86
87 /* Define to 1 if you have the `socket' library (-lsocket). */
88 /* #undef HAVE_LIBSOCKET */
89
90 /* Define to 1 if you have the `ws2_32' library (-lws2_32). */
91 #define HAVE_LIBWS2_32 1
92
93 /* Define to 1 if you have the <linux/ctype.h> header file. */
94 /* #undef HAVE_LINUX_CTYPE_H */
95
96 /* Define to 1 if you have the <linux/if.h> header file. */
97 /* #undef HAVE_LINUX_IF_H */
98
99 /* Define to 1 if you have the <linux/in.h> header file. */
100 /* #undef HAVE_LINUX_IN_H */
101
102 /* Define to 1 if you have the <linux/module.h> header file. */
103 /* #undef HAVE_LINUX_MODULE_H */
104
105 /* Define to 1 if you have the <linux/socket.h> header file. */
106 /* #undef HAVE_LINUX_SOCKET_H */
107
108 /* Define to 1 if you have the <linux/string.h> header file. */
109 /* #undef HAVE_LINUX_STRING_H */
110
111 /* Define to 1 if you have the <linux/time.h> header file. */
112 /* #undef HAVE_LINUX_TIME_H */
113
114 /* Define to 1 if you have the <linux/types.h> header file. */
115 /* #undef HAVE_LINUX_TYPES_H */
116
117 /* Define to 1 if you have the <memory.h> header file. */
118 #define HAVE_MEMORY_H 1
119
120 /* Define to 1 if you have the <netdb.h> header file. */
121 /* #undef HAVE_NETDB_H */
122
123 /* Define to 1 if you have the <netinet/in.h> header file. */
124 /* #undef HAVE_NETINET_IN_H */
125
126 /* Define to 1 if you have the <net/if.h> header file. */
127 /* #undef HAVE_NET_IF_H */
128
129 /* Define to 1 if you have the <nictab.h> header file. */
130 /* #undef HAVE_NICTAB_H */
131
132 /* Define to 1 if you have the <nic.h> header file. */
133 /* #undef HAVE_NIC_H */
134
135 /* Define to 1 if you have the <onetd.h> header file. */
136 /* #undef HAVE_ONETD_H */
137
138 /* Define to 1 if you have the <pthread.h> header file. */
139 /* #undef HAVE_PTHREAD_H */
140
141 /* Define to 1 if you have the <rtl.h> header file. */
142 /* #undef HAVE_RTL_H */
143
144 /* Define to 1 if you have the <rtl_malloc.h> header file. */
145 /* #undef HAVE_RTL_MALLOC_H */
146
147 /* Define to 1 if you have the <rtnet.h> header file. */
148 /* #undef HAVE_RTNET_H */
149
150 /* Define to 1 if you have the <signal.h> header file. */
151 #define HAVE_SIGNAL_H 1
152
153 /* Define to 1 if you have the <stdarg.h> header file. */
154 #define HAVE_STDARG_H 1
155
156 /* Define to 1 if you have the <stdint.h> header file. */
157 #define HAVE_STDINT_H 1
158
159 /* Define to 1 if you have the <stdio.h> header file. */
160 #define HAVE_STDIO_H 1
161
162 /* Define to 1 if you have the <stdlib.h> header file. */
163 #define HAVE_STDLIB_H 1
164
165 /* Define to 1 if you have the <strings.h> header file. */
166 #define HAVE_STRINGS_H 1
167
168 /* Define to 1 if you have the <string.h> header file. */
169 #define HAVE_STRING_H 1
170
171 /* Define to 1 if you have the <sys/ioctl.h> header file. */
172 /* #undef HAVE_SYS_IOCTL_H */
173
174 /* Define to 1 if you have the <sys/socket.h> header file. */
175 /* #undef HAVE_SYS_SOCKET_H */
176
177 /* Define to 1 if you have the <sys/sockio.h> header file. */
178 /* #undef HAVE_SYS_SOCKIO_H */
179
180 /* Define to 1 if you have the <sys/stat.h> header file. */
181 #define HAVE_SYS_STAT_H 1
182
183 /* Define to 1 if you have the <sys/time.h> header file. */
184 #define HAVE_SYS_TIME_H 1
185
186 /* Define to 1 if you have the <sys/types.h> header file. */
187 #define HAVE_SYS_TYPES_H 1
188
189 /* Define to 1 if you have the <time.h> header file. */
190 /* #undef HAVE_TIME_H */
191
192 /* Define to 1 if you have the <udp.h> header file. */
193 /* #undef HAVE_UDP_H */
194
195 /* Define to 1 if you have the <unistd.h> header file. */
196 #define HAVE_UNISTD_H 1
197
198 /* Define to 1 if you have the <w32api/windows.h> header file. */
199 /* #undef HAVE_W32API_WINDOWS_H */
200
201 /* Define to 1 if you have the <windows.h> header file. */
202 #define HAVE_WINDOWS_H 1
203
204 /* Define to 1 if you have the <winsock2.h> header file. */
205 #define HAVE_WINSOCK2_H 1
206
207 /* Define to 1 if you have the <ws2tcpip.h> header file. */
208 #define HAVE_WS2TCPIP_H 1
209
210 /* Define to the address where bug reports for this package should be sent. */
211 #define ORTE_PACKAGE_BUGREPORT "petr.smolik@wo.cz"
212
213 /* Define to the full name of this package. */
214 #define ORTE_PACKAGE_NAME "orte"
215
216 /* Define to the full name and version of this package. */
217 #define ORTE_PACKAGE_STRING "orte 0.3.1"
218
219 /* Define to the one symbol short name of this package. */
220 #define ORTE_PACKAGE_TARNAME "orte"
221
222 /* Define to the version of this package. */
223 #define ORTE_PACKAGE_VERSION "0.3.1"
224
225 /* Define to 1 if you have the ANSI C header files. */
226 #define STDC_HEADERS 1
227
228 /* Define to 1 if your processor stores words with the most significant byte
229    first (like Motorola and SPARC, unlike Intel and VAX). */
230 /* #undef WORDS_BIGENDIAN */
231
232
233 #ifndef _GNU_SOURCE
234   #define _GNU_SOURCE
235 #endif
236
237
238 /* Define to empty if `const' does not conform to ANSI C. */
239 /* #undef const */
240
241 /* Define to `__inline__' or `__inline' if that's what the C compiler
242    calls it, or to nothing if 'inline' is not supported under any name.  */
243 #ifndef __cplusplus
244 /* #undef inline */
245 #endif
246 EOF
247 cat > 'ls-include.txt' <<'EOF'
248 .:
249 orte
250 periph
251 sci_regs.h
252 x.h
253 y.h
254
255 ./orte:
256 orte_config.h
257
258 ./periph:
259 sci_channels.h
260 EOF
261 cat > 'Makefile.omk' <<'EOF'
262 include_HEADERS = x.h periph/sci_regs.h
263 nobase_include_HEADERS = periph/sci_channels.h
264 renamed_include_HEADERS = x.h->y.h
265 renamed_include_HEADERS += orte/orte_config_omk_win32.h->orte/orte_config.h
266 EOF
267 echo '// Hello' > 'x.h'
268 mkdir 'periph'
269 cat > 'periph/sci_regs.h' <<'EOF'
270 /*******************************************************************
271   Components for embedded applications builded for
272   laboratory and medical instruments firmware
273
274   sci_regs.h - UART communication for H2638 microcontroller
275
276    (C) 2005 by Michal Sojka <wentasah@centrum.cz>
277    (C) 2005 by Petr Kovacik <kovacp1@fel.cvut.cz>
278
279  The COLAMI components can be used and copied according to next
280  license alternatives
281    - MPL - Mozilla Public License
282    - GPL - GNU Public License
283
284  *******************************************************************/
285
286 #ifndef _SCI_REGS_H
287 #define _SCI_REGS_H
288
289 #include <types.h>
290
291 struct sci_regs {
292     volatile __u8  rs232_smr;
293     volatile __u8  rs232_brr;
294     volatile __u8  rs232_scr;
295     volatile __u8  rs232_tdr;
296     volatile __u8  rs232_ssr;
297     volatile __u8  rs232_rdr;
298     volatile __u8  rs232_scmr;
299 };
300
301   
302 #endif /* _SCI_REGS_H */
303 EOF
304 cat > 'periph/sci_channels.h' <<'EOF'
305 /*******************************************************************
306   Components for embedded applications builded for
307   laboratory and medical instruments firmware
308
309   sci_channels.h - UART communication for H2638 microcontroller
310
311    (C) 2005 by Michal Sojka <wentasah@centrum.cz>
312
313  The COLAMI components can be used and copied according to next
314  license alternatives
315    - MPL - Mozilla Public License
316    - GPL - GNU Public License
317
318  *******************************************************************/
319 #ifndef _SCI_PORTS_H
320 #define _SCI_PORTS_H
321
322 #include <periph/sci_rs232.h>
323 #include <system_def.h>
324
325 extern sci_info_t sci_rs232_chan0, sci_rs232_chan1, sci_rs232_chan2;
326
327 extern sci_info_t *sci_rs232_chan_array[];
328
329 #ifndef SCI_RS232_CHAN_DEFAULT
330 #define SCI_RS232_CHAN_DEFAULT 0
331 #endif
332
333 /** 
334  * This variable selects the default channel for use by IO functions
335  * (prtinf etc.). You can change the value of this variable in your
336  * application or by defining SCI_RS232_CHAN_DEFAULT symbol (probably
337  * in system_def.h).
338  */
339 extern int sci_rs232_chan_default;
340
341 #endif
342 EOF