aboutsummaryrefslogtreecommitdiff
path: root/bfd/mpw-config.in
blob: 0ada777b6b91b61edfc8776d4d188ea4a9f821fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Configuration fragment for BFD.

DupIfChange {srcdir}hosts:mpw.h sysdep.h

StreamEdit -e '/@WORDSIZE@/ Replace /@WORDSIZE@/ "32"' {srcdir}bfd-in2.h >bfd.h-new
MoveIfChange bfd.h-new bfd.h

#DupIfChange {srcdir}mpw.bfd.h bfd.h

Echo "#ifndef __va_list__" >varargs.h
Echo "#define __va_list__" >>varargs.h
Echo "typedef char *va_list;" >>varargs.h
Echo "#endif" >>varargs.h
Echo "#define va_dcl int va_alist;" >>varargs.h
Echo "#define va_start(list) list = (char *) &va_alist" >>varargs.h
Echo "#define va_end(list)" >>varargs.h
Echo "#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]" >>varargs.h