Correct URL for mingw runtime sources.
[platform/upstream/glib.git] / tests / makefile.cygwin.in
1 ## Makefile for building the GLib test programs with egcs on cygwin.
2 ## Use: make -f makefile.cygwin check
3
4 OPTIMIZE = -g -O
5
6 ################################################################
7
8 # Nothing much configurable below
9
10 CC = gcc -mno-cygwin -mpentium
11
12 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
13
14 CFLAGS = $(OPTIMIZE) -I.. -DHAVE_CONFIG_H
15
16 TESTS = \
17         array-test.exe  \
18         date-test.exe   \
19         dirname-test.exe\
20         hash-test.exe   \
21         list-test.exe   \
22         node-test.exe   \
23         queue-test.exe  \
24         rand-test.exe   \
25         relation-test.exe\
26         slist-test.exe  \
27         stack-test.exe  \
28         string-test.exe \
29         strfunc-test.exe\
30         thread-test.exe \
31         tree-test.exe   \
32         type-test.exe
33
34 all :   $(TESTS)
35
36 .SUFFIXES: .c .exe
37
38 .c.exe :
39         $(CC) $(CFLAGS) -c $<
40         $(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER).gcc -lgthread-$(GLIB_VER).gcc
41
42 check:  all
43         @for P in $(TESTS) ; do echo $$P; ./$$P; done
44
45 clean:
46         -rm *.exe *.o