📄 make.msc
字号:
# Note that this file is hardly maintained, hardly usable without# manual editing, and not really part of a recommended way to build# GLib and related software with Microsoft's compilers. Only a few# persons use a build setup that involves this file.# Common makefile definitions for building GLib, GTk+, and various# software that use these libraries with msvc on Win32# Debug builds shoud link with msvcrtd release build with msvcrt.!IFNDEF DEBUG# Full optimization:OPTIMIZE = -OxCRUNTIME = -MD# Line number debug info onlyDEBUGINFO = -Zd# vc2008 does not have this#DEBUGINFO =LINKDEBUG =!ELSE# Debugging:OPTIMIZE = CRUNTIME = -MDdDEBUGINFO = -Zi -DG_ENABLE_DEBUG=1LINKDEBUG = /debug /nodefaultlib:msvcrt.lib!ENDIFLDFLAGS = /link /machine:ix86 $(LINKDEBUG)!IFNDEF TOPTOP = ..!ENDIF# paths and version numbers!INCLUDE module.defs################# CFLAGS and LIBS for the packages in module.defs.# In alphabetical order.# Note that these CFLAGS and LIBS refer to stuff in "source"# directories. This is for historical reasons, and only useable if you# have the GLib, Pango, etc sources. If you use the prebuilt developer# packages, you should fix these to instead refer to the place where# you unzipped the developer packages. Easiest of all, run pkg-config# --cflags gtk+-2.0 (for instance), and paste its output as the# definition of GTK2_CFLAGS. Etc.ATK_CFLAGS = -I $(ATK)ATK_LIBS = $(ATK)\atk\atk-$(ATK_VER).lib!IFNDEF CAIRO# use prebuiltCAIRO_CFLAGS = -I $(TOP)\dev\include\cairoCAIRO_LIBS = $(TOP)\dev\lib\cairo.lib!ELSECAIRO_CFLAGS = -I $(CAIRO)\cairo\src -I $(CAIRO)\libpixman\src -I $(CAIRO) $(FONTCONFIG_CFLAGS) $(FREETYPE2_CFLAGS)CAIRO_LIBS = $(CAIRO)\cairo\src\libcairo-$(CAIRO_VER).lib!ENDIFDIRENT_CFLAGS = -I $(GLIB)\build\win32\direntDIRENT_LIBS = $(GLIB)\build\win32\dirent\dirent.lib# Don't know if Freetype2, FriBiDi and some others actually can be# built with MSVC, but one can produce an import library even if the# DLL was built with gcc.FREETYPE2_CFLAGS = -I $(FREETYPE2)\includeFREETYPE2_LIBS = $(FREETYPE2)\obj\freetype-$(FREETYPE2_VER).libGDK_PIXBUF_CFLAGS = -I $(GDK_PIXBUF)GDK_PIXBUF_LIBS = $(GTK2)\gdk-pixbuf\gdk_pixbuf-$(GDK_PIXBUF_VER).libGIMP_CFLAGS = -I $(GIMP)GIMP_PLUGIN_LIBS = $(GIMP)\libgimp\gimp-$(GIMP_VER).lib $(GIMP)\libgimp\gimpui-$(GIMP_VER).lib# overide definition to use it as callable pathGLIB = $(TOP)\glibGLIB_CFLAGS = -I $(GLIB) -I $(GLIB)\glib -I $(GLIB)\gmodule $(INTL_CFLAGS)GLIB_LIBS = $(GLIB)\glib\glib-$(GLIB_VER).lib $(GLIB)\gmodule\gmodule-$(GLIB_VER).lib $(GLIB)\gobject\gobject-$(GLIB_VER).lib $(GLIB)\gio\gio-$(GLIB_VER).libGTHREAD_LIBS = $(GLIB)\gthread\gthread-$(GLIB_VER).libGNOMECANVAS_CFLAGS = -I $(GNOMECANVAS)GNOMECANVAS_LIBS = $(GNOMECANVAS)\libgnomecanvas\libgnomecanvas-$(GNOMECANVAS_VER).libGNOMEPRINT_CFLAGS = -I $(GNOMEPRINT)GNOMEPRINT_LIBS = $(GNOMEPRINT)\libgnomeprint\gnome-print-$(GNOMEPRINT_VER).libGNOMEPRINTUI_CFLAGS = -I $(GNOMEPRINTUI)GNOMEPRINTUI_LIBS = $(GNOMEPRINTUI)\libgnomeprintui\gnome-printui-$(GNOMEPRINTUI_VER).libGTK_CFLAGS = -I$(GTK)\gdk -I$(GTK)\gdk -I$(GTK) GTK_LIBS = $(GTK)\gtk\gtk.lib $(GTK)\gdk\gdk.lib GTK2_CFLAGS = $(GLIB_CFLAGS) $(ATK_CFLAGS) -I$(GTK2)\gdk -I$(GTK2)\gdk -I$(GTK2) -I$(PANGO) -I$(ATK)GTK2_LIBS = $(GTK2)\gtk\gtk-win32-$(GTK2_VER).lib $(GTK2)\gdk\gdk-win32-$(GTK2_VER).lib $(GTK2)\gdk-pixbuf\gdk_pixbuf-$(GTK2_VER).lib $(PANGO_LIBS)GTKGLAREA_CFLAGS = -I $(GTKGLAREA)GTKGLAREA_CFLAGS = -I $(GTKGLAREA)GTKGLAREA_LIBS = $(GTKGLAREA)\gtkgl\gtkgl-$(GTKGLAREA_VER).libLIBART_CFLAGS = -I$(LIBART)\.. -FIlibart_lgpl/art_config.hLIBART_LIBS = $(LIBART)\libart.libINTL_CFLAGS = -I $(INTL)\includeINTL_LIBS = $(INTL)\lib\intl.lib LIBICONV_CFLAGS = -I $(LIBICONV)\includeLIBICONV_LIBS = $(LIBICONV)\lib\iconv.libLIBXML_CFLAGS = -I $(LIBXML)LIBXML_LIBS = $(LIBXML)\xml-$(LIBXML_VER).libLIBXML2_CFLAGS = $(LIBICONV_CFLAGS) -I $(LIBXML2)\includeLIBXML2_LIBS = $(LIBXML2)\libxml2.libLIBXSLT_CFLAGS = -I $(LIBXSLT)LIBXSLT_LIBS = $(LIBXSLT)\libxslt\libxslt.lib!IFNDEF JPEG# use prebuiltJPEG_CFLAGS = -I $(TOP)\dev\includeJPEG_LIBS = $(TOP)\dev\lib\jpeg.lib!ELSEJPEG_CFLAGS = -I $(JPEG)JPEG_LIBS = $(JPEG)\libjpeg.lib!ENDIFOPENGL_CFLAGS = # None needed, headers bundled with the compilerOPENGL_LIBS = opengl32.lib lglu32.libPANGO_CFLAGS = -I $(PANGO)PANGO_LIBS = $(PANGO)\pango\pango-$(PANGO_VER).libPANGOWIN32_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangowin32-$(PANGO_VER).libPANGOCAIRO_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangowin32-$(PANGO_VER).lib $(PANGO)\pango\pangocairo-$(PANGO_VER).libPANGOFT2_LIBS = $(PANGO_LIBS) $(PANGO)\pango\pangoft2-$(PANGO_VER).lib!IFNDEF PNG#use precompiledPNG_CFLAGS = -I $(TOP)\dev\include\libpng12PNG_LIBS = $(TOP)\dev\lib\libpng.lib $(ZLIB_LIBS)!ELSEPNG_CFLAGS = -I $(PNG) $(ZLIB_CFLAGS)PNG_LIBS = $(PNG)\png.lib $(ZLIB_LIBS)!ENDIFRSVG_CFLAGS = -I $(RSVG)\..RSVG_LIBS = $(RSVG)\librsvg-$(RSVG_VER).libSVG_CFLAGS = -I $(SVG)\srcSVG_LIBS = $(SVG)\src\libsvg-$(SVG_VER).lib!IFNDEF TIFF# use prebuiltTIFF_CFLAGS = -I $(TOP)\dev\includeTIFF_LIBS = $(TOP)\dev\lib\libtiff.lib!ELSETIFF_CFLAGS = -I $(TIFF)\libtiff# Use single import library for both libtiff DLL versions (with or# without LZW code). The user selects which DLL to use.TIFF_NOLZW_LIBS = $(TIFF)\libtiff\tiff.lib $(JPEG_LIBS) $(ZLIB_LIBS) user32.libTIFF_LZW_LIBS = $(TIFF_NOLZW_LIBS)TIFF_LIBS = $(TIFF_NOLZW_LIBS)!ENDIF!IFNDEF ZLIB# use prebuiltZLIB_CFLAGS = -I $(TOP)\dev\includeZLIB_LIBS = $(TOP)\dev\lib\zdll.lib!ELSEZLIB_CFLAGS = -I $(ZLIB)ZLIB_LIBS = $(ZLIB)\zlib.lib!ENDIF################# Compiler to use.CCOMPILER = clCC = $(CCOMPILER) -GF $(CRUNTIME) -W3 -nologo################# The including makefile should define INCLUDES, DEFINES and# DEPCFLAGS. INCLUDES are the includes related to the module being# built. DEFINES similarly. DEPCFLAGS should be set to a set of# GLIB_CFLAGS, GTK_CFLAGS etc corresponding to what other modules we# depend on.CFLAGS = $(OPTIMIZE) $(DEBUGINFO) $(INCLUDES) $(DEFINES) $(DEPCFLAGS).c.i : $(CC) $(CFLAGS) -E $< >$@# The default target should be "all"default: allclean:: -del *.obj -del *.res -del *.i -del *.exe -del *.dll -del *.lib -del *.err -del *.map -del *.exp -del *.lk1 -del *.mk1 -del *.pdb -del *.ilk# Needed by hacker rule to make makefile.msc from makefile.msc.in:SED = e:\cygwin\bin\sed
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -