2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / eglib / test / Makefile.am
index f8b98668d4c06f6aa9f8db971ca13e2c1f5b9273..c2bebbf738224c43c3e8fa842ceb531b29b46007 100644 (file)
@@ -1,24 +1,42 @@
 noinst_PROGRAMS = test-eglib test-glib
 
 SOURCES = \
-       test.c \
-       test.h \
-       tests.h \
-       driver.c \
-       hashtable.c \
-       string-util.c \
-       string.c \
-       slist.c \
-       ptrarray.c
+       test.c          \
+       test.h          \
+       tests.h         \
+       driver.c        \
+       hashtable.c     \
+       string-util.c   \
+       string.c        \
+       slist.c         \
+       sizes.c         \
+       ptrarray.c      \
+       list.c          \
+       array.c         \
+       fake.c          \
+       path.c          \
+       queue.c         \
+       shell.c         \
+       spawn.c         \
+       timer.c         \
+       file.c
 
 test_eglib_SOURCES = $(SOURCES)
 test_glib_SOURCES = $(SOURCES)
 
-test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I../src
-test_eglib_LDADD = -L../src -leglib
+test_eglib_CFLAGS = -Wall -Werror -D_FORTIFY_SOURCE=2 -I$(srcdir)/../src -DDRIVER_NAME=\"EGlib\"
+test_eglib_LDADD = ../src/libeglib.la
 
-test_glib_CFLAGS = `pkg-config --cflags glib-2.0`
+test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
 test_glib_LDFLAGS = `pkg-config --libs glib-2.0`
 
 MAINTAINERCLEANFILES = Makefile.in
 
+run-glib: all
+       ./test-glib
+
+run-eglib: all
+       ./test-eglib
+
+run-both: run-glib run-eglib
+