makefile.dj 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. # Makefile for Independent JPEG Group's software
  2. # This makefile is for DJGPP (Delorie's GNU C port on MS-DOS), v2.0 or later.
  3. # Thanks to Frank J. Donahoe for this version.
  4. # Read installation instructions before saying "make" !!
  5. # The name of your C compiler:
  6. CC= gcc
  7. # You may need to adjust these cc options:
  8. CFLAGS= -O2 -Wall -I.
  9. # Generally, we recommend defining any configuration symbols in jconfig.h,
  10. # NOT via -D switches here.
  11. # Link-time cc options:
  12. LDFLAGS= -s
  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 DJGPP this is usually jmemnobs.o, but you could
  17. # use jmemname.o if you want to use named temp files instead of swap space.
  18. SYSDEPMEM= jmemnobs.o
  19. # miscellaneous OS-dependent stuff
  20. # linker
  21. LN= $(CC)
  22. # file deletion command
  23. RM= del
  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= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
  31. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  32. jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
  33. jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  34. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  35. jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
  36. jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.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 rdjpgcom.c wrjpgcom.c cdjpeg.c \
  42. rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
  43. rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  44. SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
  45. # files included by source files
  46. INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
  47. jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
  48. # documentation, test, and support files
  49. DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  50. wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
  51. coderules.txt filelist.txt change.log
  52. MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.b32 \
  53. makefile.bcc makefile.mc6 makefile.dj makefile.wat makefile.vc \
  54. makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 \
  55. makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 \
  56. makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 \
  57. makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 \
  58. makejsln.v10 makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 \
  59. makecfil.v10 makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 \
  60. makervcx.v10 makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac \
  61. makcjpeg.st makdjpeg.st makljpeg.st maktjpeg.st makefile.manx \
  62. makefile.sas makefile.mms makefile.vms makvms.opt
  63. CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
  64. jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
  65. jconfig.vms
  66. CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
  67. missing ar-lib
  68. OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map
  69. TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
  70. testimgp.jpg
  71. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  72. $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
  73. # library object files common to compression and decompression
  74. COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  75. # compression library object files
  76. CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
  77. jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
  78. jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
  79. jfdctflt.o jfdctint.o
  80. # decompression library object files
  81. DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
  82. jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
  83. jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
  84. jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  85. # These objectfiles are included in libjpeg.a
  86. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  87. # object files for sample applications (excluding library files)
  88. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  89. cdjpeg.o
  90. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  91. cdjpeg.o
  92. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
  93. all: libjpeg.a cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
  94. libjpeg.a: $(LIBOBJECTS)
  95. $(RM) libjpeg.a
  96. $(AR) libjpeg.a $(LIBOBJECTS)
  97. $(AR2) libjpeg.a
  98. cjpeg.exe: $(COBJECTS) libjpeg.a
  99. $(LN) $(LDFLAGS) -o cjpeg.exe $(COBJECTS) libjpeg.a $(LDLIBS)
  100. djpeg.exe: $(DOBJECTS) libjpeg.a
  101. $(LN) $(LDFLAGS) -o djpeg.exe $(DOBJECTS) libjpeg.a $(LDLIBS)
  102. jpegtran.exe: $(TROBJECTS) libjpeg.a
  103. $(LN) $(LDFLAGS) -o jpegtran.exe $(TROBJECTS) libjpeg.a $(LDLIBS)
  104. rdjpgcom.exe: rdjpgcom.o
  105. $(LN) $(LDFLAGS) -o rdjpgcom.exe rdjpgcom.o $(LDLIBS)
  106. wrjpgcom.exe: wrjpgcom.o
  107. $(LN) $(LDFLAGS) -o wrjpgcom.exe wrjpgcom.o $(LDLIBS)
  108. jconfig.h: jconfig.txt
  109. echo You must prepare a system-dependent jconfig.h file.
  110. echo Please read the installation directions in install.txt.
  111. exit 1
  112. clean:
  113. $(RM) *.o
  114. $(RM) cjpeg.exe
  115. $(RM) djpeg.exe
  116. $(RM) jpegtran.exe
  117. $(RM) rdjpgcom.exe
  118. $(RM) wrjpgcom.exe
  119. $(RM) libjpeg.a
  120. $(RM) testout*.*
  121. test: cjpeg.exe djpeg.exe jpegtran.exe
  122. $(RM) testout*.*
  123. ./djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
  124. ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
  125. ./cjpeg -dct int -outfile testout.jpg testimg.ppm
  126. ./djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
  127. ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
  128. ./jpegtran -outfile testoutt.jpg testprog.jpg
  129. fc /b testimg.ppm testout.ppm
  130. fc /b testimg.bmp testout.bmp
  131. fc /b testimg.jpg testout.jpg
  132. fc /b testimg.ppm testoutp.ppm
  133. fc /b testimgp.jpg testoutp.jpg
  134. fc /b testorig.jpg testoutt.jpg
  135. jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  136. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  137. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  138. jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  139. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  140. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  141. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  142. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  143. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  144. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  145. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  146. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  147. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  148. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  149. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  150. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  151. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  152. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  153. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  154. jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  155. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  156. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  157. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  158. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  159. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  160. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  161. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  162. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  163. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  164. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  165. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  166. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  167. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  168. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  169. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  170. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  171. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  172. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  173. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  174. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  175. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  176. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  177. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  178. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  179. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  180. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  181. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  182. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  183. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  184. jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  185. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  186. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  187. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
  188. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  189. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  190. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  191. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  192. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  193. transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
  194. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  195. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  196. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  197. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  198. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  199. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  200. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  201. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  202. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  203. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h