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

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Microsoft C for MS-DOS, version 5.x.
  4.  
  5. # Read SETUP instructions before saying "make" !!
  6.  
  7. # Microsoft's brain-damaged version of make uses nonstandard syntax (a blank
  8. # line is needed to terminate a command list) and it simply scans the rules
  9. # in order, rather than doing a true dependency-tree walk.  Furthermore,
  10. # expanded command lines can't exceed 128 chars (this is a DOS bug, not
  11. # make's fault); so we can't just name all the objectfiles in the link steps.
  12. # Instead we shove each objectfile into a library as it is made, and link
  13. # from the library.  The objectfiles are also kept separately as timestamps.
  14.  
  15. # You may need to adjust these cc options:
  16. CFLAGS=  /AS /I. /W3 /Oail /Gs   # NB: /Gs turns off stack oflo checks
  17. LDFLAGS= /Fm /F 2000             # /F hhhh  sets stack size (in hex)
  18. # In particular:
  19. #   Add /DMSDOS if your compiler doesn't automatically #define MSDOS.
  20. #   Add /DMEM_STATS to enable gathering of memory usage statistics.
  21. # You might also want to add /G2 if you have an 80286, etc.
  22.  
  23.  
  24. # source files (independently compilable files)
  25. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  26.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  27.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  28.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  29.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  30.         jwrppm.c jwrrle.c jwrtarga.c
  31. # virtual source files (not present in distribution file)
  32. VIRTSOURCES= jmemsys.c
  33. # system-dependent implementations of source files
  34. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  35.         jmemdosa.asm
  36. # files included by source files
  37. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h egetopt.c
  38. # documentation, test, and support files
  39. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  40. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  41.         makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.bcc \
  42.         makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \
  43.         makljpeg.cf makefile.mms makefile.vms makvms.opt
  44. OTHERFILES= ansi2knr.c ckconfig.c example.c
  45. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  46. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  47.         $(OTHERFILES) $(TESTFILES)
  48. # objectfiles common to cjpeg and djpeg
  49. COMOBJECTS= jutils.obj jerror.obj jmemmgr.obj jmemsys.obj jmemdosa.obj
  50. # compression objectfiles
  51. CLIBOBJECTS= jcmaster.obj jcdeflts.obj jcarith.obj jccolor.obj jcexpand.obj \
  52.         jchuff.obj jcmcu.obj jcpipe.obj jcsample.obj jfwddct.obj \
  53.         jwrjfif.obj jrdgif.obj jrdppm.obj jrdrle.obj jrdtarga.obj
  54. COBJECTS= jcmain.obj $(CLIBOBJECTS) $(COMOBJECTS)
  55. # decompression objectfiles
  56. DLIBOBJECTS= jdmaster.obj jddeflts.obj jbsmooth.obj jdarith.obj jdcolor.obj \
  57.         jdhuff.obj jdmcu.obj jdpipe.obj jdsample.obj jquant1.obj \
  58.         jquant2.obj jrevdct.obj jrdjfif.obj jwrgif.obj jwrppm.obj \
  59.         jwrrle.obj jwrtarga.obj
  60. DOBJECTS= jdmain.obj $(DLIBOBJECTS) $(COMOBJECTS)
  61. # These objectfiles are included in libjpeg.lib
  62. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  63.  
  64.  
  65. # inference rule used for all compilations except jcmain.c, jdmain.c
  66. # notice that objectfile is also inserted into libjpeg.lib
  67. .c.obj:
  68.     cl $(CFLAGS) /c $*.c
  69.     lib libjpeg -+$*.obj;
  70.  
  71. # inference rule for assembly code
  72. .asm.obj:
  73.     masm /mx $*;
  74.     lib libjpeg -+$*.obj;
  75.  
  76.  
  77. jbsmooth.obj : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  78.  
  79. jcarith.obj : jcarith.c jinclude.h jconfig.h jpegdata.h
  80.  
  81. jccolor.obj : jccolor.c jinclude.h jconfig.h jpegdata.h
  82.  
  83. jcdeflts.obj : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  84.  
  85. jcexpand.obj : jcexpand.c jinclude.h jconfig.h jpegdata.h
  86.  
  87. jchuff.obj : jchuff.c jinclude.h jconfig.h jpegdata.h
  88.  
  89. jcmain.obj : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  90.     cl $(CFLAGS) /c $*.c
  91.  
  92. jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpegdata.h
  93.  
  94. jcmcu.obj : jcmcu.c jinclude.h jconfig.h jpegdata.h
  95.  
  96. jcpipe.obj : jcpipe.c jinclude.h jconfig.h jpegdata.h
  97.  
  98. jcsample.obj : jcsample.c jinclude.h jconfig.h jpegdata.h
  99.  
  100. jdarith.obj : jdarith.c jinclude.h jconfig.h jpegdata.h
  101.  
  102. jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpegdata.h
  103.  
  104. jddeflts.obj : jddeflts.c jinclude.h jconfig.h jpegdata.h
  105.  
  106. jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpegdata.h
  107.  
  108. jdmain.obj : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  109.     cl $(CFLAGS) /c $*.c
  110.  
  111. jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpegdata.h
  112.  
  113. jdmcu.obj : jdmcu.c jinclude.h jconfig.h jpegdata.h
  114.  
  115. jdpipe.obj : jdpipe.c jinclude.h jconfig.h jpegdata.h
  116.  
  117. jdsample.obj : jdsample.c jinclude.h jconfig.h jpegdata.h
  118.  
  119. jerror.obj : jerror.c jinclude.h jconfig.h jpegdata.h
  120.  
  121. jquant1.obj : jquant1.c jinclude.h jconfig.h jpegdata.h
  122.  
  123. jquant2.obj : jquant2.c jinclude.h jconfig.h jpegdata.h
  124.  
  125. jfwddct.obj : jfwddct.c jinclude.h jconfig.h jpegdata.h
  126.  
  127. jrevdct.obj : jrevdct.c jinclude.h jconfig.h jpegdata.h
  128.  
  129. jutils.obj : jutils.c jinclude.h jconfig.h jpegdata.h
  130.  
  131. jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  132.  
  133. jrdjfif.obj : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  134.  
  135. jrdgif.obj : jrdgif.c jinclude.h jconfig.h jpegdata.h
  136.  
  137. jrdppm.obj : jrdppm.c jinclude.h jconfig.h jpegdata.h
  138.  
  139. jrdrle.obj : jrdrle.c jinclude.h jconfig.h jpegdata.h
  140.  
  141. jrdtarga.obj : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  142.  
  143. jwrjfif.obj : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  144.  
  145. jwrgif.obj : jwrgif.c jinclude.h jconfig.h jpegdata.h
  146.  
  147. jwrppm.obj : jwrppm.c jinclude.h jconfig.h jpegdata.h
  148.  
  149. jwrrle.obj : jwrrle.c jinclude.h jconfig.h jpegdata.h
  150.  
  151. jwrtarga.obj : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  152.  
  153. jmemsys.obj : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  154.  
  155. jmemdosa.obj : jmemdosa.asm
  156.  
  157.  
  158. cjpeg.exe: $(COBJECTS)
  159.     cl /Fecjpeg.exe jcmain.obj libjpeg.lib $(LDFLAGS)
  160.  
  161. djpeg.exe: $(DOBJECTS)
  162.     cl /Fedjpeg.exe jdmain.obj libjpeg.lib $(LDFLAGS)
  163.