]> Pileus Git - ~andy/gtk/blob - tests/makefile.msc
Translation updated by Ivar Smolin
[~andy/gtk] / tests / makefile.msc
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
7 TOP = ..\..
8 !INCLUDE $(TOP)/glib/build/win32/make.msc
9
10 ################################################################
11
12 # Possibly override versions from build/win32/module.defs
13 GTK_VER = 2.0
14 GDK_PIXBUF_VER = 2.0
15
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
19
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)\"
24
25 TOUCH = copy makefile.msc+nul
26
27 !IFNDEF TESTAPP
28
29 all :   \
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 #
42 TESTAPPS = \
43         autotestfilechooser autotestfilesystem \
44         buildertest floatingtest \
45         testaccel testactions testassistant \
46         testbbox \
47         testcairo testcalendar testcellrenderertext testcombo testcombochange \
48         testdnd \
49         testellipsise testentrycompletion \
50         testfilechooser testfilechooserbutton testframe \
51         testgrouping testgtk \
52         testicontheme testiconview testimage testinput \
53         testmenus testmenubars testmerge testmultidisplay testmultiscreen \
54         testnouiprint testnotebookdnd \
55         testprint \
56         testrecentchooser testrecentchoosermenu testrgb testrichtext \
57         testselection testspinbutton \
58         testtext testtextbuffer testtoolbar testtooltips \
59         testtreecolumns testtreeedit testtreeflow testtreefocus \
60         testtreemodel testtreesort testtreeview treestoretest \
61         testsocket testsocket_child teststatusicon \
62         testthreads testvolumebutton testxinerama \
63         simple 
64
65 # syntax error : illegal character '-' in macro
66 #stresstest-toolbar
67
68
69 all-test-apps: 
70         @for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
71
72 one-test-app:
73         @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
74
75 !ELSE
76
77 EXTRA_OBJETCS = prop-editor.obj
78
79
80 !IFDEF EXTRA_testprint
81 EXTRA_OBJETCS = testprintfileoperation.obj
82 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
83 !ENDIF
84
85 !IFDEF EXTRA_testnouiprint
86 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
87 !ENDIF
88
89 !IFDEF EXTRA_testfilechooser
90 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
91 !ENDIF
92
93 !IFDEF EXTRA_testsocket
94 EXTRA_OBJETCS = testsocket_common.obj
95 !ENDIF
96
97 !IFDEF EXTRA_testsocket_child
98 EXTRA_OBJETCS = testsocket_common.obj
99 !ENDIF
100
101 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS)
102         $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
103         $(PANGO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
104
105 $(TESTAPP).obj : $(TESTAPP).c
106         $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
107
108 !ENDIF