Updates.
[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 $(TOP)\build\win32\make.msc
7
8 ################################################################
9
10 INCLUDES = -I .. -I ..\glib -I ..\gmodule
11 DEFINES = -DHAVE_CONFIG_H
12
13 # mainloop-test removed for now until it is fixed
14
15 TESTS = \
16         testglib.exe \
17         testgdate.exe \
18         testgdateparser.exe \
19         array-test.exe  \
20         date-test.exe   \
21         dirname-test.exe\
22         gio-test.exe    \
23         iochannel-test.exe      \
24         hash-test.exe   \
25         list-test.exe   \
26         markup-test.exe \
27         module-test.exe \
28         node-test.exe   \
29         queue-test.exe  \
30         rand-test.exe   \
31         relation-test.exe\
32         shell-test.exe  \
33         slist-test.exe  \
34         spawn-test.exe  \
35 # strfunc-test doesn't compile with MSVC
36 #       strfunc-test.exe\
37         string-test.exe \
38         thread-test.exe \
39         threadpool-test.exe\
40         tree-test.exe   \
41         type-test.exe   \
42         unicode-encoding.exe \
43         libmoduletestplugin_a.dll \
44         libmoduletestplugin_b.dll
45
46 all :   $(TESTS)
47
48 .c.exe :
49         $(CC) $(CFLAGS) -c $<
50         $(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
51
52 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
53         $(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)
54
55 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
56         $(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)
57
58 check:  all
59         for %p in ($(TESTS)) do %p