1998-08-29 20:09:56 +04:00
|
|
|
# $NetBSD: bfd-h.sed,v 1.4 1998/08/29 16:09:57 tv Exp $
|
1998-08-22 23:02:10 +04:00
|
|
|
# Preparse bfd.h such that it can be used on multiple machines.
|
|
|
|
|
|
|
|
s/@VERSION@/2.8.1/
|
|
|
|
/@wordsize@/{
|
|
|
|
i\
|
1998-08-29 20:09:56 +04:00
|
|
|
#if defined(__alpha__)\
|
1998-08-22 23:02:10 +04:00
|
|
|
#define BFD_ARCH_SIZE 64\
|
|
|
|
#else\
|
|
|
|
#define BFD_ARCH_SIZE 32\
|
|
|
|
#endif
|
|
|
|
d
|
|
|
|
}
|
|
|
|
/@BFD_HOST_64BIT_LONG@/ {
|
|
|
|
i\
|
|
|
|
#if defined(__alpha__)\
|
|
|
|
#define BFD_HOST_64BIT_LONG 1\
|
|
|
|
#else\
|
1998-08-29 20:09:56 +04:00
|
|
|
#define BFD_HOST_64BIT_LONG 0\
|
1998-08-23 00:32:02 +04:00
|
|
|
#endif
|
1998-08-22 23:02:10 +04:00
|
|
|
d
|
|
|
|
}
|
|
|
|
s/@BFD_HOST_64_BIT_DEFINED@/1/
|
1998-08-23 00:32:02 +04:00
|
|
|
s/@BFD_HOST_64_BIT@/long long/
|
|
|
|
s/@BFD_HOST_U_64_BIT@/unsigned long long/
|