Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.
[platform/upstream/glib.git] / tests / makefile.mingw.in
1 ## Makefile for building the GLib test programs with gcc for mingw.
2 ## Use: make -f makefile.mingw check
3
4 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
5
6 TOP = ../..
7
8 include ../build/win32/make.mingw
9
10 ################################################################
11
12 # Nothing much configurable below
13
14 INCLUDES = -I .. 
15 DEFINES = -DHAVE_CONFIG_H
16
17 TESTS = \
18         array-test.exe  \
19         date-test.exe   \
20         dirname-test.exe\
21         gio-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         shell-test.exe  \
29         slist-test.exe  \
30         spawn-test.exe  \
31         strfunc-test.exe\
32         string-test.exe \
33         thread-test.exe \
34         threadpool-test.exe\
35         tree-test.exe   \
36         type-test.exe
37
38 all:    $(TESTS)
39
40 makefile.mingw: makefile.mingw.in
41         sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
42             -e 's,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@,' <$< >$@
43
44 .SUFFIXES: .c .exe
45
46 .c.exe:
47         $(CC) $(CFLAGS) -c $<
48         $(CC) $(CFLAGS) -o $@ $< -L .. -lglib-$(GLIB_VER) -L ../gthread -lgthread-$(GLIB_VER)
49
50 check:  all
51         @for P in $(TESTS) ; do echo $$P; ./$$P; done
52         @echo All tests successful.
53
54 clean::
55         -rm *.exe *.o