Merge remote-tracking branch 'gvdb/master'
[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 = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
11 DEFINES = -DHAVE_CONFIG_H -DENABLE_REGEX
12
13 NONAUTOMATIC_TESTS = \
14         testglib.exe    \
15         testgdate.exe   \
16         testgdateparser.exe \
17         unicode-normalize.exe \
18         unicode-collate.exe
19
20 TESTS = \
21         atomic-test.exe \
22         asyncqueue-test.exe \
23         base64-test.exe \
24         bit-test.exe \
25         bookmarkfile-test.exe \
26         child-test.exe \
27         checksum-test.exe \
28         completion-test.exe \
29         convert-test.exe \
30         date-test.exe   \
31         dirname-test.exe \
32         env-test.exe \
33         errorcheck-mutex-test.exe \
34         file-test.exe \
35         gio-test.exe    \
36         iochannel-test.exe \
37         hash-test.exe   \
38         list-test.exe   \
39         mainloop-test.exe \
40         mapping-test.exe \
41 #c99    markup-collect.exe \
42         markup-escape-test.exe \
43         markup-test.exe \
44 #main?  memchunks.exe \
45         module-test.exe \
46         node-test.exe   \
47 #c99    onceinit.exe \
48         patterntest.exe \
49         queue-test.exe  \
50         qsort-test.exe \
51         regex-test.exe \
52         relation-test.exe \
53         scannerapi.exe \
54         sequence-test.exe \
55         shell-test.exe  \
56         slice-color.exe \
57 #unistd slice-concurrent.exe\
58         slice-threadinit.exe \
59         slice-test.exe  \
60         slist-test.exe  \
61         spawn-test.exe  \
62         testingbase64.exe \
63         thread-test.exe \
64         threadpool-test.exe \
65 #unistd timeloop-basic.exe \
66 #unistd timeloop-closure.exe \
67 #unistd timeloop.exe \
68         tree-test.exe   \
69         type-test.exe   \
70         unicode-caseconv.exe \
71         unicode-encoding.exe \
72         utf8-validate.exe \
73         utf8-pointer.exe \
74         uri-test.exe \
75         \
76         gio-ls.exe
77
78 DLLS = \
79         libmoduletestplugin_a.dll \
80         libmoduletestplugin_b.dll
81
82 all :   $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
83
84 .c.exe :
85         $(CC) $(CFLAGS) -c $<
86         $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
87
88 gio-ls.exe : gio-ls.obj
89         $(CC) $(CFLAGS) -Fe$@ gio-ls.obj \
90         ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib \
91         ..\gobject\gobject-2.0.lib ..\gio\gio-2.0.lib \
92         $(LDFLAGS) user32.lib /subsystem:console
93
94 slice-test.exe : memchunks.obj slice-test.obj 
95         $(CC) $(CFLAGS) -Fe$@ memchunks.obj slice-test.obj \
96         ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
97         
98 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
99         $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
100
101 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
102         $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
103
104 check:  all
105         for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p