home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gd201.zip / gd-2.0.1 / Makefile.nt < prev    next >
Makefile  |  2001-04-03  |  4KB  |  121 lines

  1. #NMAKE makefile for Windows 95/98/NT developers.
  2. #Produces a static library (libgd.lib). Thanks to Joe Gregorio.
  3. #THIS IS OUT OF DATE.
  4.  
  5. COMPILER=cl
  6.  
  7. #If the ar command fails on your system, consult the ar manpage
  8. #for your system. 
  9. AR=LIB
  10.  
  11. #If the install command is not in your path, provide
  12. #an explicit path for it here, or install manually.
  13. INSTALL=install
  14.  
  15. #If you don't have FreeType and/or Xpm installed, including the
  16. #header files, uncomment this (default).
  17. CFLAGS=-Ox -GX 
  18.  
  19. #If you do have FreeType and/or Xpm fully installed, uncomment a
  20. #variation of this and comment out the line above. See also LIBS below.
  21. #CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBJPEG -DHAVE_LIBPNG -DHAVE_LIBTTF
  22.  
  23. # -DHAVE_LIBFREETYPE can be used instead of -DHAVE_TTF to use the
  24. # newer FreeType2 libraries
  25.  
  26. #Libraries required for applications 
  27. LIBS=gd.lib libpng.lib zlib.lib 
  28. #LIBS=gd.lib libpng.lib zlib.lib libjpeg.lib libttf.lib
  29.  
  30. #Libraries required for gd.lib itself
  31. GDLIBS=libpng.lib zlib.lib
  32. #GDLIBS=libpng.lib zlib.lib libjpeg.lib libttf.lib
  33.  
  34. #Typical install locations for freetype, zlib, jpeg, xpm and 
  35. #libpng header files. If yours are somewhere else, change this. 
  36. INCLUDEDIRS=-I d:\zlib -I d:\libpng -I d:\libjpeg -I d:\libttf
  37.  
  38. #Typical install locations for freetype, zlib, xpm, libjpeg and 
  39. #libpng libraries.
  40. #
  41. #If yours are somewhere else, other than a standard location
  42. #such as /lib or /usr/lib, then change this. Be sure to keep
  43. #-L. as this allows the gd library itself to be found.
  44. #Put -L. first so that old versions of the gd library elsewhere
  45. #on your system can't cause conflicts while building a new one.
  46. LIB=d:\devstudio\vc\lib;d:\zlib;d:\libpng;d:\libjpeg;d:\libttf
  47.  
  48. #Location where gd.lib should be installed by "make install".
  49. INSTALL_LIB=/usr/local/lib
  50.  
  51. #Location where .h files should be installed by "make install".
  52. INSTALL_INCLUDE=/usr/local/include
  53.  
  54. #Location where useful non-test programs should be installed by "make install".
  55. INSTALL_BIN=/usr/local/bin
  56.  
  57. #
  58. #
  59. # Changes should not be required below here.
  60. #
  61. #
  62.  
  63. VERSION=1.8.1
  64.  
  65. CC=$(COMPILER) $(INCLUDEDIRS)
  66. LINK=$(CC) $(LIBS)
  67.  
  68. PROGRAMS=$(BIN_PROGRAMS) $(TEST_PROGRAMS)
  69.  
  70. BIN_PROGRAMS=pngtogd.exe pngtogd2.exe gdtopng.exe gd2topng.exe gd2copypal.exe gdparttopng.exe webpng.exe
  71. TEST_PROGRAMS=gdtest.exe gddemo.exe gd2time.exe gdtestttf.exe gdtestft.exe
  72.  
  73. all: gd.lib $(PROGRAMS)
  74.  
  75. gddemo.exe: gddemo.c gd.lib
  76.     $(CC) gddemo.c $(LIBDIRS) $(LIBS)
  77.  
  78. pngtogd.exe: pngtogd.c gd.lib
  79.     $(CC) pngtogd.c $(LIBDIRS) $(LIBS) 
  80.  
  81. webpng.exe: webpng.c gd.lib
  82.     $(CC) webpng.c     $(LIBDIRS) $(LIBS)
  83.  
  84. pngtogd2.exe: pngtogd2.c gd.lib
  85.     $(CC) pngtogd2.c    $(LIBDIRS) $(LIBS)
  86.  
  87. gdtopng.exe: gdtopng.c gd.lib
  88.     $(CC) gdtopng.c     $(LIBDIRS) $(LIBS)
  89.  
  90. gd2topng.exe: gd2topng.c gd.lib
  91.     $(CC) gd2topng.c    $(LIBDIRS) $(LIBS)
  92.  
  93. gd2copypal.exe: gd2copypal.c gd.lib
  94.     $(CC) gd2copypal.c    $(LIBDIRS) $(LIBS)
  95.  
  96. gdparttopng.exe: gdparttopng.c gd.lib
  97.     $(CC) gdparttopng.c    $(LIBDIRS) $(LIBS)
  98.  
  99. gdtest.exe: gdtest.c gd.lib
  100.     $(CC) gdtest.c     $(LIBDIRS) $(LIBS)
  101.  
  102. gd2time.exe: gd2time.c gd.lib
  103.     $(CC) gd2time.c    $(LIBDIRS) $(LIBS)
  104.  
  105. gdtestttf.exe: gdtestttf.c gd.lib
  106.     $(CC) gdtestttf.c     $(LIBDIRS) $(LIBS)
  107.  
  108. gdtestft.exe: gdtestft.c gd.lib
  109.     $(CC) gdtestft.c     $(LIBDIRS) $(LIBS)
  110.  
  111. OBJS=gd.obj gd_gd.obj gd_gd2.obj gd_io.obj gd_io_dp.obj gd_io_file.obj gd_ss.obj \
  112.     gd_io_ss.obj gd_png.obj gdxpm.obj gdfontt.obj gdfonts.obj gdfontmb.obj gdfontl.obj \
  113.     gdfontg.obj gdtables.obj gdttf.obj gdft.c gdcache.obj gdkanji.obj gd_jpeg.obj
  114.  
  115. gd.lib:  $(OBJS) gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h    
  116.     $(AR) $(OBJS) $(GDLIBS) 
  117.  
  118. clean:
  119.     del *.obj *.lib $(PROGRAMS)
  120.  
  121.