Add back mainloop-test here, too.
[platform/upstream/glib.git] / tests / makefile.msc.in
1 ## Makefile for building the GLib test programs with Microsoft C
2 ## Use: nmake -f makefile.msc check
3
4 TOP = ..\..
5
6 !INCLUDE ..\build\win32\make.msc
7
8 ################################################################
9
10 INCLUDES = -I .. -I ..\glib -I ..\gmodule
11 DEFINES = -DHAVE_CONFIG_H
12
13 NONAUTOMATIC_TESTS = \
14         testglib.exe    \
15         testgdate.exe   \
16         testgdateparser.exe \
17         patterntest.exe \
18         unicode-normalize.exe \
19         unicode-collate.exe
20
21 TESTS = \
22         array-test.exe  \
23         date-test.exe   \
24         dirname-test.exe\
25         gio-test.exe    \
26         hash-test.exe   \
27         list-test.exe   \
28         mainloop-test.exe \
29         markup-test.exe \
30         module-test.exe \
31         node-test.exe   \
32         queue-test.exe  \
33         rand-test.exe   \
34         relation-test.exe\
35         shell-test.exe  \
36         slist-test.exe  \
37         spawn-test.exe  \
38 # strfunc-test doesn't compile with MSVC
39 #       strfunc-test.exe\
40         string-test.exe \
41         strtod-test.exe \
42         thread-test.exe \
43         threadpool-test.exe\
44         tree-test.exe   \
45         type-test.exe   \
46         unicode-caseconv.exe \
47         unicode-encoding.exe
48
49 DLLS = \
50         libmoduletestplugin_a.dll \
51         libmoduletestplugin_b.dll
52
53 all :   $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
54
55 .c.exe :
56         $(CC) $(CFLAGS) -c $<
57         $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gthread\gthread-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) user32.lib /subsystem:console
58
59 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
60         $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
61
62 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
63         $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
64
65 check:  all
66         for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p