2007-11-06 Andreas Faerber <andreas.faerber@web.de>
[mono.git] / eglib / test / Makefile.am
1 SOURCES = \
2         test.c          \
3         test.h          \
4         tests.h         \
5         driver.c        \
6         hashtable.c     \
7         string-util.c   \
8         string.c        \
9         slist.c         \
10         sizes.c         \
11         ptrarray.c      \
12         list.c          \
13         array.c         \
14         fake.c          \
15         path.c          \
16         queue.c         \
17         shell.c         \
18         spawn.c         \
19         timer.c         \
20         file.c          \
21         pattern.c       \
22         dir.c           \
23         markup.c        \
24         utf8.c          \
25         endian.c        \
26         module.c
27
28 test_eglib_SOURCES = $(SOURCES)
29
30 test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
31 test_eglib_LDADD = ../src/libeglib.la -ldl
32
33 run-eglib: all
34         ./test-eglib
35
36 if HAVE_GLIB
37
38 noinst_PROGRAMS = test-glib test-eglib
39
40 test_glib_SOURCES = $(SOURCES)
41
42 test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
43 test_glib_LDFLAGS = `pkg-config --libs glib-2.0 gmodule-2.0`
44
45 run-glib: all
46         ./test-glib
47
48 run-both: run-glib run-eglib
49
50 else
51
52 noinst_PROGRAMS = test-eglib
53
54 run-both: run-eglib
55
56 endif
57
58 MAINTAINERCLEANFILES = Makefile.in