Add new functions. Add new object files. Add threadpool-test. No need to
[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 ################################################################
5
6 # Nothing much configurable below
7
8 # cl -? describes the options
9 CC = cl -G5 -GF -Ox -W3 -MD -nologo
10
11 # No general LDFLAGS needed
12 LDFLAGS = /link
13
14 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
15
16 CFLAGS = -I.. -DHAVE_CONFIG_H
17
18 TESTS = \
19         array-test.exe  \
20         date-test.exe   \
21         dirname-test.exe\
22         hash-test.exe   \
23         list-test.exe   \
24         node-test.exe   \
25         queue-test.exe  \
26         rand-test.exe   \
27         relation-test.exe\
28         slist-test.exe  \
29         strfunc-test.exe\
30         string-test.exe \
31         thread-test.exe \
32         threadpool-test.exe\
33         tree-test.exe   \
34         type-test.exe
35
36 all :   $(TESTS)
37
38 .c.exe :
39         $(CC) $(CFLAGS) -c $<
40         $(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib ..\gthread-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
41
42 check:  all
43         for %p in ($(TESTS)) do %p
44
45 clean:
46         del *.exe
47         del *.obj
48         del *.dll
49         del *.lib
50         del *.err
51         del *.map
52         del *.sym
53         del *.exp
54         del *.pdb