makefile.cfg 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. # Makefile for Independent JPEG Group's software
  2. # makefile.cfg is edited by configure to produce a custom Makefile.
  3. # Read installation instructions before saying "make" !!
  4. # For compiling with source and object files in different directories.
  5. srcdir = @srcdir@
  6. VPATH = @srcdir@
  7. # Where to install the programs and man pages.
  8. prefix = @prefix@
  9. exec_prefix = @exec_prefix@
  10. bindir = $(exec_prefix)/bin
  11. libdir = $(exec_prefix)/lib
  12. includedir = $(prefix)/include
  13. binprefix =
  14. manprefix =
  15. manext = 1
  16. mandir = $(prefix)/man/man$(manext)
  17. # The name of your C compiler:
  18. CC= @CC@
  19. # You may need to adjust these cc options:
  20. CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@
  21. # Generally, we recommend defining any configuration symbols in jconfig.h,
  22. # NOT via -D switches here.
  23. # However, any special defines for ansi2knr.c may be included here:
  24. ANSI2KNRFLAGS= @ANSI2KNRFLAGS@
  25. # Link-time cc options:
  26. LDFLAGS= @LDFLAGS@
  27. # To link any special libraries, add the necessary -l commands here.
  28. LDLIBS= @LIBS@
  29. # Put here the object file name for the correct system-dependent memory
  30. # manager file. For Unix this is usually jmemnobs.o, but you may want
  31. # to use jmemansi.o or jmemname.o if you have limited swap space.
  32. SYSDEPMEM= @MEMORYMGR@
  33. # miscellaneous OS-dependent stuff
  34. SHELL= /bin/sh
  35. # linker
  36. LN= $(CC)
  37. # file deletion command
  38. RM= rm -f
  39. # file rename command
  40. MV= mv
  41. # library (.a) file creation command
  42. AR= ar rc
  43. # second step in .a creation (use "touch" if not needed)
  44. AR2= @RANLIB@
  45. # installation program
  46. INSTALL= @INSTALL@
  47. INSTALL_PROGRAM= @INSTALL_PROGRAM@
  48. INSTALL_DATA= @INSTALL_DATA@
  49. # End of configurable options.
  50. # source files: JPEG library proper
  51. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  52. jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  53. jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  54. jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  55. jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  56. jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  57. jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  58. jquant2.c jutils.c jmemmgr.c
  59. # memmgr back ends: compile only one of these into a working library
  60. SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
  61. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  62. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  63. rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  64. wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  65. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  66. # files included by source files
  67. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  68. jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  69. # documentation, test, and support files
  70. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  71. wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  72. coderules.doc filelist.doc change.log
  73. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  74. makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  75. makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  76. makefile.vms makvms.opt
  77. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  78. jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  79. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  80. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  81. testimgp.jpg
  82. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  83. $(OTHERFILES) $(TESTFILES)
  84. # library object files common to compression and decompression
  85. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  86. # compression library object files
  87. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  88. jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  89. jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  90. jfdctint.o
  91. # decompression library object files
  92. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  93. jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  94. jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  95. jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  96. # These objectfiles are included in libjpeg.a
  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
  104. all: @ANSI2KNR@ libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  105. # This rule causes ansi2knr to be invoked.
  106. @ISANSICOM@.c.o:
  107. @ISANSICOM@ ./ansi2knr $(srcdir)/$*.c T$*.c
  108. @ISANSICOM@ $(CC) $(CFLAGS) -c T$*.c
  109. @ISANSICOM@ $(RM) T$*.c $*.o
  110. @ISANSICOM@ $(MV) T$*.o $*.o
  111. ansi2knr: ansi2knr.c
  112. $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  113. libjpeg.a: @ANSI2KNR@ $(LIBOBJECTS)
  114. $(RM) libjpeg.a
  115. $(AR) libjpeg.a $(LIBOBJECTS)
  116. $(AR2) libjpeg.a
  117. cjpeg: $(COBJECTS) libjpeg.a
  118. $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  119. djpeg: $(DOBJECTS) libjpeg.a
  120. $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  121. jpegtran: $(TROBJECTS) libjpeg.a
  122. $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  123. rdjpgcom: rdjpgcom.o
  124. $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  125. wrjpgcom: wrjpgcom.o
  126. $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  127. jconfig.h: jconfig.doc
  128. echo You must prepare a system-dependent jconfig.h file.
  129. echo Please read the installation directions in install.doc.
  130. exit 1
  131. install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  132. $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
  133. $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
  134. $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
  135. $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
  136. $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
  137. $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
  138. $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
  139. $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
  140. $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
  141. $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
  142. install-lib: libjpeg.a install-headers
  143. $(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
  144. install-headers: jconfig.h
  145. $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
  146. $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
  147. $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
  148. $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
  149. clean:
  150. $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom
  151. $(RM) ansi2knr core testout* config.log config.status
  152. distribute:
  153. $(RM) jpegsrc.tar*
  154. tar cvf jpegsrc.tar $(DISTFILES)
  155. compress -v jpegsrc.tar
  156. test: cjpeg djpeg jpegtran
  157. $(RM) testout*
  158. ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
  159. ./djpeg -dct int -gif -outfile testout.gif $(srcdir)/testorig.jpg
  160. ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
  161. ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
  162. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
  163. ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
  164. cmp $(srcdir)/testimg.ppm testout.ppm
  165. cmp $(srcdir)/testimg.gif testout.gif
  166. cmp $(srcdir)/testimg.jpg testout.jpg
  167. cmp $(srcdir)/testimg.ppm testoutp.ppm
  168. cmp $(srcdir)/testimgp.jpg testoutp.jpg
  169. cmp $(srcdir)/testorig.jpg testoutt.jpg
  170. check: test
  171. # GNU Make likes to know which target names are not really files to be made:
  172. .PHONY: all install install-lib install-headers clean distribute test check
  173. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  174. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  175. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  176. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  178. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  179. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  180. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  185. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  186. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  192. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  193. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  196. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  197. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  199. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  200. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  203. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  204. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  206. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  207. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  208. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  209. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  210. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  211. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  212. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  213. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  214. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  215. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  216. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  217. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  218. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  219. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  220. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  221. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  222. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  223. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  224. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  225. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  226. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  227. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  228. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  229. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  230. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  231. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  232. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  233. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  234. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  235. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  236. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  237. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  239. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  240. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h