Hi,

I tried to test your sample code. However the makefile is not working :(

First, I didn't wrote it, I'm using prc-tools on windows, so some function are bot handled by make. I was able to fix that (explicitly listing files :/ ).

There is also a duplicate rule for building the prc file, and there was no rule for compiling. I could fix that too.

On the other hand, there are 2 empty rules that transform a ".s" file into ".o" file. I guess this is assembly but I don't know the command and the flag to invoke. So I can't fix it :(

Please help me.

Here is an extract of my makefile :

//==================================================================
APP        = MyFontLib
EXECUTABLE = $(APP).prc
CC         = m68k-palmos-gcc
AS         = m68k-palmos-as
AR         = m68k-palmos-ar
STUBGEN    = m68k-palmos-stubgen
RC         = pilrc
RCFLAGS    = -q -allowEditID -I Src/ -I Rsrc/
RSRC       = Rsrc/Resources.stamp
CFLAGS     = -Wall -O2 -DCOMPILE_LIB -I. -ISrc
CXXFLAGS   = $(CFLAGS)

SOURCES    = FntLibraryShutdown.c ...
OBJS       = FntLibraryShutdown.o ...
DEPS       = FntLibraryShutdown.d ...


all: $(EXECUTABLE)


depend: $(SOURCES)
        gcc -MM $(SOURCES) > .depend

$(APP)-jumps.o: $(APP)-jumps.s
//PROBLEM HERE !!!

lib$(APP).a: $(APP)-stubs.o
        $(AR) rcs $@ $(APP)-stubs.o

$(APP)-stubs.o: $(APP)-jumps.s
//PROBLEM HERE !!!

$(APP)-jumps.s $(APP)-stubs.c: $(APP).def
        $(STUBGEN) $(APP).def

$(EXECUTABLE) : $(RSRC) $(OBJS) $(APP)-jumps.o lib$(APP).a
        $(CC) -shared -mown-gp -o $(APP) $(OBJS) $(APP)-jumps.o
        build-prc -o $@ $(APP).def $(APP) Rsrc/*.bin

FntLibraryShutdown.o:
        $(CC) $(CFLAGS) -c FntLibraryShutdown.c

FntLibraryStartup.o:
        $(CC) $(CFLAGS) -c FntLibraryStartup.c

TstMultiply.o:
        $(CC) $(CFLAGS) -c TstMultiply.c

TstMultiplyToStr.o:
        $(CC) $(CFLAGS) -c TstMultiplyToStr.c

//==================================================================

Thanks in advance



Matthew Bevan a �crit :
If you are using PRC-Tools, then GLibs are the best solution.  GLibs allow
library globals, library resources, and require no startup or shutdown code
in your application (it's handled automatically by a ~2k "stub" library).
Only thing you need to remember is to not give client apps access to library
globals (won't work) and to try to not overwrite resource IDs.

http://ftp.marginsoftware.com/pub/code/FontLibrary.zip

To compile the library open a console (or editor that knows how to run
commands) and run 'make veryclean all clean'.  Then copy the updated .a file
and Library.h to the test application's root directory and run 'make
veryclean all clean'.  You should now have a library PRC and application PRC
which imports the library resources and functions.

Enjoy!

(I recommend ZLib compressing those fonts... they're HUGE... and only
de-compressing the ones requested.)

- Matthew Bevan




--
________________
Je ne suis pas infect� par les virus mail car je n'utilise pas les logiciels mails de Microsoft.
Si vous utilisez Outlook ou Outlook Express, enlevez vos amis de votre carnet d'adresses. Ainsi, lorsque VOTRE ordinateur sera infect�, celui-ci n'essaiera pas de contaminer l'ordinateur de vos amis.


http://frenchmozilla.org/
________________
Afin d'�viter la diffusion de virus et d'informations confidentielles, ne m'envoyez pas de pi�ces jointes en HTML ou aux formats Microsoft Office (Word, Excel, etc...), mais privil�giez autant que possible une forme standard comme le texte simple et les formats OpenOffice.org.
OpenOffice.org est capable d'ouvrir les documents Microsoft Office
http://fr.openoffice.org/
________________
David Sporn (http://www.david-sporn.com)
Sanctuaire Tokugawa : http://www.sanctuairetokugawa.com
Web Site System : http://websitesystem.sourceforge.net




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

Reply via email to