Sun Sep 17 2000 Elliot Lee <sopwith@redhat.com> Define g_alloca() as an
[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         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 makefile.mingw: makefile.mingw.in
39         sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
40             -e 's,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@,' <$< >$@
41
42 .SUFFIXES: .c .exe
43
44 .c.exe:
45         $(CC) $(CFLAGS) -c $<
46         $(CC) $(CFLAGS) -o $@ $< -L .. -lglib-$(GLIB_VER) -L ../gthread -lgthread-$(GLIB_VER)
47
48 check:  all
49         @for P in $(TESTS) ; do echo $$P; ./$$P; done
50         @echo All tests successful.
51
52 clean::
53         -rm *.exe *.o