home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / jpeg / makefile.icc < prev    next >
Makefile  |  1993-02-18  |  6KB  |  142 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Intel's Code Builder 32-bit DOS/Windows compiler.
  4. # Thanks to Bailey Brown.
  5.  
  6. # Read SETUP instructions before saying "make" !!
  7.  
  8. # The name of your C compiler:
  9. CC= icc
  10.  
  11. # You may want to adjust these cc options:
  12. CFLAGS= /O3 /Ll /DTWO_FILE_COMMANDLINE
  13.  
  14. # Link-time cc options:
  15. LDFLAGS= /F /xregion=4M
  16. # /F removes floating-point support, which we don't need.
  17. # /xregionsize sets virtual memory region size.
  18.  
  19. # To link any special libraries, add the necessary -l commands here.
  20. LDLIBS= 
  21.  
  22. # miscellaneous OS-dependent stuff
  23. # linker
  24. LN= $(CC)
  25. # library (.lib) file creation command
  26. AR= lib32
  27.  
  28.  
  29. # source files (independently compilable files)
  30. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  31.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  32.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  33.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  34.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  35.         jwrppm.c jwrrle.c jwrtarga.c
  36. # virtual source files (not present in distribution file, see SETUP)
  37. VIRTSOURCES= jmemsys.c
  38. # system-dependent implementations of virtual source files
  39. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  40.         jmemdosa.asm
  41. # files included by source files
  42. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  43. # documentation, test, and support files
  44. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  45. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  46.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  47.         makefile.bcc makefile.icc makljpeg.icc makefile.mms makefile.vms \
  48.         makvms.opt
  49. OTHERFILES= ansi2knr.c ckconfig.c example.c
  50. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  51. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  52.         $(OTHERFILES) $(TESTFILES)
  53. # objectfiles common to cjpeg and djpeg
  54. COMOBJECTS= jutils.obj jerror.obj jmemmgr.obj jmemsys.obj
  55. # compression objectfiles
  56. CLIBOBJECTS= jcmaster.obj jcdeflts.obj jcarith.obj jccolor.obj jcexpand.obj \
  57.         jchuff.obj jcmcu.obj jcpipe.obj jcsample.obj jfwddct.obj \
  58.         jwrjfif.obj jrdgif.obj jrdppm.obj jrdrle.obj jrdtarga.obj
  59. COBJECTS= jcmain.obj $(CLIBOBJECTS) $(COMOBJECTS)
  60. # decompression objectfiles
  61. DLIBOBJECTS= jdmaster.obj jddeflts.obj jbsmooth.obj jdarith.obj jdcolor.obj \
  62.         jdhuff.obj jdmcu.obj jdpipe.obj jdsample.obj jquant1.obj \
  63.         jquant2.obj jrevdct.obj jrdjfif.obj jwrgif.obj jwrppm.obj \
  64.         jwrrle.obj jwrtarga.obj
  65. DOBJECTS= jdmain.obj $(DLIBOBJECTS) $(COMOBJECTS)
  66. # These objectfiles are included in libjpeg.lib
  67. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  68.  
  69.  
  70. all: cjpeg.exe djpeg.exe
  71. # By default, libjpeg.lib is not built unless you explicitly request it.
  72. # You can add libjpeg.lib to the line above if you want it built by default.
  73.  
  74.  
  75. cjpeg.exe: $(COBJECTS)
  76.     echo $(COBJECTS) >cjpeg.rsp
  77.     $(LN) $(LDFLAGS) /ecjpeg.exe @cjpeg.rsp $(LDLIBS)
  78.  
  79. djpeg.exe: $(DOBJECTS)
  80.     echo $(DOBJECTS) >djpeg.rsp
  81.     $(LN) $(LDFLAGS) /edjpeg.exe @djpeg.rsp $(LDLIBS)
  82.  
  83. # libjpeg.lib is useful if you are including the JPEG software in a larger
  84. # program; you'd include it in your link, rather than the individual modules.
  85. libjpeg.lib: $(LIBOBJECTS)
  86.     del libjpeg.lib
  87.     $(AR) libjpeg.lib  nobackup batch <makljpeg.icc
  88.  
  89. jmemsys.c:
  90.     echo You must select a system-dependent jmemsys.c file.
  91.     echo Please read the SETUP directions.
  92.     exit 1
  93.  
  94. test: cjpeg.exe djpeg.exe
  95.         del testout.*
  96.     djpeg -outfile testout.ppm  testorig.jpg
  97.     djpeg -gif -outfile testout.gif  testorig.jpg
  98.     cjpeg -outfile testout.jpg  testimg.ppm
  99.         fc /b testimg.ppm testout.ppm
  100.         fc /b testimg.gif testout.gif
  101.         fc /b testimg.jpg testout.jpg
  102.  
  103.  
  104. jbsmooth.obj : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  105. jcarith.obj : jcarith.c jinclude.h jconfig.h jpegdata.h
  106. jccolor.obj : jccolor.c jinclude.h jconfig.h jpegdata.h
  107. jcdeflts.obj : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  108. jcexpand.obj : jcexpand.c jinclude.h jconfig.h jpegdata.h
  109. jchuff.obj : jchuff.c jinclude.h jconfig.h jpegdata.h
  110. jcmain.obj : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  111. jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpegdata.h
  112. jcmcu.obj : jcmcu.c jinclude.h jconfig.h jpegdata.h
  113. jcpipe.obj : jcpipe.c jinclude.h jconfig.h jpegdata.h
  114. jcsample.obj : jcsample.c jinclude.h jconfig.h jpegdata.h
  115. jdarith.obj : jdarith.c jinclude.h jconfig.h jpegdata.h
  116. jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpegdata.h
  117. jddeflts.obj : jddeflts.c jinclude.h jconfig.h jpegdata.h
  118. jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpegdata.h
  119. jdmain.obj : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  120. jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpegdata.h
  121. jdmcu.obj : jdmcu.c jinclude.h jconfig.h jpegdata.h
  122. jdpipe.obj : jdpipe.c jinclude.h jconfig.h jpegdata.h
  123. jdsample.obj : jdsample.c jinclude.h jconfig.h jpegdata.h
  124. jerror.obj : jerror.c jinclude.h jconfig.h jpegdata.h
  125. jquant1.obj : jquant1.c jinclude.h jconfig.h jpegdata.h
  126. jquant2.obj : jquant2.c jinclude.h jconfig.h jpegdata.h
  127. jfwddct.obj : jfwddct.c jinclude.h jconfig.h jpegdata.h
  128. jrevdct.obj : jrevdct.c jinclude.h jconfig.h jpegdata.h
  129. jutils.obj : jutils.c jinclude.h jconfig.h jpegdata.h
  130. jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  131. jrdjfif.obj : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  132. jrdgif.obj : jrdgif.c jinclude.h jconfig.h jpegdata.h
  133. jrdppm.obj : jrdppm.c jinclude.h jconfig.h jpegdata.h
  134. jrdrle.obj : jrdrle.c jinclude.h jconfig.h jpegdata.h
  135. jrdtarga.obj : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  136. jwrjfif.obj : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  137. jwrgif.obj : jwrgif.c jinclude.h jconfig.h jpegdata.h
  138. jwrppm.obj : jwrppm.c jinclude.h jconfig.h jpegdata.h
  139. jwrrle.obj : jwrrle.c jinclude.h jconfig.h jpegdata.h
  140. jwrtarga.obj : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  141. jmemsys.obj : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  142.