]> Pileus Git - ~andy/gtk/blob - tests/makefile.msc
updated fix c99ism (variable at start of block export functions for window
[~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 textbuffertest 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 !IFDEF EXTRA_buildertest
80 EXTRA_LIBS = $(ATK_LIBS)
81 !ENDIF
82
83 !IFDEF EXTRA_testprint
84 EXTRA_OBJETCS = testprintfileoperation.obj
85 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
86 !ENDIF
87
88 !IFDEF EXTRA_testnouiprint
89 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
90 !ENDIF
91
92 !IFDEF EXTRA_testfilechooser
93 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
94 !ENDIF
95
96 !IFDEF EXTRA_testsocket
97 EXTRA_OBJETCS = testsocket_common.obj
98 !ENDIF
99
100 !IFDEF EXTRA_testsocket_child
101 EXTRA_OBJETCS = testsocket_common.obj
102 !ENDIF
103
104 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS)
105         $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
106         $(PANGO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
107
108 $(TESTAPP).obj : $(TESTAPP).c
109         $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
110
111 !ENDIF