makefile.sas 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is for Amiga systems using SAS C 6.0 and up.
  3. # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
  4. # Read installation instructions before saying "make" !!
  5. # The name of your C compiler:
  6. CC= sc
  7. # You may need to adjust these cc options:
  8. # Uncomment the following lines for generic 680x0 version
  9. ARCHFLAGS= cpu=any
  10. SUFFIX=
  11. # Uncomment the following lines for 68030-only version
  12. #ARCHFLAGS= cpu=68030
  13. #SUFFIX=.030
  14. CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
  15. ignore=104 ignore=304 ignore=306
  16. # ignore=104 disables warnings for mismatched const qualifiers
  17. # ignore=304 disables warnings for variables being optimized out
  18. # ignore=306 disables warnings for the inlining of functions
  19. # Generally, we recommend defining any configuration symbols in jconfig.h,
  20. # NOT via define switches here.
  21. # Link-time cc options:
  22. LDFLAGS= SC SD ND BATCH
  23. # To link any special libraries, add the necessary commands here.
  24. LDLIBS= LIB:scm.lib LIB:sc.lib
  25. # Put here the object file name for the correct system-dependent memory
  26. # manager file. For Amiga we recommend jmemname.o.
  27. SYSDEPMEM= jmemname.o
  28. # miscellaneous OS-dependent stuff
  29. # linker
  30. LN= slink
  31. # file deletion command
  32. RM= delete quiet
  33. # library (.lib) file creation command
  34. AR= oml
  35. # End of configurable options.
  36. # source files: JPEG library proper
  37. LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  38. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  39. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  40. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  41. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  42. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  43. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
  44. jquant2.c jutils.c jmemmgr.c
  45. # memmgr back ends: compile only one of these into a working library
  46. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  47. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  48. APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
  49. rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
  50. rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  51. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  52. # files included by source files
  53. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  54. jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  55. # documentation, test, and support files
  56. DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  57. wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
  58. coderules.txt filelist.txt cdaltui.txt change.log
  59. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \
  60. makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \
  61. makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \
  62. makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
  63. makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
  64. makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
  65. makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
  66. makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
  67. makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
  68. maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
  69. makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \
  70. maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \
  71. maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \
  72. makefile.vms makvms.opt
  73. CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \
  74. jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
  75. jconfig.sas jconfig.vms
  76. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
  77. missing ar-lib
  78. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \
  79. cjpegalt.c djpegalt.c
  80. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
  81. testprog.jpg testimgp.jpg
  82. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  83. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  84. # library object files common to compression and decompression
  85. COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  86. # compression library object files
  87. CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
  88. jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
  89. jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
  90. jfdctflt.o jfdctint.o
  91. # decompression library object files
  92. DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
  93. jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
  94. jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
  95. jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  96. # These objectfiles are included in libjpeg.lib
  97. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  98. # object files for sample applications (excluding library files)
  99. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  100. cdjpeg.o
  101. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  102. cdjpeg.o
  103. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
  104. all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
  105. # note: do several AR steps to avoid command line length limitations
  106. libjpeg.lib: $(LIBOBJECTS)
  107. -$(RM) libjpeg.lib
  108. $(AR) libjpeg.lib r $(CLIBOBJECTS)
  109. $(AR) libjpeg.lib r $(DLIBOBJECTS)
  110. $(AR) libjpeg.lib r $(COMOBJECTS)
  111. cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
  112. $(LN) <WITH <
  113. $(LDFLAGS)
  114. TO cjpeg$(SUFFIX)
  115. FROM LIB:c.o $(COBJECTS)
  116. LIB libjpeg.lib $(LDLIBS)
  117. <
  118. djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
  119. $(LN) <WITH <
  120. $(LDFLAGS)
  121. TO djpeg$(SUFFIX)
  122. FROM LIB:c.o $(DOBJECTS)
  123. LIB libjpeg.lib $(LDLIBS)
  124. <
  125. jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
  126. $(LN) <WITH <
  127. $(LDFLAGS)
  128. TO jpegtran$(SUFFIX)
  129. FROM LIB:c.o $(TROBJECTS)
  130. LIB libjpeg.lib $(LDLIBS)
  131. <
  132. rdjpgcom$(SUFFIX): rdjpgcom.o
  133. $(LN) <WITH <
  134. $(LDFLAGS)
  135. TO rdjpgcom$(SUFFIX)
  136. FROM LIB:c.o rdjpgcom.o
  137. LIB $(LDLIBS)
  138. <
  139. wrjpgcom$(SUFFIX): wrjpgcom.o
  140. $(LN) <WITH <
  141. $(LDFLAGS)
  142. TO wrjpgcom$(SUFFIX)
  143. FROM LIB:c.o wrjpgcom.o
  144. LIB $(LDLIBS)
  145. <
  146. jconfig.h: jconfig.txt
  147. echo You must prepare a system-dependent jconfig.h file.
  148. echo Please read the installation directions in install.txt.
  149. exit 1
  150. clean:
  151. -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
  152. -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
  153. -$(RM) libjpeg.lib core testout*.*
  154. test: cjpeg djpeg jpegtran
  155. -$(RM) testout*.*
  156. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  157. djpeg -dct int -gif -outfile testout.gif testorig.jpg
  158. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  159. cjpeg -dct int -outfile testout.jpg testimg.ppm
  160. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  161. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  162. jpegtran -outfile testoutt.jpg testprog.jpg
  163. cmp testimg.ppm testout.ppm
  164. cmp testimg.gif testout.gif
  165. cmp testimg.bmp testout.bmp
  166. cmp testimg.jpg testout.jpg
  167. cmp testimg.ppm testoutp.ppm
  168. cmp testimgp.jpg testoutp.jpg
  169. cmp testorig.jpg testoutt.jpg
  170. jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  177. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  191. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  192. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  193. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  195. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  196. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  199. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  200. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  203. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  205. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  206. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  207. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  208. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  209. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  210. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  211. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  212. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  213. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  214. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  215. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  216. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  217. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  218. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  219. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  220. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  221. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  222. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  223. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  224. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  225. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  226. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  227. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228. transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  229. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  230. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  231. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  232. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  233. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  234. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  235. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  236. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  237. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h