Makefile.am 1.05 KB
Newer Older
1

Stef Walter's avatar
Stef Walter committed
2
INCLUDES = \
3 4 5 6
	-I$(top_builddir) \
	-I$(top_srcdir) \
	-DSRCDIR="\"$(srcdir)\"" \
	-DBUILDDIR="\"$(builddir)\"" \
Stef Walter's avatar
Stef Walter committed
7 8
	-DGCK_API_SUBJECT_TO_CHANGE \
	$(GLIB_CFLAGS)
9

Stef Walter's avatar
Stef Walter committed
10
LDADD =  \
11 12
	libmock-test-module.la \
	$(top_builddir)/gck/libgck-testable.la \
Stef Walter's avatar
Stef Walter committed
13
	$(top_builddir)/egg/libegg-test.la \
14
	$(top_builddir)/egg/libegg-hex.la \
Stef Walter's avatar
Stef Walter committed
15
	$(GTHREAD_LIBS) \
16
	$(GLIB_LIBS) \
17
	$(GIO_LIBS)
18

Stef Walter's avatar
Stef Walter committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32
TEST_PROGS = \
	test-gck-attributes \
	test-gck-module \
	test-gck-slot \
	test-gck-session \
	test-gck-object \
	test-gck-crypto \
	test-gck-uri \
	test-gck-enumerator \
	test-gck-modules

check_PROGRAMS = $(TEST_PROGS)

test: $(TEST_PROGS)
33
	gtester -k --verbose -m $(TEST_MODE) --g-fatal-warnings $(TEST_PROGS)
34

Stef Walter's avatar
Stef Walter committed
35
check-local: test
36

Stef Walter's avatar
Stef Walter committed
37
all-local: $(check_PROGRAMS)
38

39
lib_LTLIBRARIES = libmock-test-module.la
40

41
libmock_test_module_la_LDFLAGS = \
42 43
	-avoid-version

44
libmock_test_module_la_CFLAGS = \
45 46
	-I$(top_srcdir)/gck \
	-I$(top_srcdir) \
47 48
	$(GLIB_CFLAGS) \
	-DGCK_API_SUBJECT_TO_CHANGE
49

50 51
libmock_test_module_la_SOURCES = \
	mock-test-module.c
52

53
libmock_test_module_la_LIBADD = \
54
	$(top_builddir)/gck/libgck-testable.la