home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / compresn / jpegv3sr / makefile.pwc < prev    next >
Makefile  |  1992-03-17  |  6KB  |  131 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Mix Software's Power C, v2.1.1
  4. # and Dan Grayson's pd make 2.14 under MS-DOS.
  5. # This file assumes that you have Microsoft's MASM or a compatible assembler
  6. # to handle the jmemdosa.asm file.  If not, you will need to use jmemname.c
  7. # and go to a large-data memory model.
  8. # Thanks to Bob Hardy for this version.
  9.  
  10. # Read SETUP instructions before saying "make" !!
  11.  
  12. # The name of your C compiler:
  13. CC=pc
  14.  
  15. # You may need to adjust these cc options:
  16. MODEL=m
  17. CFLAGS= -dMSDOS -m$(MODEL)
  18. # In particular:
  19. #   Add -dMEM_STATS to enable gathering of memory usage statistics.
  20.  
  21. # Link-time cc options:
  22. LDFLAGS=
  23. LDLIBS=
  24.  
  25. # miscellaneous OS-dependent stuff
  26. # linker
  27. LN=pcl
  28. # file deletion command
  29. RM=del
  30. # library (.mix) file creation command
  31. AR=merge
  32.  
  33.  
  34. # source files (independently compilable files)
  35. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c jwrppm.c jwrrle.c jwrtarga.c
  36. # virtual source files (not present in distribution file)
  37. VIRTSOURCES= jmemsys.c
  38. # system-dependent implementations of source files
  39. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h jmemdosa.asm
  40. # files included by source files
  41. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h egetopt.c
  42. # documentation, test, and support files
  43. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  44. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.bcc makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf makljpeg.cf makefile.mms makefile.vms makvms.opt
  45. OTHERFILES= ansi2knr.c ckconfig.c example.c
  46. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  47. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) $(OTHERFILES) $(TESTFILES)
  48. # objectfiles common to cjpeg and djpeg
  49. COMOBJECTS= jutils.mix jerror.mix jmemmgr.mix jmemsys.mix jmemdosa.mix
  50. # compression objectfiles
  51. CLIBOBJECTS= jcmaster.mix jcdeflts.mix jcarith.mix jccolor.mix jcexpand.mix jchuff.mix jcmcu.mix jcpipe.mix jcsample.mix jfwddct.mix jwrjfif.mix jrdgif.mix jrdppm.mix jrdrle.mix jrdtarga.mix
  52. COBJECTS= jcmain.mix $(CLIBOBJECTS) $(COMOBJECTS)
  53. # decompression objectfiles
  54. DLIBOBJECTS= jdmaster.mix jddeflts.mix jbsmooth.mix jdarith.mix jdcolor.mix jdhuff.mix jdmcu.mix jdpipe.mix jdsample.mix jquant1.mix jquant2.mix jrevdct.mix jrdjfif.mix jwrgif.mix jwrppm.mix jwrrle.mix jwrtarga.mix
  55. DOBJECTS= jdmain.mix $(DLIBOBJECTS) $(COMOBJECTS)
  56. # These objectfiles are included in libjpeg.mix
  57. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  58.  
  59.  
  60. all: cjpeg.exe djpeg.exe
  61. # By default, libjpeg.mix is not built unless you explicitly request it.
  62. # You can add libjpeg.mix to the line above if you want it built by default.
  63.  
  64.  
  65. cjpeg.exe: $(COBJECTS)
  66.     $(LN) $(LDFLAGS) @makcjpeg.cf
  67.  
  68. djpeg.exe: $(DOBJECTS)
  69.     $(LN) $(LDFLAGS) @makdjpeg.cf
  70.  
  71. # libjpeg.mix is useful if you are including the JPEG software in a larger
  72. # program; you'd include it in your link, rather than the individual modules.
  73. libjpeg.mix: $(LIBOBJECTS)
  74.     @$(RM) libjpeg.mix
  75.     $(AR) libjpeg.mix @makljpeg.cf
  76.  
  77. clean:
  78.     $(RM) *.mix cjpeg.exe djpeg.exe testout.*
  79.  
  80. test:
  81.     @$(RM) testout.*
  82.     +djpeg testorig.jpg testout.ppm
  83.     +djpeg -G testorig.jpg testout.gif
  84.     +cjpeg testimg.ppm testout.jpg
  85.     fc testimg.ppm testout.ppm
  86.     fc testimg.gif testout.gif
  87.     fc testimg.jpg testout.jpg
  88.  
  89.  
  90. jbsmooth.mix : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  91. jcarith.mix : jcarith.c jinclude.h jconfig.h jpegdata.h
  92. jccolor.mix : jccolor.c jinclude.h jconfig.h jpegdata.h
  93. jcdeflts.mix : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  94. jcexpand.mix : jcexpand.c jinclude.h jconfig.h jpegdata.h
  95. jchuff.mix : jchuff.c jinclude.h jconfig.h jpegdata.h
  96. jcmain.mix : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  97. jcmaster.mix : jcmaster.c jinclude.h jconfig.h jpegdata.h
  98. jcmcu.mix : jcmcu.c jinclude.h jconfig.h jpegdata.h
  99. jcpipe.mix : jcpipe.c jinclude.h jconfig.h jpegdata.h
  100. jcsample.mix : jcsample.c jinclude.h jconfig.h jpegdata.h
  101. jdarith.mix : jdarith.c jinclude.h jconfig.h jpegdata.h
  102. jdcolor.mix : jdcolor.c jinclude.h jconfig.h jpegdata.h
  103. jddeflts.mix : jddeflts.c jinclude.h jconfig.h jpegdata.h
  104. jdhuff.mix : jdhuff.c jinclude.h jconfig.h jpegdata.h
  105. jdmain.mix : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  106. jdmaster.mix : jdmaster.c jinclude.h jconfig.h jpegdata.h
  107. jdmcu.mix : jdmcu.c jinclude.h jconfig.h jpegdata.h
  108. jdpipe.mix : jdpipe.c jinclude.h jconfig.h jpegdata.h
  109. jdsample.mix : jdsample.c jinclude.h jconfig.h jpegdata.h
  110. jerror.mix : jerror.c jinclude.h jconfig.h jpegdata.h
  111. jquant1.mix : jquant1.c jinclude.h jconfig.h jpegdata.h
  112. jquant2.mix : jquant2.c jinclude.h jconfig.h jpegdata.h
  113. jfwddct.mix : jfwddct.c jinclude.h jconfig.h jpegdata.h
  114. jrevdct.mix : jrevdct.c jinclude.h jconfig.h jpegdata.h
  115. jutils.mix : jutils.c jinclude.h jconfig.h jpegdata.h
  116. jmemmgr.mix : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  117. jrdjfif.mix : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  118. jrdgif.mix : jrdgif.c jinclude.h jconfig.h jpegdata.h
  119. jrdppm.mix : jrdppm.c jinclude.h jconfig.h jpegdata.h
  120. jrdrle.mix : jrdrle.c jinclude.h jconfig.h jpegdata.h
  121. jrdtarga.mix : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  122. jwrjfif.mix : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  123. jwrgif.mix : jwrgif.c jinclude.h jconfig.h jpegdata.h
  124. jwrppm.mix : jwrppm.c jinclude.h jconfig.h jpegdata.h
  125. jwrrle.mix : jwrrle.c jinclude.h jconfig.h jpegdata.h
  126. jwrtarga.mix : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  127. jmemsys.mix : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  128. jmemdosa.mix : jmemdosa.asm
  129.     masm /mx jmemdosa;
  130.     mix jmemdosa.obj
  131.