home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GRAPHICS
/
jpegexec.lzh
/
readme.osk
< prev
next >
Wrap
Text File
|
1992-07-05
|
1KB
|
35 lines
92/07/03
I ported the independent JPEG group's software to OS-9 on a 3 Meg MM/1. I
think it should run fine on any OS-9/68000 system, however.
I created a new makefile called makefile.osk which was based on the
makefile.ansi that was supplied with the source.
I used gcc and blarslib.l. I think cc would probably work, but would need
makefile.unix as a base since cc doesn't understand ansi function declarations.
I changed several things in the makefile such as the .o extensions to .r, and
the section to build jpeglib.l.
I used jmemname.c for jmemsys.c since none of my libraries have tmpname().
In this file, I set TEMP_DIRECTORY to "/dd/temp" since that is where I want
temporary files on my system. I left DEFAULT_MAX_MEM at 1 Meg.
Since OS-9 uses CR for a line terminator, I had to add some code to jwrppm.c
and jrdppm.c to use /l instead of /n. This code is surrounded by #ifdef OSK
#endif blocks.
I had to make an empty file in /dd/defs called stdlib.h since almost every
source file tries to include it. I found this easier than finding all the
references and commenting them out.
My v7make insists on using -r to tell the compiler not to link. This is what
cc expects, but gcc wants -c. I fixed this problem with DeD.
When this was done, I just copied makefile.osk to makefile and typed v7make.
Robert Marsa
ravenone@ccwf.cc.utexas.edu