glib.h New functions for conversion between UTF-8 and the encoding
[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 -fnative-struct
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         strfunc-test.exe\
28         string-test.exe \
29         thread-test.exe \
30         tree-test.exe   \
31         type-test.exe
32
33 all :   $(TESTS)
34
35 .SUFFIXES: .c .exe
36
37 .c.exe :
38         $(CC) $(CFLAGS) -c $<
39         $(CC) $(CFLAGS) -o $@ $< -L.. -lglib-$(GLIB_VER) -lgthread-$(GLIB_VER)
40
41 check:  all
42         @for P in $(TESTS) ; do echo $$P; ./$$P; done
43
44 clean:
45         -rm *.exe *.o