Merge branch 'master' of github.com:mono/mono
[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         unicode.c       \
25         utf8.c          \
26         endian.c        \
27         module.c        \
28         memory.c
29
30 test_eglib_SOURCES = $(SOURCES)
31
32 test_eglib_CFLAGS = -Wall -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -I../src -DDRIVER_NAME=\"EGlib\"
33 test_eglib_LDADD = ../src/libeglib.la
34
35 run-eglib: all
36         ./test-eglib
37
38 if HAVE_GLIB
39
40 noinst_PROGRAMS = test-glib test-eglib
41
42 test_glib_SOURCES = $(SOURCES)
43
44 test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
45 test_glib_LDFLAGS = `pkg-config --libs glib-2.0 gmodule-2.0`
46
47 run-glib: all
48         ./test-glib
49
50 run-both: run-glib run-eglib
51
52 else
53
54 noinst_PROGRAMS = test-eglib
55
56 run-both: run-eglib
57
58 endif
59
60 MAINTAINERCLEANFILES = Makefile.in