1 ## Makefile for building the gtk test apps with Microsoft C
2 ## Use: nmake -f makefile.msc
4 ## There is no install target, you have to decide where and
5 ## how to install for yourself.
8 !INCLUDE $(TOP)/glib/build/win32/make.msc
10 ################################################################
12 # Possibly override versions from build/win32/module.defs
16 GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
17 GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib
18 GDK_PIXBUF_LIBS = ../gdk-pixbuf/gdk_pixbuf-$(GDK_PIXBUF_VER).lib
20 INCLUDES = -I . -I .. -I ../gdk -I ../gdk-pixbuf -I ../gtk
21 DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
22 LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
23 DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
25 TOUCH = copy makefile.msc+nul
32 testsocket_common.obj \
35 ..\config.h : ..\config.h.win32
36 copy ..\config.h.win32 ..\config.h
43 # autotestfilechooser autotestfilesystem \
44 buildertest floatingtest objecttests \
45 testaccel testactions testassistant \
47 testcairo testcalendar testcellrenderertext testcombo testcombochange \
49 testellipsise testentrycompletion \
50 testfilechooser testfilechooserbutton testframe \
51 testgrouping testgtk \
52 testicontheme testiconview testimage testinput \
53 testmenus testmenubars testmerge testmultidisplay testmultiscreen \
54 testnouiprint testnotebookdnd \
56 testrecentchooser testrecentchoosermenu testrgb testrichtext \
57 testselection testspinbutton \
58 testtext textbuffertest testtoolbar testtooltips \
59 testtreecolumns testtreeedit testtreeflow testtreefocus \
60 testtreemodel testtreesort testtreeview treestoretest \
61 testsocket testsocket_child teststatusicon \
62 testthreads testvolumebutton testxinerama \
65 # syntax error : illegal character '-' in macro
70 @for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
73 @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
77 EXTRA_OBJETCS = prop-editor.obj
79 !IFDEF EXTRA_buildertest
80 EXTRA_LIBS = $(ATK_LIBS)
83 !IFDEF EXTRA_testprint
84 EXTRA_OBJETCS = testprintfileoperation.obj
85 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
88 !IFDEF EXTRA_testnouiprint
89 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
92 !IFDEF EXTRA_testfilechooser
93 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
96 !IFDEF EXTRA_testsocket
97 EXTRA_OBJETCS = testsocket_common.obj
100 !IFDEF EXTRA_testsocket_child
101 EXTRA_OBJETCS = testsocket_common.obj
104 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS) pixbuf-init.obj
105 $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) pixbuf-init.obj $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
106 $(PANGO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
108 $(TESTAPP).obj : $(TESTAPP).c
109 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c