Add (to remove)

This commit is contained in:
simon.kagstrom 2009-05-05 19:45:01 +00:00
parent fa0e748436
commit f87294ec05
8 changed files with 25198 additions and 8 deletions

518
src/blit.h.wii Normal file
View File

@ -0,0 +1,518 @@
STATIC_INLINE uae_u32 blit_func(uae_u32 srca, uae_u32 srcb, uae_u32 srcc, uae_u8 mt)
{
switch(mt){
case 0x0:
return 0;
case 0x1:
return ~(srca | srcb | srcc);
case 0x2:
return (srcc & ~(srca | srcb));
case 0x3:
return ~(srca | srcb);
case 0x4:
return (srcb & ~(srca | srcc));
case 0x5:
return ~(srca | srcc);
case 0x6:
return (~srca & (srcb ^ srcc));
case 0x7:
return ~(srca | (srcb & srcc));
case 0x8:
return (~srca & srcb & srcc);
case 0x9:
return ~(srca | (srcb ^ srcc));
case 0xa:
return (~srca & srcc);
case 0xb:
return ~(srca | (srcb & ~srcc));
case 0xc:
return (~srca & srcb);
case 0xd:
return ~(srca | (~srcb & srcc));
case 0xe:
return (~srca & (srcb | srcc));
case 0xf:
return ~srca;
case 0x10:
return (srca & ~(srcb | srcc));
case 0x11:
return ~(srcb | srcc);
case 0x12:
return (~srcb & (srca ^ srcc));
case 0x13:
return ~(srcb | (srca & srcc));
case 0x14:
return (~srcc & (srca ^ srcb));
case 0x15:
return ~(srcc | (srca & srcb));
case 0x16:
return (srca ^ ((srca & srcb) | (srcb ^ srcc)));
case 0x17:
return ~(srca ^ ((srca ^ srcb) & (srca ^ srcc)));
case 0x18:
return ((srca ^ srcb) & (srca ^ srcc));
case 0x19:
return (srcb ^ (~srcc | (srca & srcb)));
case 0x1a:
return (srca ^ (srcc | (srca & srcb)));
case 0x1b:
return (srca ^ (srcc | ~(srca ^ srcb)));
case 0x1c:
return (srca ^ (srcb | (srca & srcc)));
case 0x1d:
return (srca ^ (srcb | ~(srca ^ srcc)));
case 0x1e:
return (srca ^ (srcb | srcc));
case 0x1f:
return ~(srca & (srcb | srcc));
case 0x20:
return (srca & ~srcb & srcc);
case 0x21:
return ~(srcb | (srca ^ srcc));
case 0x22:
return (~srcb & srcc);
case 0x23:
return ~(srcb | (srca & ~srcc));
case 0x24:
return ((srca ^ srcb) & (srcb ^ srcc));
case 0x25:
return (srca ^ (~srcc | (srca & srcb)));
case 0x26:
return (srcb ^ (srcc | (srca & srcb)));
case 0x27:
return ~(srca ^ (srcc & (srca ^ srcb)));
case 0x28:
return (srcc & (srca ^ srcb));
case 0x29:
return ~(srca ^ srcb ^ (srcc | (srca & srcb)));
case 0x2a:
return (srcc & ~(srca & srcb));
case 0x2b:
return ~(srca ^ ((srca ^ srcb) & (srcb ^ srcc)));
case 0x2c:
return (srcb ^ (srca & (srcb | srcc)));
case 0x2d:
return (srca ^ (srcb | ~srcc));
case 0x2e:
return (srca ^ (srcb | (srca ^ srcc)));
case 0x2f:
return ~(srca & (srcb | ~srcc));
case 0x30:
return (srca & ~srcb);
case 0x31:
return ~(srcb | (~srca & srcc));
case 0x32:
return (~srcb & (srca | srcc));
case 0x33:
return ~srcb;
case 0x34:
return (srcb ^ (srca | (srcb & srcc)));
case 0x35:
return (srcb ^ (srca | ~(srcb ^ srcc)));
case 0x36:
return (srcb ^ (srca | srcc));
case 0x37:
return ~(srcb & (srca | srcc));
case 0x38:
return (srca ^ (srcb & (srca | srcc)));
case 0x39:
return (srcb ^ (srca | ~srcc));
case 0x3a:
return (srcb ^ (srca | (srcb ^ srcc)));
case 0x3b:
return ~(srcb & (srca | ~srcc));
case 0x3c:
return (srca ^ srcb);
case 0x3d:
return (srca ^ (srcb | ~(srca | srcc)));
case 0x3e:
return (srca ^ (srcb | (srca ^ (srca | srcc))));
case 0x3f:
return ~(srca & srcb);
case 0x40:
return (srca & srcb & ~srcc);
case 0x41:
return ~(srcc | (srca ^ srcb));
case 0x42:
return ((srca ^ srcc) & (srcb ^ srcc));
case 0x43:
return (srca ^ (~srcb | (srca & srcc)));
case 0x44:
return (srcb & ~srcc);
case 0x45:
return ~(srcc | (srca & ~srcb));
case 0x46:
return (srcc ^ (srcb | (srca & srcc)));
case 0x47:
return ~(srca ^ (srcb & (srca ^ srcc)));
case 0x48:
return (srcb & (srca ^ srcc));
case 0x49:
return ~(srca ^ srcc ^ (srcb | (srca & srcc)));
case 0x4a:
return (srcc ^ (srca & (srcb | srcc)));
case 0x4b:
return (srca ^ (~srcb | srcc));
case 0x4c:
return (srcb & ~(srca & srcc));
case 0x4d:
return (srca ^ ((srca ^ srcb) | ~(srca ^ srcc)));
case 0x4e:
return (srca ^ (srcc | (srca ^ srcb)));
case 0x4f:
return ~(srca & (~srcb | srcc));
case 0x50:
return (srca & ~srcc);
case 0x51:
return ~(srcc | (~srca & srcb));
case 0x52:
return (srcc ^ (srca | (srcb & srcc)));
case 0x53:
return ~(srcb ^ (srca & (srcb ^ srcc)));
case 0x54:
return (~srcc & (srca | srcb));
case 0x55:
return ~srcc;
case 0x56:
return (srcc ^ (srca | srcb));
case 0x57:
return ~(srcc & (srca | srcb));
case 0x58:
return (srca ^ (srcc & (srca | srcb)));
case 0x59:
return (srcc ^ (srca | ~srcb));
case 0x5a:
return (srca ^ srcc);
case 0x5b:
return (srca ^ (srcc | ~(srca | srcb)));
case 0x5c:
return (srcc ^ (srca | (srcb ^ srcc)));
case 0x5d:
return ~(srcc & (srca | ~srcb));
case 0x5e:
return (srca ^ (srcc | (srca ^ (srca | srcb))));
case 0x5f:
return ~(srca & srcc);
case 0x60:
return (srca & (srcb ^ srcc));
case 0x61:
return ~(srcb ^ srcc ^ (srca | (srcb & srcc)));
case 0x62:
return (srcc ^ (srcb & (srca | srcc)));
case 0x63:
return (srcb ^ (~srca | srcc));
case 0x64:
return (srcb ^ (srcc & (srca | srcb)));
case 0x65:
return (srcc ^ (~srca | srcb));
case 0x66:
return (srcb ^ srcc);
case 0x67:
return (srcb ^ (srcc | ~(srca | srcb)));
case 0x68:
return ((srca & srcb) ^ (srcc & (srca | srcb)));
case 0x69:
return ~(srca ^ srcb ^ srcc);
case 0x6a:
return (srcc ^ (srca & srcb));
case 0x6b:
return ~(srca ^ srcb ^ (srcc & (srca | srcb)));
case 0x6c:
return (srcb ^ (srca & srcc));
case 0x6d:
return ~(srca ^ srcc ^ (srcb & (srca | srcc)));
case 0x6e:
return ((~srca & srcb) | (srcb ^ srcc));
case 0x6f:
return (~srca | (srcb ^ srcc));
case 0x70:
return (srca & ~(srcb & srcc));
case 0x71:
return ~(srca ^ ((srca ^ srcb) | (srca ^ srcc)));
case 0x72:
return (srcb ^ (srcc | (srca ^ srcb)));
case 0x73:
return ~(srcb & (~srca | srcc));
case 0x74:
return (srcc ^ (srcb | (srca ^ srcc)));
case 0x75:
return ~(srcc & (~srca | srcb));
case 0x76:
return (srcb ^ (srcc | (srca ^ (srca & srcb))));
case 0x77:
return ~(srcb & srcc);
case 0x78:
return (srca ^ (srcb & srcc));
case 0x79:
return ~(srcb ^ srcc ^ (srca & (srcb | srcc)));
case 0x7a:
return ((srca & ~srcb) | (srca ^ srcc));
case 0x7b:
return (~srcb | (srca ^ srcc));
case 0x7c:
return ((srca ^ srcb) | (srca & ~srcc));
case 0x7d:
return (~srcc | (srca ^ srcb));
case 0x7e:
return ((srca ^ srcb) | (srca ^ srcc));
case 0x7f:
return ~(srca & srcb & srcc);
case 0x80:
return (srca & srcb & srcc);
case 0x81:
return ~((srca ^ srcb) | (srca ^ srcc));
case 0x82:
return (srcc & ~(srca ^ srcb));
case 0x83:
return (srca ^ (~srcb | (srca & ~srcc)));
case 0x84:
return (srcb & ~(srca ^ srcc));
case 0x85:
return (srca ^ (~srcc | (srca & ~srcb)));
case 0x86:
return (srcb ^ srcc ^ (srca & (srcb | srcc)));
case 0x87:
return ~(srca ^ (srcb & srcc));
case 0x88:
return (srcb & srcc);
case 0x89:
return (srcb ^ (~srcc & (~srca | srcb)));
case 0x8a:
return (srcc & (~srca | srcb));
case 0x8b:
return (srca ^ (~srcb | (srca ^ srcc)));
case 0x8c:
return (srcb & (~srca | srcc));
case 0x8d:
return (srca ^ (~srcc | (srca ^ srcb)));
case 0x8e:
return (srca ^ ((srca ^ srcb) | (srca ^ srcc)));
case 0x8f:
return (~srca | (srcb & srcc));
case 0x90:
return (srca & ~(srcb ^ srcc));
case 0x91:
return (srcb ^ (~srcc | (~srca & srcb)));
case 0x92:
return (srca ^ srcc ^ (srcb & (srca | srcc)));
case 0x93:
return ~(srcb ^ (srca & srcc));
case 0x94:
return (srca ^ srcb ^ (srcc & (srca | srcb)));
case 0x95:
return ~(srcc ^ (srca & srcb));
case 0x96:
return (srca ^ srcb ^ srcc);
case 0x97:
return (srca ^ srcb ^ (srcc | ~(srca | srcb)));
case 0x98:
return (srcb ^ (~srcc & (srca | srcb)));
case 0x99:
return ~(srcb ^ srcc);
case 0x9a:
return (srcc ^ (srca & ~srcb));
case 0x9b:
return ~(srcb ^ (srcc & (srca | srcb)));
case 0x9c:
return (srcb ^ (srca & ~srcc));
case 0x9d:
return ~(srcc ^ (srcb & (srca | srcc)));
case 0x9e:
return (srcb ^ srcc ^ (srca | (srcb & srcc)));
case 0x9f:
return ~(srca & (srcb ^ srcc));
case 0xa0:
return (srca & srcc);
case 0xa1:
return (srca ^ (~srcc & (srca | ~srcb)));
case 0xa2:
return (srcc & (srca | ~srcb));
case 0xa3:
return (srcb ^ (~srca | (srcb ^ srcc)));
case 0xa4:
return (srca ^ (~srcc & (srca | srcb)));
case 0xa5:
return ~(srca ^ srcc);
case 0xa6:
return (srcc ^ (~srca & srcb));
case 0xa7:
return ~(srca ^ (srcc & (srca | srcb)));
case 0xa8:
return (srcc & (srca | srcb));
case 0xa9:
return ~(srcc ^ (srca | srcb));
case 0xaa:
return srcc;
case 0xab:
return (srcc | ~(srca | srcb));
case 0xac:
return (srcb ^ (srca & (srcb ^ srcc)));
case 0xad:
return ~(srcc ^ (srca | (srcb & srcc)));
case 0xae:
return (srcc | (~srca & srcb));
case 0xaf:
return (~srca | srcc);
case 0xb0:
return (srca & (~srcb | srcc));
case 0xb1:
return ~(srca ^ (srcc | (srca ^ srcb)));
case 0xb2:
return (srca ^ ((srca ^ srcc) & (srcb ^ srcc)));
case 0xb3:
return (~srcb | (srca & srcc));
case 0xb4:
return (srca ^ (srcb & ~srcc));
case 0xb5:
return ~(srcc ^ (srca & (srcb | srcc)));
case 0xb6:
return (srca ^ srcc ^ (srcb | (srca & srcc)));
case 0xb7:
return ~(srcb & (srca ^ srcc));
case 0xb8:
return (srca ^ (srcb & (srca ^ srcc)));
case 0xb9:
return ~(srcc ^ (srcb | (srca & srcc)));
case 0xba:
return (srcc | (srca & ~srcb));
case 0xbb:
return (~srcb | srcc);
case 0xbc:
return ((srca ^ srcb) | (srca & srcc));
case 0xbd:
return ((srca ^ srcb) | ~(srca ^ srcc));
case 0xbe:
return (srcc | (srca ^ srcb));
case 0xbf:
return (srcc | ~(srca & srcb));
case 0xc0:
return (srca & srcb);
case 0xc1:
return (srca ^ (~srcb & (srca | ~srcc)));
case 0xc2:
return (srca ^ (~srcb & (srca | srcc)));
case 0xc3:
return ~(srca ^ srcb);
case 0xc4:
return (srcb & (srca | ~srcc));
case 0xc5:
return ~(srcb ^ (srca | (srcb ^ srcc)));
case 0xc6:
return (srcb ^ (~srca & srcc));
case 0xc7:
return ~(srca ^ (srcb & (srca | srcc)));
case 0xc8:
return (srcb & (srca | srcc));
case 0xc9:
return ~(srcb ^ (srca | srcc));
case 0xca:
return (srcc ^ (srca & (srcb ^ srcc)));
case 0xcb:
return ~(srcb ^ (srca | (srcb & srcc)));
case 0xcc:
return srcb;
case 0xcd:
return (srcb | ~(srca | srcc));
case 0xce:
return (srcb | (~srca & srcc));
case 0xcf:
return (~srca | srcb);
case 0xd0:
return (srca & (srcb | ~srcc));
case 0xd1:
return ~(srca ^ (srcb | (srca ^ srcc)));
case 0xd2:
return (srca ^ (~srcb & srcc));
case 0xd3:
return ~(srcb ^ (srca & (srcb | srcc)));
case 0xd4:
return (srca ^ ((srca ^ srcb) & (srcb ^ srcc)));
case 0xd5:
return (~srcc | (srca & srcb));
case 0xd6:
return (srca ^ srcb ^ (srcc | (srca & srcb)));
case 0xd7:
return ~(srcc & (srca ^ srcb));
case 0xd8:
return (srca ^ (srcc & (srca ^ srcb)));
case 0xd9:
return ~(srcb ^ (srcc | (srca & srcb)));
case 0xda:
return ((srca & srcb) | (srca ^ srcc));
case 0xdb:
return ~((srca ^ srcb) & (srcb ^ srcc));
case 0xdc:
return (srcb | (srca & ~srcc));
case 0xdd:
return (srcb | ~srcc);
case 0xde:
return (srcb | (srca ^ srcc));
case 0xdf:
return (srcb | ~(srca & srcc));
case 0xe0:
return (srca & (srcb | srcc));
case 0xe1:
return ~(srca ^ (srcb | srcc));
case 0xe2:
return (srcc ^ (srcb & (srca ^ srcc)));
case 0xe3:
return ~(srca ^ (srcb | (srca & srcc)));
case 0xe4:
return (srcb ^ (srcc & (srca ^ srcb)));
case 0xe5:
return ~(srca ^ (srcc | (srca & srcb)));
case 0xe6:
return ((srca & srcb) | (srcb ^ srcc));
case 0xe7:
return ~((srca ^ srcb) & (srca ^ srcc));
case 0xe8:
return (srca ^ ((srca ^ srcb) & (srca ^ srcc)));
case 0xe9:
return (srca ^ srcb ^ (~srcc | (srca & srcb)));
case 0xea:
return (srcc | (srca & srcb));
case 0xeb:
return (srcc | ~(srca ^ srcb));
case 0xec:
return (srcb | (srca & srcc));
case 0xed:
return (srcb | ~(srca ^ srcc));
case 0xee:
return (srcb | srcc);
case 0xef:
return (~srca | srcb | srcc);
case 0xf0:
return srca;
case 0xf1:
return (srca | ~(srcb | srcc));
case 0xf2:
return (srca | (~srcb & srcc));
case 0xf3:
return (srca | ~srcb);
case 0xf4:
return (srca | (srcb & ~srcc));
case 0xf5:
return (srca | ~srcc);
case 0xf6:
return (srca | (srcb ^ srcc));
case 0xf7:
return (srca | ~(srcb & srcc));
case 0xf8:
return (srca | (srcb & srcc));
case 0xf9:
return (srca | ~(srcb ^ srcc));
case 0xfa:
return (srca | srcc);
case 0xfb:
return (srca | ~srcb | srcc);
case 0xfc:
return (srca | srcb);
case 0xfd:
return (srca | srcb | ~srcc);
case 0xfe:
return (srca | srcb | srcc);
case 0xff:
return 0xFFFFFFFF;
}
return 0;
}

1519
src/blitfunc.c.wii Normal file

File diff suppressed because it is too large Load Diff

44
src/blitfunc.h.wii Normal file
View File

@ -0,0 +1,44 @@
extern blitter_func blitdofast_0;
extern blitter_func blitdofast_desc_0;
extern blitter_func blitdofast_a;
extern blitter_func blitdofast_desc_a;
extern blitter_func blitdofast_2a;
extern blitter_func blitdofast_desc_2a;
extern blitter_func blitdofast_30;
extern blitter_func blitdofast_desc_30;
extern blitter_func blitdofast_3a;
extern blitter_func blitdofast_desc_3a;
extern blitter_func blitdofast_3c;
extern blitter_func blitdofast_desc_3c;
extern blitter_func blitdofast_4a;
extern blitter_func blitdofast_desc_4a;
extern blitter_func blitdofast_6a;
extern blitter_func blitdofast_desc_6a;
extern blitter_func blitdofast_8a;
extern blitter_func blitdofast_desc_8a;
extern blitter_func blitdofast_8c;
extern blitter_func blitdofast_desc_8c;
extern blitter_func blitdofast_9a;
extern blitter_func blitdofast_desc_9a;
extern blitter_func blitdofast_a8;
extern blitter_func blitdofast_desc_a8;
extern blitter_func blitdofast_aa;
extern blitter_func blitdofast_desc_aa;
extern blitter_func blitdofast_b1;
extern blitter_func blitdofast_desc_b1;
extern blitter_func blitdofast_ca;
extern blitter_func blitdofast_desc_ca;
extern blitter_func blitdofast_cc;
extern blitter_func blitdofast_desc_cc;
extern blitter_func blitdofast_d8;
extern blitter_func blitdofast_desc_d8;
extern blitter_func blitdofast_e2;
extern blitter_func blitdofast_desc_e2;
extern blitter_func blitdofast_ea;
extern blitter_func blitdofast_desc_ea;
extern blitter_func blitdofast_f0;
extern blitter_func blitdofast_desc_f0;
extern blitter_func blitdofast_fa;
extern blitter_func blitdofast_desc_fa;
extern blitter_func blitdofast_fc;
extern blitter_func blitdofast_desc_fc;

77
src/blittable.c.wii Normal file
View File

@ -0,0 +1,77 @@
#include "sysconfig.h"
#include "sysdeps.h"
#include "options.h"
#include "custom.h"
#include "memory.h"
#include "blitter.h"
#include "blitfunc.h"
blitter_func * const blitfunc_dofast[256] = {
blitdofast_0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_2a, 0, 0, 0, 0, 0,
blitdofast_30, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_3a, 0, blitdofast_3c, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_4a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_6a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_8a, 0, blitdofast_8c, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_9a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
blitdofast_a8, 0, blitdofast_aa, 0, 0, 0, 0, 0,
0, blitdofast_b1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_ca, 0, blitdofast_cc, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
blitdofast_d8, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_e2, 0, 0, 0, 0, 0,
0, 0, blitdofast_ea, 0, 0, 0, 0, 0,
blitdofast_f0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_fa, 0, blitdofast_fc, 0, 0, 0
};
blitter_func * const blitfunc_dofast_desc[256] = {
blitdofast_desc_0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_2a, 0, 0, 0, 0, 0,
blitdofast_desc_30, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_3a, 0, blitdofast_desc_3c, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_4a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_6a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_8a, 0, blitdofast_desc_8c, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_9a, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
blitdofast_desc_a8, 0, blitdofast_desc_aa, 0, 0, 0, 0, 0,
0, blitdofast_desc_b1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_ca, 0, blitdofast_desc_cc, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
blitdofast_desc_d8, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_e2, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_ea, 0, 0, 0, 0, 0,
blitdofast_desc_f0, 0, 0, 0, 0, 0, 0, 0,
0, 0, blitdofast_desc_fa, 0, blitdofast_desc_fc, 0, 0, 0
};

12426
src/cpustbl.c.wii Normal file

File diff suppressed because it is too large Load Diff

10550
src/cputbl.h.wii Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,13 +5,16 @@
#define HAVE_ALARM 1
/* Define to 1 if you have the 'bswap_16' function. */
#define HAVE_BSWAP_16 1
/*#define HAVE_BSWAP_16 1 */
#undef HAVE_BSWAP_16
/* Define to 1 if you have the 'bswap_32' function. */
#define HAVE_BSWAP_32 1
/*#define HAVE_BSWAP_32 1*/
#undef HAVE_BSWAP_32
/* Define to 1 if you have the <byteswap.h> header file. */
#define HAVE_BYTESWAP_H 1
/*#define HAVE_BYTESWAP_H 1*/
#undef HAVE_BYTESWAP_H
/* Define to 1 if you have the <caps/capsimage.h> header file. */
/* #undef HAVE_CAPS_CAPSIMAGE_H */
@ -198,7 +201,8 @@
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the <sys/mount.h> header file. */
#define HAVE_SYS_MOUNT_H 1
/*#define HAVE_SYS_MOUNT_H 1 */
#undef HAVE_SYS_MOUNT_H
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
*/
@ -214,10 +218,12 @@
#define HAVE_SYS_SOUNDCARD_H 1
/* Define to 1 if you have the <sys/statfs.h> header file. */
#define HAVE_SYS_STATFS_H 1
/*#define HAVE_SYS_STATFS_H 1*/
#undef HAVE_SYS_STATFS_H
/* Define to 1 if you have the <sys/statvfs.h> header file. */
#define HAVE_SYS_STATVFS_H 1
/*#define HAVE_SYS_STATVFS_H 1*/
#undef HAVE_SYS_STATVFS_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
@ -232,7 +238,8 @@
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/vfs.h> header file. */
#define HAVE_SYS_VFS_H 1
/* #define HAVE_SYS_VFS_H 1 */
#undef HAVE_SYS_VFS_H
/* Define to 1 if you have the `tcgetattr' function. */
#define HAVE_TCGETATTR 1
@ -335,7 +342,8 @@
/* Define if statfs takes 2 args and struct statfs has a field named f_bsize.
(4.3BSD, SunOS 4, HP-UX, AIX PS/2) */
#define STAT_STATFS2_BSIZE 1
/*#define STAT_STATFS2_BSIZE 1*/
#undef STAT_STATFS2_BSIZE
/* Define if statfs takes 2 args and struct statfs has a field named f_fsize.
(4.4BSD, NetBSD) */

48
src/tools/Makefile.wii Normal file
View File

@ -0,0 +1,48 @@
#
# Makefile.in for UAE tools
#
CC = gcc
LDFLAGS =
CFLAGS =
LIBRARIES =
all: gencpu gencomp build68k genblitter genlinetoscr
install:
clean:
-rm -f *.o
-rm cpudefs.c
-rm -f gencpu gencomp genblitter build68k genlinetoscr
distclean: clean
-rm -f config.cache config.log config.status
-rm -f Makefile sysconfig.h
-rm -f *.c
genblitter: genblitter.o blitops.o writelog.o
$(CC) $(LDFLAGS) -o genblitter genblitter.o blitops.o writelog.o
build68k: build68k.o writelog.o
$(CC) $(LDFLAGS) -o build68k build68k.o writelog.o
gencpu: gencpu.o readcpu.o cpudefs.o missing.o writelog.o
$(CC) $(LDFLAGS) -o gencpu gencpu.o readcpu.o cpudefs.o missing.o writelog.o
gencomp: gencomp.o readcpu.o cpudefs.o missing.o
$(CC) $(LDFLAGS) -o gencomp gencomp.o readcpu.o missing.o cpudefs.o writelog.o
genlinetoscr: genlinetoscr.o
$(CC) $(LDFLAGS) -o genlinetoscr genlinetoscr.o
custom.o: blit.h
drawing.o: linetoscr.c
cpudefs.c: build68k ../table68k
./build68k ../table68k >cpudefs.c
.c.o:
$(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $(CFLAGS_$@) $< -o $@
.c.s:
$(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< -o $@
.c.i:
$(CC) $(INCLUDES) -E $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $< > $@