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

浏览器

开发平台:

Unix_Linux

  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is for DJGPP (Delorie's GNU C port) on MS-DOS.
  3. # Say "make exe" to get stub-style .exe's, or
  4. # "make standalone" to get standalone .exe's.
  5. # Read installation instructions before saying "make" !!
  6. # To do "make standalone", you'll need to be sure this points to go32.exe:
  7. GO32= c:/djgpp/bin/go32.exe
  8. # The name of your C compiler:
  9. CC= gcc
  10. # You may need to adjust these cc options:
  11. CFLAGS= -O2 -Wall
  12. # Generally, we recommend defining any configuration symbols in jconfig.h,
  13. # NOT via -D switches here.
  14. # Link-time cc options:
  15. LDFLAGS= 
  16. # To link any special libraries, add the necessary -l commands here.
  17. LDLIBS= 
  18. # Put here the object file name for the correct system-dependent memory
  19. # manager file.  For DJGPP this is usually jmemnobs.o, but you could
  20. # use jmemname.o if you want to use named temp files instead of swap space.
  21. SYSDEPMEM= jmemnobs.o
  22. # miscellaneous OS-dependent stuff
  23. # linker
  24. LN= $(CC)
  25. # file deletion command
  26. RM= del
  27. # library (.a) file creation command
  28. AR= ar rc
  29. # second step in .a creation (use "touch" if not needed)
  30. AR2= ranlib
  31. # End of configurable options.
  32. # source files: JPEG library proper
  33. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c 
  34.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c 
  35.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c 
  36.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c 
  37.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c 
  38.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c 
  39.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c 
  40.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c 
  41.         jmemdos.c
  42. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  43. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c 
  44.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c 
  45.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  46. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  47. # files included by source files
  48. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h 
  49.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  50. # documentation, test, and support files
  51. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 
  52.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc 
  53.         coderules.doc filelist.doc change.log
  54. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc 
  55.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st 
  56.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms 
  57.         makefile.vms makvms.opt
  58. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc 
  59.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  60. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  61. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg 
  62.         testimgp.jpg
  63. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) 
  64.         $(OTHERFILES) $(TESTFILES)
  65. # library object files common to compression and decompression
  66. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  67. # compression library object files
  68. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o 
  69.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o 
  70.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o 
  71.         jfdctint.o
  72. # decompression library object files
  73. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o 
  74.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o 
  75.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o 
  76.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  77. # These objectfiles are included in libjpeg.a
  78. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  79. # object files for sample applications (excluding library files)
  80. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o 
  81.         cdjpeg.o
  82. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o 
  83.         cdjpeg.o
  84. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  85. all: libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  86. libjpeg.a: $(LIBOBJECTS)
  87. $(RM) libjpeg.a
  88. $(AR) libjpeg.a  $(LIBOBJECTS)
  89. $(AR2) libjpeg.a
  90. cjpeg: $(COBJECTS) libjpeg.a
  91. $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  92. djpeg: $(DOBJECTS) libjpeg.a
  93. $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  94. jpegtran: $(TROBJECTS) libjpeg.a
  95. $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  96. rdjpgcom: rdjpgcom.o
  97. $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  98. wrjpgcom: wrjpgcom.o
  99. $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  100. exe: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  101. coff2exe cjpeg
  102. coff2exe djpeg
  103. coff2exe jpegtran
  104. coff2exe rdjpgcom
  105. coff2exe wrjpgcom
  106. standalone: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  107. coff2exe -s $(GO32) cjpeg
  108. coff2exe -s $(GO32) djpeg
  109. coff2exe -s $(GO32) jpegtran
  110. coff2exe -s $(GO32) rdjpgcom
  111. coff2exe -s $(GO32) wrjpgcom
  112. jconfig.h: jconfig.doc
  113. echo You must prepare a system-dependent jconfig.h file.
  114. echo Please read the installation directions in install.doc.
  115. exit 1
  116. clean:
  117. $(RM) *.o
  118. $(RM) cjpeg
  119. $(RM) djpeg
  120. $(RM) jpegtran
  121. $(RM) rdjpgcom
  122. $(RM) wrjpgcom
  123. $(RM) libjpeg.a
  124. $(RM) testout*.*
  125. test: cjpeg djpeg jpegtran
  126. $(RM) testout*.*
  127. go32 djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
  128. go32 djpeg -dct int -gif -outfile testout.gif  testorig.jpg
  129. go32 cjpeg -dct int -outfile testout.jpg  testimg.ppm
  130. go32 djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  131. go32 cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  132. go32 jpegtran -outfile testoutt.jpg testprog.jpg
  133. fc /b testimg.ppm testout.ppm
  134. fc /b testimg.gif testout.gif
  135. fc /b testimg.jpg testout.jpg
  136. fc /b testimg.ppm testoutp.ppm
  137. fc /b testimgp.jpg testoutp.jpg
  138. fc /b testorig.jpg testoutt.jpg
  139. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  142. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  143. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  144. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  145. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  146. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  152. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  156. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  157. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  158. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  159. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  160. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  162. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  163. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  169. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  170. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  171. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  172. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  173. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  174. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  175. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  176. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  177. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  178. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  179. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  180. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  181. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  182. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  183. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  184. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  185. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  186. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  187. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  188. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  189. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  190. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  191. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  192. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  193. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  194. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  195. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  196. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  197. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  198. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  199. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  200. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  201. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  202. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  204. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  205. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h