makefile.unix 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is suitable for Unix-like systems with non-ANSI compilers.
  3. # If you have an ANSI compiler, makefile.ansi is a better starting point.
  4. # Read installation instructions before saying "make" !!
  5. # The name of your C compiler:
  6. CC= cc
  7. # You may need to adjust these cc options:
  8. CFLAGS= -O
  9. # Generally, we recommend defining any configuration symbols in jconfig.h,
  10. # NOT via -D switches here.
  11. # However, any special defines for ansi2knr.c may be included here:
  12. ANSI2KNRFLAGS=
  13. # Link-time cc options:
  14. LDFLAGS=
  15. # To link any special libraries, add the necessary -l commands here.
  16. LDLIBS=
  17. # Put here the object file name for the correct system-dependent memory
  18. # manager file. For Unix this is usually jmemnobs.o, but you may want
  19. # to use jmemansi.o or jmemname.o if you have limited swap space.
  20. SYSDEPMEM= jmemnobs.o
  21. # miscellaneous OS-dependent stuff
  22. # linker
  23. LN= $(CC)
  24. # file deletion command
  25. RM= rm -f
  26. # file rename command
  27. MV= mv
  28. # library (.a) file creation command
  29. AR= ar rc
  30. # second step in .a creation (use "touch" if not needed)
  31. AR2= ranlib
  32. # End of configurable options.
  33. # source files: JPEG library proper
  34. LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  35. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  36. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  37. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  38. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  39. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  40. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
  41. jquant2.c jutils.c jmemmgr.c
  42. # memmgr back ends: compile only one of these into a working library
  43. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  44. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  45. APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
  46. rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
  47. rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  48. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  49. # files included by source files
  50. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  51. jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  52. # documentation, test, and support files
  53. DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  54. wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
  55. coderules.txt filelist.txt cdaltui.txt change.log
  56. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \
  57. makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \
  58. makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \
  59. makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
  60. makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
  61. makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
  62. makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
  63. makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
  64. makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
  65. maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
  66. makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \
  67. maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \
  68. maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \
  69. makefile.vms makvms.opt
  70. CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \
  71. jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
  72. jconfig.sas jconfig.vms
  73. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
  74. missing ar-lib
  75. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \
  76. cjpegalt.c djpegalt.c
  77. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
  78. testprog.jpg testimgp.jpg
  79. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  80. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  81. # library object files common to compression and decompression
  82. COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  83. # compression library object files
  84. CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
  85. jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
  86. jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
  87. jfdctflt.o jfdctint.o
  88. # decompression library object files
  89. DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
  90. jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
  91. jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
  92. jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  93. # These objectfiles are included in libjpeg.a
  94. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  95. # object files for sample applications (excluding library files)
  96. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  97. cdjpeg.o
  98. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  99. cdjpeg.o
  100. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
  101. all: ansi2knr libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  102. # This rule causes ansi2knr to be invoked.
  103. .c.o:
  104. ./ansi2knr $*.c T$*.c
  105. $(CC) $(CFLAGS) -c T$*.c
  106. $(RM) T$*.c $*.o
  107. $(MV) T$*.o $*.o
  108. ansi2knr: ansi2knr.c
  109. $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  110. libjpeg.a: ansi2knr $(LIBOBJECTS)
  111. $(RM) libjpeg.a
  112. $(AR) libjpeg.a $(LIBOBJECTS)
  113. $(AR2) libjpeg.a
  114. cjpeg: ansi2knr $(COBJECTS) libjpeg.a
  115. $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  116. djpeg: ansi2knr $(DOBJECTS) libjpeg.a
  117. $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  118. jpegtran: ansi2knr $(TROBJECTS) libjpeg.a
  119. $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  120. rdjpgcom: rdjpgcom.o
  121. $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  122. wrjpgcom: wrjpgcom.o
  123. $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  124. jconfig.h: jconfig.txt
  125. echo You must prepare a system-dependent jconfig.h file.
  126. echo Please read the installation directions in install.txt.
  127. exit 1
  128. clean:
  129. $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom
  130. $(RM) ansi2knr core testout*
  131. test: cjpeg djpeg jpegtran
  132. $(RM) testout*
  133. ./djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  134. ./djpeg -dct int -gif -outfile testout.gif testorig.jpg
  135. ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  136. ./cjpeg -dct int -outfile testout.jpg testimg.ppm
  137. ./djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  138. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  139. ./jpegtran -outfile testoutt.jpg testprog.jpg
  140. cmp testimg.ppm testout.ppm
  141. cmp testimg.gif testout.gif
  142. cmp testimg.bmp testout.bmp
  143. cmp testimg.jpg testout.jpg
  144. cmp testimg.ppm testoutp.ppm
  145. cmp testimgp.jpg testoutp.jpg
  146. cmp testorig.jpg testoutt.jpg
  147. jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  154. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  168. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  169. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  172. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  173. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  182. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  183. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  184. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  185. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  186. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  187. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  188. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  192. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  193. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  194. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  195. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  196. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  197. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  198. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  199. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  200. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  201. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  202. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  204. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  205. transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  206. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  207. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  208. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  209. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  210. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  211. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  212. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  213. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  214. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  215. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h