C unit test examples for Evergreen
[Evergreen.git] / Open-ILS / src / c-apps / tests / Makefile.am
1 export DEF_LDFLAGS = -L. -L$(TMP) -L$(OPENSRF_LIBS)
2 export DEF_CFLAGS = -D_LARGEFILE64_SOURCE -pipe -g -Wall -O2 -fPIC -I@top_srcdir@/include -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS)  -I$(LIBXML2_HEADERS)/libxml  -I$(TMP) -I$(OPENSRF_HEADERS)
3 export DEF_LDLIBS = -lopensrf
4
5 COMMON = testsuite.c
6 AM_CFLAGS = $(DEF_CFLAGS) -DOSRF_LOG_PARAMS
7 AM_LDFLAGS = $(DEF_LDLIBS) -L$(DBI_LIBS)
8
9 TESTS = check_util check_idl
10 check_PROGRAMS = check_util check_idl
11
12 check_util_SOURCES = $(COMMON) check_util.c
13 check_util_CFLAGS = $(AM_CFLAGS)
14 check_util_LDFLAGS = $(AM_LDFLAGS) -loils_idl -loils_utils -lcheck
15 check_util_DEPENDENCIES = ../liboils_idl.la ../liboils_utils.la
16
17 check_idl_SOURCES = $(COMMON) check_idl.c
18 check_idl_CFLAGS = $(AM_CFLAGS)
19 check_idl_LDFLAGS = $(AM_LDFLAGS) -loils_idl -loils_utils -lcheck
20 check_idl_DEPENDENCIES = ../liboils_idl.la ../liboils_utils.la
21