However, the makefile is downright mystifying. I didn't understand the one that came with the toolkit (it needed to be modified as it was pre-configured for windows but was very, very long), so I attempted to make my own but to little avail. This is the error I get:#include <genesis.h>
int main()
{
VDP_drawText("Hello Genny World!", 10, 13);
while(1)
{
//read input
//move sprite
//update score
//draw current screen (logo, start screen, settings, game, gameover, credits...)
//wait for screen refresh
VDP_waitVSync();
}
return (0);
}
I'm not sure, but I might have something out of order or something. It doesn't appear to be acknowledging any of the genesis functions. I understand very little of the build process, so I'm not even entirely sure what's supposed to be done before what for the genesis.m68k-elf-gcc -m68000 -Wall -O1 -fomit-frame-pointer -I/opt/toolchains/gen/include -I/opt/toolchains/gen/m68k-elf/include -I/opt/toolchains/gen/m68k-elf/m68k-elf/include-c main.c -o main.o
In file included from /opt/toolchains/gen/include/genesis.h:12:0,
from main.c:1:
/opt/toolchains/gen/include/memory.h:75:6: warning: conflicting types for built-in function ‘memset’
/opt/toolchains/gen/include/memory.h:78:6: warning: conflicting types for built-in function ‘memcpy’
/opt/toolchains/gen/m68k-elf/lib/gcc/m68k-elf/4.5.2/../../../../m68k-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000080000080
/tmp/ccV8Fz7q.o: In function `main':
main.c:(.text+0x12): undefined reference to `VDP_drawText'
main.c:(.text+0x1c): undefined reference to `VDP_waitVSync'
collect2: ld returned 1 exit status
make: *** [main.o] Error 1
So, I guess I'll start here. Let's say I wanted to compile this manually without make. What is the proper ordering of commands and files needed?