home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / build / win32 / make.msc < prev    next >
Encoding:
Text File  |  2000-12-21  |  3.4 KB  |  129 lines

  1. # Common makefile definitions for building GLib, GTk+, and various
  2. # software that use these libraries with msvc on Win32
  3.  
  4. # For more detailed information see make.mingw in this same directory
  5.  
  6. # Some libraries have headers that can't be used from the source directories,
  7. # we have to "install" them. USRDIR is a directory where we have an "include"
  8. # subdirectory for headers.
  9. USRDIR = c:\install
  10.  
  11. # Debug builds shoud link with msvcrtd release build with msvcrt.
  12. !IFNDEF DEBUG
  13. # Full optimization:
  14. OPTIMIZE = -Ox
  15. CRUNTIME = -MD
  16. LINKDEBUG =
  17. !ELSE
  18. # Debugging:
  19. OPTIMIZE = -Zi
  20. CRUNTIME = -MDd
  21. LINKDEBUG = /debug
  22. !ENDIF
  23.  
  24. LDFLAGS = /link $(LINKDEBUG)
  25.  
  26. !IFNDEF TOP
  27. TOP = ..
  28. !ENDIF
  29.  
  30. # paths and version numbers
  31. !INCLUDE module.defs
  32.  
  33. ################
  34. # CFLAGS and LIBS for the packages in module.defs.
  35. # In alphabetical order.
  36.  
  37. # Don't know if Freetype2, FriBiDi and some others actually can be
  38. # built with MSVC, but one can produce an import library even if the
  39. # library was built with gcc (if it's a DLL).
  40.  
  41. FREETYPE2_CFLAGS = -I $(FREETYPE2)\include
  42. FREETYPE2_LIBS = $(FREETYPE2)\obj\freetype-$(FREETYPE2_VER).lib
  43.  
  44. # FriBidi headers need to be "installed".
  45. FRIBIDI_CFLAGS = -I $(USRDIR)\include
  46. FRIBIDI_LIBS = $(FRIBIDI)\fribidi-$(FRIBIDI_VER).lib
  47.  
  48. GIMP_CFLAGS = -I $(GIMP)
  49. GIMP_PLUGIN_LIBS = $(GIMP)\libgimp\gimp-$(GIMP_VER).lib $(GIMP)\libgimp\gimpui-$(GIMP_VER).lib
  50.  
  51. GLIB_CFLAGS = -I $(GLIB) -I $(GLIB)\gmodule
  52. GLIB_LIBS = $(GLIB)\glib-$(GLIB_VER).lib $(GLIB)\gmodule\gmodule-$(GLIB_VER).lib $(GLIB)\gobject\gobject-$(GLIB_VER).lib
  53.  
  54. GTK_CFLAGS = -I$(GTK)\gdk -I$(GTK)\gdk -I$(GTK) 
  55. GTK_LIBS = $(GTK)\gtk\gtk-$(GTK_VER).lib $(GTK)\gdk\gdk-$(GTK_VER).lib 
  56.  
  57. GTKGLAREA_CFLAGS = -I $(GTKGLAREA)
  58. GTKGLAREA_LIBS = $(GTKGLAREA)\gtkgl\gtkgl-$(GTKGLAREA_VER).lib
  59.  
  60. INTL_CFLAGS = -I $(INTL)
  61. INTL_LIBS = $(INTL)\gnu-intl.lib 
  62.  
  63. LIBICONV_CFLAGS = -I $(LIBICONV)\include
  64. LIBICONV_LIBS = $(LIBICONV)\src\iconv-$(LIBICONV_VER).lib
  65.  
  66. LIBXML_CFLAGS = -I $(LIBXML)
  67. LIBXML_LIBS = $(LIBXML)\xml-$(LIBXML_VER).lib
  68.  
  69. JPEG_CFLAGS = -I $(JPEG)
  70. JPEG_LIBS = $(JPEG)\jpeg.lib
  71.  
  72. OPENGL_CFLAGS = # None needed, headers bundled with the compiler
  73. OPENGL_LIBS = opengl32.lib lglu32.lib
  74.  
  75. PANGO_CFLAGS = -I $(PANGO)
  76. PANGO_LIBS = $(PANGO)\pango\pango-$(PANGO_VER).lib
  77. PANGOWIN32_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangowin32-$(PANGO_VER).lib
  78.  
  79. PNG_CFLAGS = -I $(PNG) $(ZLIB_CFLAGS)
  80. PNG_LIBS = $(PNG)\png.lib $(ZLIB_LIBS)
  81.  
  82. PTHREAD_CFLAGS = -I $(PTHREADS)
  83. PTHREAD_LIBS = $(PTHREADS)\pthread.lib
  84.  
  85. TIFF_CFLAGS = -I $(TIFF)\libtiff
  86. TIFF_LIBS = $(TIFF)\libtiff\tiff.lib $(JPEG_LIBS) $(ZLIB_LIBS) user32.lib
  87.  
  88. ZLIB_CFLAGS = -I $(ZLIB)
  89. ZLIB_LIBS = $(ZLIB)\zlib.lib
  90.  
  91. ################
  92. # Compiler to use.
  93.  
  94. CC = cl -G5 -GF $(OPTIMIZE) $(CRUNTIME) -W3 -nologo
  95.  
  96. ################
  97. # The including makefile should define INCLUDES, DEFINES and
  98. # DEPCFLAGS.  INCLUDES are the includes related to the module being
  99. # built.  DEFINES similarly. DEPCFLAGS should be set to a set of
  100. # GLIB_CFLAGS, GTK_CFLAGS etc corresponding to what other modules we
  101. # depend on.
  102.  
  103. CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES) $(DEPCFLAGS)
  104.  
  105. .c.i :
  106.     $(CC) $(CFLAGS) -E $< >$@
  107.  
  108. # The default target should be "all"
  109.  
  110. default: all
  111.  
  112. clean::
  113.     -del *.obj
  114.     -del *.i
  115.     -del *.exe
  116.     -del *.dll
  117.     -del *.lib
  118.     -del *.err
  119.     -del *.map
  120.     -del *.sym
  121.     -del *.exp
  122.     -del *.lk1
  123.     -del *.mk1
  124.     -del *.pdb
  125.     -del *.ilk
  126.  
  127. # Needed by hacker rule to make makefile.msc from makefile.msc.in:
  128. SED = e:\cygwin\bin\sed
  129.