]> Pileus Git - ~andy/gtk/blobdiff - gdk/win32/makefile.msc
Replace "effect" by "affect" where appropriate. (#165108, Dan Winship)
[~andy/gtk] / gdk / win32 / makefile.msc
index 593d8872386bbfaf454f494b64b28f284bcb8cb9..ac5779615d603a2865de706e4f934ac5ff7f88ac 100644 (file)
@@ -1,97 +1,74 @@
 ## Makefile for building the GDK DLL with Microsoft C
 ## Use: nmake -f makefile.msc
 
-# Change this to wherever you want to install the DLLs. This directory
-# should be in your PATH.
-BIN = C:\bin
-
 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
-WTKIT = ..\..\wtkit125
-
-# Full optimization:
-OPTIMIZE = -Ox
-# Debugging:
-#OPTIMIZE = -Zi
+WTKIT = ..\..\..\wtkit126
 
 ################################################################
 
 # Nothing much configurable below
 
-# cl -? described the options
-CC = cl -G5 -GF $(OPTIMIZE) -W3 -MD -nologo
+TOP = ../../..
+!INCLUDE $(TOP)/glib/build/win32/make.msc
 
-LDFLAGS = /link /machine:ix86 # /debug /debugtype:cv
-INSTALL = copy
-TOUCH = copy makefile.msc+nul
+GTK_VER=2.0
 
-GLIB_VER=1.2
-GTK_VER=1.3
-
-GLIB = ..\..\glib-$(GLIB_VER)
-CFLAGS = -I. -I.. -I$(WTKIT)\include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\" # -DMULTIPLE_WINDOW_CLASSES
+CFLAGS = -FImsvc_recommended_pragmas.h \
+       -I. -I.. -I..\.. $(GLIB_CFLAGS) $(PANGO_CFLAGS) \
+       -I$(WTKIT)\include -I$(GLIB) \
+       $(G_DEBUGGING) -DHAVE_CONFIG_H -DINSIDE_GDK_WIN32 -DGDK_VERSION=\"$(GTK_VER)\"
 
 all: \
-       ..\config.h     \
-       gdk-$(GTK_VER).dll
-       $(TOUCH) all
-
-install : all
-       $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
-       $(TOUCH) install
-
-gdk_OBJECTS = \
-       gdk.obj         \
-       gdkcc.obj       \
-       gdkcolor.obj    \
-       gdkcursor.obj   \
-       gdkdnd.obj      \
-       gdkdraw.obj     \
-       gdkevents.obj   \
-       gdkfont.obj     \
-       gdkgc.obj       \
-       gdkglobals.obj  \
-       gdkim.obj       \
-       gdkimage.obj    \
-       gdkinput.obj    \
-       gdkpixmap.obj   \
-       gdkproperty.obj \
-       gdkrgb.obj      \
-       gdkrectangle.obj\
-       gdkregion.obj   \
-       gdkselection.obj\
-       gdkvisual.obj   \
-       gdkwindow.obj   \
-       gdkxid.obj
-
-..\config.h : ..\config.h.win32
-       copy ..\config.h.win32 ..\config.h
+       ..\..\config.h  \
+       ..\gdkconfig.h \
+       gdk-win32.lib \
+       gdk.res
+
+gdk_win32_OBJECTS = \
+       gdkcolor-win32.obj \
+       gdkcursor-win32.obj \
+       gdkdnd-win32.obj \
+       gdkdisplay-win32.obj \
+       gdkdrawable-win32.obj \
+       gdkevents-win32.obj \
+       gdkfont-win32.obj \
+       gdkgc-win32.obj \
+       gdkgeometry-win32.obj \
+       gdkglobals-win32.obj \
+       gdkim-win32.obj \
+       gdkimage-win32.obj \
+       gdkinput.obj \
+       gdkinput-win32.obj \
+       gdkkeys-win32.obj \
+       gdkmain-win32.obj \
+       gdkpango-win32.obj \
+       gdkpixmap-win32.obj \
+       gdkproperty-win32.obj \
+#      gdkregion-win32.obj \
+       gdkscreen-win32.obj \
+       gdkselection-win32.obj \
+       gdkspawn-win32.obj \
+       gdkvisual-win32.obj \
+       gdkwin32id.obj \
+       gdkwindow-win32.obj
+
+..\..\config.h : ..\..\config.h.win32
+       copy ..\..\config.h.win32 ..\..\config.h
+
+..\gdkconfig.h : ..\gdkconfig.h.win32
+       copy ..\gdkconfig.h.win32 ..\gdkconfig.h
 
 gdk.res : rc\gdk.rc
-       rc -r -fo gdk.res rc\gdk.rc
+       rc -DBUILDNUMBER=0 -r -fo gdk.res rc\gdk.rc
 
-gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdk.res
-       $(CC) $(CFLAGS) -LD -Fegdk-$(GTK_VER).dll $(gdk_OBJECTS) $(GLIB)\glib-$(GLIB_VER).lib gdi32.lib user32.lib shell32.lib ole32.lib uuid.lib $(WTKIT)\lib\i386\wntab32x.lib $(LDFLAGS) gdk.res /def:gdk.def
+gdk-win32.lib : $(gdk_win32_OBJECTS)
+       lib -out:gdk-win32.lib $(gdk_win32_OBJECTS)
 
 .c.obj :
        $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
 
-testgdk.exe : testgdk.obj gdk-$(GTK_VER).dll
-       $(CC) $(CFLAGS) testgdk.obj gdk-$(GTK_VER).lib $(GLIB)\glib-$(GLIB_VER).lib $(LDFLAGS)
-
-testgdk.obj : testgdk.c
-       $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgdk\" testgdk.c
-
-clean:
-       del *.exe
+clean::
        del *.obj
-       del *.dll
        del *.lib
-       del *.exp
        del *.err
-       del *.map
-       del *.sym
-       del *.lk1
-       del *.mk1
        del *.res
-       del *.pdb
-       del *.ilk