makefile.sas 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  38. jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  39. jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  40. jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  41. jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  42. jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  43. jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.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= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  54. jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  55. # documentation, test, and support files
  56. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  57. wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  58. coderules.doc filelist.doc change.log
  59. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  60. makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
  61. makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
  62. maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
  63. makvms.opt
  64. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  65. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  66. jconfig.vms
  67. CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
  68. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  69. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  70. testimgp.jpg
  71. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  72. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  73. # library object files common to compression and decompression
  74. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  75. # compression library object files
  76. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  77. jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  78. jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  79. jfdctint.o
  80. # decompression library object files
  81. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  82. jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  83. jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  84. jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  85. # These objectfiles are included in libjpeg.lib
  86. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  87. # object files for sample applications (excluding library files)
  88. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  89. cdjpeg.o
  90. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  91. cdjpeg.o
  92. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
  93. all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
  94. # note: do several AR steps to avoid command line length limitations
  95. libjpeg.lib: $(LIBOBJECTS)
  96. -$(RM) libjpeg.lib
  97. $(AR) libjpeg.lib r $(CLIBOBJECTS)
  98. $(AR) libjpeg.lib r $(DLIBOBJECTS)
  99. $(AR) libjpeg.lib r $(COMOBJECTS)
  100. cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
  101. $(LN) <WITH <
  102. $(LDFLAGS)
  103. TO cjpeg$(SUFFIX)
  104. FROM LIB:c.o $(COBJECTS)
  105. LIB libjpeg.lib $(LDLIBS)
  106. <
  107. djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
  108. $(LN) <WITH <
  109. $(LDFLAGS)
  110. TO djpeg$(SUFFIX)
  111. FROM LIB:c.o $(DOBJECTS)
  112. LIB libjpeg.lib $(LDLIBS)
  113. <
  114. jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
  115. $(LN) <WITH <
  116. $(LDFLAGS)
  117. TO jpegtran$(SUFFIX)
  118. FROM LIB:c.o $(TROBJECTS)
  119. LIB libjpeg.lib $(LDLIBS)
  120. <
  121. rdjpgcom$(SUFFIX): rdjpgcom.o
  122. $(LN) <WITH <
  123. $(LDFLAGS)
  124. TO rdjpgcom$(SUFFIX)
  125. FROM LIB:c.o rdjpgcom.o
  126. LIB $(LDLIBS)
  127. <
  128. wrjpgcom$(SUFFIX): wrjpgcom.o
  129. $(LN) <WITH <
  130. $(LDFLAGS)
  131. TO wrjpgcom$(SUFFIX)
  132. FROM LIB:c.o wrjpgcom.o
  133. LIB $(LDLIBS)
  134. <
  135. jconfig.h: jconfig.doc
  136. echo You must prepare a system-dependent jconfig.h file.
  137. echo Please read the installation directions in install.doc.
  138. exit 1
  139. clean:
  140. -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
  141. -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
  142. -$(RM) libjpeg.lib core testout*.*
  143. test: cjpeg djpeg jpegtran
  144. -$(RM) testout*.*
  145. djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  146. djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  147. cjpeg -dct int -outfile testout.jpg testimg.ppm
  148. djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  149. cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  150. jpegtran -outfile testoutt.jpg testprog.jpg
  151. cmp testimg.ppm testout.ppm
  152. cmp testimg.bmp testout.bmp
  153. cmp testimg.jpg testout.jpg
  154. cmp testimg.ppm testoutp.ppm
  155. cmp testimgp.jpg testoutp.jpg
  156. cmp testorig.jpg testoutt.jpg
  157. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  162. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  163. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  170. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  176. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  177. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  180. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  181. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  186. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  187. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  191. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  192. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  193. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  194. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  195. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  196. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  197. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  198. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  199. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  200. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  202. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  203. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  204. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  205. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  206. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  207. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  208. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  209. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  210. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  211. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  212. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  213. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  214. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  216. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  217. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  218. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  219. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  220. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  221. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  222. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  223. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  224. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  225. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h