More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
[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 TESTS = \
14         testglib.exe \
15         testgdate.exe \
16         testgdateparser.exe \
17         array-test.exe  \
18         date-test.exe   \
19         dirname-test.exe\
20         gio-test.exe    \
21         iochannel-test.exe      \
22         hash-test.exe   \
23         list-test.exe   \
24         mainloop-test.exe\
25         markup-test.exe \
26         module-test.exe \
27         node-test.exe   \
28         queue-test.exe  \
29         rand-test.exe   \
30         relation-test.exe\
31         shell-test.exe  \
32         slist-test.exe  \
33         spawn-test.exe  \
34 # strfunc-test doesn't compile with MSVC
35 #       strfunc-test.exe\
36         string-test.exe \
37         thread-test.exe \
38         threadpool-test.exe\
39         tree-test.exe   \
40         type-test.exe   \
41         unicode-encoding.exe \
42         libmoduletestplugin_a.dll \
43         libmoduletestplugin_b.dll
44
45 all :   $(TESTS)
46
47 .c.exe :
48         $(CC) $(CFLAGS) -c $<
49         $(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
50
51 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
52         $(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)
53
54 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
55         $(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)
56
57 check:  all
58         for %p in ($(TESTS)) do %p