How to build a brew extension mod from existing source | developer.brewmp.com How to build a brew extension mod from existing source | developer.brewmp.com

Developer

How to build a brew extension mod from existing source

Hi,

I have the source and all header files needed to build an extension. I dont have any make files however, its a one .c file project. I have never used the armcc command line however, so if you can help me out that be great.

Here's the command I use to compile it:

armcc -c -IC:\BREW315\sdk\inc sampleCode.c

At this point, it compiles and I get a warning: No Entry Point. I assume this is ok if its an extension? The output is sampleCode.o

Now I use the armlink to link it, but I'm not sure how to link this to get a MOD out?

armlink sampleCode.o

Gives me nothing!

So I try:

armlink sampleCode.o -Output sampleCode.mod

and I get the mod, but I dont think this is what I want :)

So how do I do this? Sorry, develepment environments and build scripts have made me stupid :{

An extension and an applet, as far as compilers are linkers are concerned, are identical. They still need an AEEMod_Load entry point. You still need to run fromelf or elf2mod.
Widgets in BUIW/uiOne widgets/whatever it's called to today is a great example of an extension. Download that and take a look.

An extension and an applet, as far as compilers are linkers are concerned, are identical. They still need an AEEMod_Load entry point. You still need to run fromelf or elf2mod.
Widgets in BUIW/uiOne widgets/whatever it's called to today is a great example of an extension. Download that and take a look.