* ldlang.c (relaxing): Removed global variable.
[deliverable/binutils-gdb.git] / mpw-config.in
CommitLineData
498d098a
SS
1# Configuration fragment for Cygnus source tree.
2
5db7ecb7
SS
3Set host_libs "mmalloc libiberty opcodes bfd readline"
4
5Set host_tools "byacc flex binutils ld gas gcc gdb"
6
7Set target_libs ""
8
9Set target_tools ""
10
11Set configdirs "{host_libs} {host_tools} {target_libs} {target_tools}"
12Export configdirs
13
498d098a
SS
14# Make up a special include directory that tools will share.
15
16If "`Exists "{objdir}"extra-include`" == ""
17 NewFolder "{objdir}"extra-include
18End If
19
20Set extradir "{objdir}extra-include:"
21
22Echo '/* Imitation sys/types.h. */' >"{extradir}"'sys/types.h'
23Echo '#ifndef __SYS_TYPES_H__' >>"{extradir}"'sys/types.h'
24Echo '#define __SYS_TYPES_H__' >>"{extradir}"'sys/types.h'
25Echo '#include <Types.h>' >>"{extradir}"'sys/types.h'
26Echo 'typedef short dev_t' >>"{extradir}"'sys/types.h'
27Echo 'typedef short ino_t' >>"{extradir}"'sys/types.h'
28Echo 'typedef unsigned short mode_t' >>"{extradir}"'sys/types.h'
29Echo 'typedef unsigned short uid_t' >>"{extradir}"'sys/types.h'
30Echo 'typedef unsigned short gid_t' >>"{extradir}"'sys/types.h'
31Echo 'typedef long off_t' >>"{extradir}"'sys/types.h'
32Echo '#endif /* __SYS_TYPES_H__ */' >>"{extradir}"'sys/types.h'
33
34Echo '/* Imitation sys/time.h. */' >"{extradir}"'sys/time.h'
35Echo '#ifndef __SYS_TIME_H__' >>"{extradir}"'sys/time.h'
36Echo '#define __SYS_TIME_H__' >>"{extradir}"'sys/time.h'
37Echo '#include <Time.h>' >"{extradir}"'sys/time.h'
38Echo 'struct timeval {' >>"{extradir}"'sys/time.h'
39Echo ' long tv_sec;' >>"{extradir}"'sys/time.h'
40Echo ' long tv_usec;' >>"{extradir}"'sys/time.h'
41Echo '};' >>"{extradir}"'sys/time.h'
42Echo '#endif /* __SYS_TIME_H__ */' >>"{extradir}"'sys/time.h'
43
44Echo '/* Imitation sys/resource.h. */' >"{extradir}"'sys/resource.h'
45Echo '#ifndef __SYS_RESOURCE_H__' >>"{extradir}"'sys/resource.h'
46Echo '#define __SYS_RESOURCE_H__' >>"{extradir}"'sys/resource.h'
47Echo 'struct rusage {' >"{extradir}"'sys/resource.h'
48Echo ' struct timeval ru_utime;' >>"{extradir}"'sys/resource.h'
49Echo ' struct timeval ru_stime;' >>"{extradir}"'sys/resource.h'
50Echo '};' >>"{extradir}"'sys/resource.h'
51Echo '#endif /* __SYS_RESOURCE_H__ */' >>"{extradir}"'sys/resource.h'
52
53Echo "/* varargs.h. */" >"{extradir}"varargs.h
54Echo "#ifndef __va_list__" >>"{extradir}"varargs.h
55Echo "#define __va_list__" >>"{extradir}"varargs.h
56Echo "typedef char *va_list;" >>"{extradir}"varargs.h
57Echo "#endif" >>"{extradir}"varargs.h
58Echo "#define va_dcl int va_alist;" >>"{extradir}"varargs.h
59Echo "#define va_start(list) list = (char *) &va_alist" >>"{extradir}"varargs.h
60Echo "#define va_end(list)" >>"{extradir}"varargs.h
61Echo "#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]" >>"{extradir}"varargs.h
62
63Echo '/* empty */' >"{extradir}"'sys/param.h'
64
65Echo '/* empty */' >"{extradir}"'sys/file.h'
66
67Echo '/* Imitation stat.h */' >"{extradir}"'sys/stat.h'
68Echo '#ifndef __SYS_STAT_H__' >>"{extradir}"'sys/stat.h'
69Echo '#define __SYS_STAT_H__' >>"{extradir}"'sys/stat.h'
70Echo '#include <sys/types.h>' >>"{extradir}"'sys/stat.h'
71Echo '#include <Time.h>' >>"{extradir}"'sys/stat.h'
72Echo 'struct stat {' >>"{extradir}"'sys/stat.h'
73Echo ' dev_t st_dev;' >>"{extradir}"'sys/stat.h'
74Echo ' ino_t st_ino;' >>"{extradir}"'sys/stat.h'
75Echo ' mode_t st_mode;' >>"{extradir}"'sys/stat.h'
76Echo ' short st_nlink;' >>"{extradir}"'sys/stat.h'
77Echo ' uid_t st_uid;' >>"{extradir}"'sys/stat.h'
78Echo ' gid_t st_gid;' >>"{extradir}"'sys/stat.h'
79Echo ' dev_t st_rdev;' >>"{extradir}"'sys/stat.h'
80Echo ' off_t st_size;' >>"{extradir}"'sys/stat.h'
81Echo ' time_t st_atime;' >>"{extradir}"'sys/stat.h'
82Echo ' int st_spare1;' >>"{extradir}"'sys/stat.h'
83Echo ' time_t st_mtime;' >>"{extradir}"'sys/stat.h'
84Echo ' int st_spare2;' >>"{extradir}"'sys/stat.h'
85Echo ' time_t st_ctime;' >>"{extradir}"'sys/stat.h'
86Echo ' int st_spare3;' >>"{extradir}"'sys/stat.h'
87Echo ' long st_blksize;' >>"{extradir}"'sys/stat.h'
88Echo ' long st_blocks;' >>"{extradir}"'sys/stat.h'
89Echo ' long st_spare4[2];' >>"{extradir}"'sys/stat.h'
90Echo '};' >>"{extradir}"'sys/stat.h'
91Echo '#define S_IFDIR 0x0010' >>"{extradir}"'sys/stat.h'
92Echo '#define S_IFMT 0x0020' >>"{extradir}"'sys/stat.h'
93Echo '#define S_IREAD 0x0040' >>"{extradir}"'sys/stat.h'
94Echo '#define S_IWRITE 0x0080' >>"{extradir}"'sys/stat.h'
95Echo '#define S_IEXEC 0x0100' >>"{extradir}"'sys/stat.h'
96Echo 'int stat (char *path, struct stat *buf);' >>"{extradir}"'sys/stat.h'
97Echo 'int fstat(int, struct stat *);' >>"{extradir}"'sys/stat.h'
98Echo '#endif /* __SYS_STAT_H___ */' >>"{extradir}"'sys/stat.h'
This page took 0.036491 seconds and 4 git commands to generate.