1## Makefile for building the gtk test apps with Microsoft C 2## Use: nmake -f makefile.msc 3 4## There is no install target, you have to decide where and 5## how to install for yourself. 6 7TOP = ..\.. 8!INCLUDE $(TOP)/glib/build/win32/make.msc 9 10################################################################ 11 12# Possibly override versions from build/win32/module.defs 13GTK_VER = 2.0 14GDK_PIXBUF_VER = 2.0 15 16GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib 17GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib 18 19INCLUDES = -I . -I .. -I ../gdk -I ../gtk 20DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(GDK_PIXBUF_CFLAGS) \ 21 $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS) 22LDFLAGS = /link /machine:ix86 $(LINKDEBUG) 23DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\" 24 25TOUCH = copy makefile.msc+nul 26 27!IFNDEF TESTAPP 28 29all : \ 30 ..\config.h \ 31 prop-editor.obj \ 32 testsocket_common.obj \ 33 all-test-apps 34 35..\config.h : ..\config.h.win32 36 copy ..\config.h.win32 ..\config.h 37 38 39# 40# Test programs: 41# 42TESTAPPS = \ 43# autotestfilechooser autotestfilesystem \ 44# buildertest floatingtest \ 45 flicker \ 46 objecttests \ 47 testaccel testactions testassistant \ 48 testbbox testbuttons \ 49 testcairo testcalendar testcellrenderertext testclientmessage testcombo testcombochange \ 50 testdnd \ 51 testellipsise testentrycompletion testentryicons \ 52 testfilechooser testfilechooserbutton testframe \ 53 testgrouping testgtk \ 54 testicontheme testiconview testimage testinput \ 55 testmenus testmountoperation testmenubars testmerge testmultidisplay testmultiscreen \ 56 testnouiprint testnotebookdnd \ 57 testoffscreen testoffscreenwindow testorientable \ 58 testprint \ 59 testrecentchooser testrecentchoosermenu testrgb testrichtext \ 60 testscale testselection testspinbutton \ 61 testtext testtoolbar testtooltips \ 62 testtreecolumns testtreecolumnsizing testtreeedit testtreeflow testtreefocus \ 63 testtreemodel testtreesort testtreeview treestoretest \ 64 testsocket testsocket_child teststatusicon \ 65 testthreads testvolumebutton testwindows testxinerama \ 66 simple 67 68# syntax error : illegal character '-' in macro 69#stresstest-toolbar 70 71 72all-test-apps: 73 @for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d 74 75one-test-app: 76 @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1 77 78!ELSE 79 80EXTRA_OBJETCS = prop-editor.obj 81 82!IFDEF EXTRA_buildertest 83EXTRA_LIBS = $(ATK_LIBS) 84!ENDIF 85 86!IFDEF EXTRA_testoffscreen 87EXTRA_OBJETCS = gtkoffscreenbox.obj 88!ENDIF 89 90!IFDEF EXTRA_testprint 91EXTRA_OBJETCS = testprintfileoperation.obj 92EXTRA_LIBS = $(PANGOCAIRO_LIBS) 93!ENDIF 94 95!IFDEF EXTRA_testnouiprint 96EXTRA_LIBS = $(PANGOCAIRO_LIBS) 97!ENDIF 98 99!IFDEF EXTRA_testfilechooser 100EXTRA_LIBS = gdi32.lib user32.lib shell32.lib 101!ENDIF 102 103!IFDEF EXTRA_testsocket 104EXTRA_OBJETCS = testsocket_common.obj 105!ENDIF 106 107!IFDEF EXTRA_testsocket_child 108EXTRA_OBJETCS = testsocket_common.obj 109!ENDIF 110 111$(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS) 112 $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \ 113 $(PANGO_LIBS) $(PANGOCAIRO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS) 114 115$(TESTAPP).obj : $(TESTAPP).c 116 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c 117 118!ENDIF 119