makefile.ansi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  3. # If you have a non-ANSI compiler, makefile.unix 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. # Link-time cc options:
  12. LDFLAGS=
  13. # To link any special libraries, add the necessary -l commands here.
  14. LDLIBS=
  15. # Put here the object file name for the correct system-dependent memory
  16. # manager file. For Unix this is usually jmemnobs.o, but you may want
  17. # to use jmemansi.o or jmemname.o if you have limited swap space.
  18. SYSDEPMEM= jmemnobs.o
  19. # miscellaneous OS-dependent stuff
  20. # linker
  21. LN= $(CC)
  22. # file deletion command
  23. RM= rm -f
  24. # library (.a) file creation command
  25. AR= ar rc
  26. # second step in .a creation (use "touch" if not needed)
  27. AR2= ranlib
  28. # End of configurable options.
  29. # source files: JPEG library proper
  30. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  31. jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  32. jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  33. jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  34. jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  35. jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  36. jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  37. jquant2.c jutils.c jmemmgr.c
  38. # memmgr back ends: compile only one of these into a working library
  39. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  40. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  41. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  42. rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  43. wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  44. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  45. # files included by source files
  46. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  47. jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  48. # documentation, test, and support files
  49. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  50. wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  51. coderules.doc filelist.doc change.log
  52. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  53. makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  54. makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  55. makefile.vms makvms.opt
  56. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  57. jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  58. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  59. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  60. testimgp.jpg
  61. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  62. $(OTHERFILES) $(TESTFILES)
  63. # library object files common to compression and decompression
  64. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  65. # compression library object files
  66. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  67. jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  68. jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  69. jfdctint.o
  70. # decompression library object files
  71. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  72. jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  73. jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  74. jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  75. # These objectfiles are included in libjpeg.a
  76. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  77. # object files for sample applications (excluding library files)
  78. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  79. cdjpeg.o
  80. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  81. cdjpeg.o
  82. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  83. all: libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  84. libjpeg.a: $(LIBOBJECTS)
  85. $(RM) libjpeg.a
  86. $(AR) libjpeg.a $(LIBOBJECTS)
  87. $(AR2) libjpeg.a
  88. cjpeg: $(COBJECTS) libjpeg.a
  89. $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  90. djpeg: $(DOBJECTS) libjpeg.a
  91. $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  92. jpegtran: $(TROBJECTS) libjpeg.a
  93. $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  94. rdjpgcom: rdjpgcom.o
  95. $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  96. wrjpgcom: wrjpgcom.o
  97. $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  98. jconfig.h: jconfig.doc
  99. echo You must prepare a system-dependent jconfig.h file.
  100. echo Please read the installation directions in install.doc.
  101. exit 1
  102. clean:
  103. $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom
  104. $(RM) core testout*
  105. test: cjpeg djpeg jpegtran
  106. $(RM) testout*
  107. ./djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  108. ./djpeg -dct int -gif -outfile testout.gif testorig.jpg
  109. ./cjpeg -dct int -outfile testout.jpg testimg.ppm
  110. ./djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  111. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  112. ./jpegtran -outfile testoutt.jpg testprog.jpg
  113. cmp testimg.ppm testout.ppm
  114. cmp testimg.gif testout.gif
  115. cmp testimg.jpg testout.jpg
  116. cmp testimg.ppm testoutp.ppm
  117. cmp testimgp.jpg testoutp.jpg
  118. cmp testorig.jpg testoutt.jpg
  119. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  120. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  121. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  122. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  123. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  124. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  125. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  126. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  127. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  128. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  129. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  130. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  131. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  132. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  133. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  134. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  135. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  136. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  137. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  138. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  139. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  142. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  143. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  145. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  146. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  149. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  153. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  154. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  155. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  156. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  157. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  158. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  159. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  164. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  165. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  166. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  167. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  168. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  169. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  170. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  171. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  172. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  173. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  174. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  175. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  176. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  177. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  178. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  179. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  180. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  181. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  182. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  183. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  184. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  185. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  186. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h