makefile.cfg
上传用户:zlh9724
上传日期:2007-01-04
资源大小:1991k
文件大小:14k
源码类别:

浏览器

开发平台:

Unix_Linux

  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 jmemansi.c jmemname.c jmemnobs.c 
  59.         jmemdos.c
  60. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  61. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c 
  62.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c 
  63.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  64. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  65. # files included by source files
  66. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h 
  67.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  68. # documentation, test, and support files
  69. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 
  70.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc 
  71.         coderules.doc filelist.doc change.log
  72. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc 
  73.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st 
  74.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms 
  75.         makefile.vms makvms.opt
  76. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc 
  77.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  78. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  79. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg 
  80.         testimgp.jpg
  81. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) 
  82.         $(OTHERFILES) $(TESTFILES)
  83. # library object files common to compression and decompression
  84. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  85. # compression library object files
  86. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o 
  87.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o 
  88.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o 
  89.         jfdctint.o
  90. # decompression library object files
  91. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o 
  92.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o 
  93.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o 
  94.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  95. # These objectfiles are included in libjpeg.a
  96. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  97. # object files for sample applications (excluding library files)
  98. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o 
  99.         cdjpeg.o
  100. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o 
  101.         cdjpeg.o
  102. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  103. all: @ANSI2KNR@ libjpeg.a libjpeg.so.6.0.0 cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  104. # This rule causes ansi2knr to be invoked.
  105. .c.o:
  106. $(CC) -fPIC $(CFLAGS) -c $*.c
  107. $(MV) $*.o shared/
  108. $(CC) $(CFLAGS) -c $*.c
  109. @ISANSICOM@ ./ansi2knr $(srcdir)/$*.c T$*.c
  110. @ISANSICOM@ $(CC) $(CFLAGS) -c T$*.c
  111. @ISANSICOM@ $(RM) T$*.c $*.o
  112. @ISANSICOM@ $(MV) T$*.o $*.o
  113. ansi2knr: ansi2knr.c
  114. $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  115. libjpeg.a: @ANSI2KNR@ $(LIBOBJECTS)
  116. $(RM) libjpeg.a
  117. $(AR) libjpeg.a  $(LIBOBJECTS)
  118. $(AR2) libjpeg.a
  119. libjpeg.so.6.0.0: $(LIBOBJECTS)
  120. (cd shared; $(CC) -shared -Wl,-soname,libjpeg.so.6 -o ../libjpeg.so.6.0.0 $(LIBOBJECTS) )
  121. ln -sf libjpeg.so.6.0.0 libjpeg.so.6
  122. cjpeg: $(COBJECTS) libjpeg.a
  123. $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) -L. -ljpeg  $(LDLIBS)
  124. djpeg: $(DOBJECTS) libjpeg.a
  125. $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) -L. -ljpeg  $(LDLIBS)
  126. jpegtran: $(TROBJECTS) libjpeg.a
  127. $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) -L. -ljpeg  $(LDLIBS)
  128. rdjpgcom: rdjpgcom.o
  129. $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  130. wrjpgcom: wrjpgcom.o
  131. $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  132. jconfig.h: jconfig.doc
  133. echo You must prepare a system-dependent jconfig.h file.
  134. echo Please read the installation directions in install.doc.
  135. exit 1
  136. install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  137. $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
  138. $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
  139. $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
  140. $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
  141. $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
  142. $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
  143. $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
  144. $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
  145. $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
  146. $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
  147. install-lib: libjpeg.a libjpeg.so.6.0.0 install-headers
  148. $(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
  149. $(INSTALL_PROGRAM) libjpeg.so.6.0.0 $(libdir)/$(binprefix)libjpeg.so.6.0.0
  150. ldconfig -v
  151. install-headers: jconfig.h
  152. $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
  153. $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
  154. $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
  155. $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
  156. clean:
  157. $(RM) *.o shared/*.o cjpeg djpeg jpegtran libjpeg.a libjpeg.so.6.0.0 libjpeg.so.6 rdjpgcom wrjpgcom
  158. $(RM) ansi2knr core testout* config.log config.status
  159. distribute:
  160. $(RM) jpegsrc.tar*
  161. tar cvf jpegsrc.tar $(DISTFILES)
  162. compress -v jpegsrc.tar
  163. test: cjpeg djpeg jpegtran
  164. $(RM) testout*
  165. ./djpeg -dct int -ppm -outfile testout.ppm  $(srcdir)/testorig.jpg
  166. ./djpeg -dct int -gif -outfile testout.gif  $(srcdir)/testorig.jpg
  167. ./cjpeg -dct int -outfile testout.jpg  $(srcdir)/testimg.ppm
  168. ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
  169. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
  170. ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
  171. cmp $(srcdir)/testimg.ppm testout.ppm
  172. cmp $(srcdir)/testimg.gif testout.gif
  173. cmp $(srcdir)/testimg.jpg testout.jpg
  174. cmp $(srcdir)/testimg.ppm testoutp.ppm
  175. cmp $(srcdir)/testimgp.jpg testoutp.jpg
  176. cmp $(srcdir)/testorig.jpg testoutt.jpg
  177. check: test
  178. # GNU Make likes to know which target names are not really files to be made:
  179. .PHONY: all install install-lib install-headers clean distribute test check
  180. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  184. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  185. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  186. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  187. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  188. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  189. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  190. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  191. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  192. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  193. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  194. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  195. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  196. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  197. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  198. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  199. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  200. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  201. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  202. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  203. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  204. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  205. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  206. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  209. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  210. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  211. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  212. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  213. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  214. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  215. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  216. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  217. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  218. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  219. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  220. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  221. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  222. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  223. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  224. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  225. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  226. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  227. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  228. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  229. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  230. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  231. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  232. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  233. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  234. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  235. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  236. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  237. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  238. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  239. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  240. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  241. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  242. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  243. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  244. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  245. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  246. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h