~ubuntu-branches/ubuntu/utopic/glib2.0/utopic

« back to all changes in this revision

Viewing changes to tests/makefile.msc

Tags: upstream-2.12.12
ImportĀ upstreamĀ versionĀ 2.12.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
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
        iochannel-test.exe \
 
27
        hash-test.exe   \
 
28
        list-test.exe   \
 
29
        mainloop-test.exe \
 
30
        markup-test.exe \
 
31
        module-test.exe \
 
32
        node-test.exe   \
 
33
        queue-test.exe  \
 
34
        rand-test.exe   \
 
35
        relation-test.exe\
 
36
        shell-test.exe  \
 
37
        slist-test.exe  \
 
38
        spawn-test.exe  \
 
39
# strfunc-test doesn't compile with MSVC
 
40
#       strfunc-test.exe\
 
41
        string-test.exe \
 
42
# strtod-test doesn't either
 
43
#       strtod-test.exe \
 
44
        thread-test.exe \
 
45
        threadpool-test.exe\
 
46
        tree-test.exe   \
 
47
        type-test.exe   \
 
48
        unicode-caseconv.exe \
 
49
        unicode-encoding.exe \
 
50
        uri-test.exe
 
51
 
 
52
DLLS = \
 
53
        libmoduletestplugin_a.dll \
 
54
        libmoduletestplugin_b.dll
 
55
 
 
56
all :   $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
 
57
 
 
58
.c.exe :
 
59
        $(CC) $(CFLAGS) -c $<
 
60
        $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
 
61
 
 
62
libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
 
63
        $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
 
64
 
 
65
libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
 
66
        $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
 
67
 
 
68
check:  all
 
69
        for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p