On Wed, May 10, 2000 at 06:50:21PM -0400, Thomas Ward wrote:
> Hi,
> 
> I'm trying to write my first hack. I've read all the documentation, and
> written my code using the new data types and headers. What I can't seem to
> figure out is what my makefile should look like. Assuming I have the
> following files:
> 
> myhack.h
> myhack.rcp
> code03e8.c
> code07d0.c
> 
> using the -palmos3.5 option, what would my makefile look like to compile
> this hack?

http://www.execpc.com/~tz/nolohack.zip

http://www.execpc.com/~tz/nolohack.tgz

Is my hack using GCC.  The makefile should work in 3.5 (you might have to alter
the paths or the header files).

This is a makefile from another hack.  I am using the old GCC here too,
but I just tried it with COMP=palmos (which turns on my 3.5 support) and
fixed the headers and it compiled.  [this hack is something that didn't
work out so I didn't check the creator ID which you should do]

COMP=palmos-coff

%.o: %.c
        m68k-$(COMP)-gcc -Wall -I../TZUtils/ -O3 -c $< -o $@

code0001.%.grc: %.o
        m68k-$(COMP)-gcc $< -nostartfiles -o $*
        m68k-$(COMP)-obj-res $*
        rm $*

Autonet.prc: code0001.autonet.grc autonet.rcp
        mv code0001.autonet.grc code03e8.bin
        pilrc autonet.rcp
        build-prc -t HACK Autonet.prc "AutoNetSwitch" ANHK *.bin

clean:
        rm -f *.prc *.grc *.o *.bin autonet


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to