C unit test examples for Evergreen
[Evergreen.git] / Open-ILS / src / c-apps / Makefile.am
1 #-----------------------------------------------------------
2 # Makefile.am for Open-ILS/src/c-apps
3 # Author: Kevin Beswick (kevinbeswick00@gmail.com)
4 # Process this file with automake to generate Makefile.in
5 #-----------------------------------------------------------
6
7 SUBDIRS = tests
8
9 AM_CFLAGS = $(DEF_CFLAGS) -DOSRF_LOG_PARAMS -I@top_srcdir@/include/
10 AM_LDFLAGS = $(DEF_LDFLAGS) -L$(DBI_LIBS) -lopensrf
11
12 bin_PROGRAMS = oils_dataloader dump_idl idlval test_json_query test_qstore
13 oils_dataloader_SOURCES = oils_dataloader.c
14 oils_dataloader_LDFLAGS = $(AM_LDFLAGS) -loils_idl
15 oils_dataloader_DEPENDENCIES = liboils_idl.la liboils_utils.la
16
17 dump_idl_SOURCES = dump_idl.c
18 dump_idl_LDFLAGS = $(AM_LDFLAGS) -loils_idl
19 dump_idl_DEPENDENCIES = liboils_idl.la liboils_utils.la
20
21 idlval_SOURCES = idlval.c oils_sql.c
22 idlval_CFLAGS = $(AM_CFLAGS)
23 idlval_LDFLAGS = $(AM_LDFLAGS) -loils_idl -loils_utils
24 idlval_DEPENDENCIES = liboils_idl.la liboils_utils.la
25
26 test_json_query_SOURCES = test_json_query.c oils_sql.c
27 test_json_query_CFLAGS = $(AM_CFLAGS)
28 test_json_query_LDFLAGS = $(AM_LDFLAGS) -loils_idl -loils_utils
29 test_json_query_DEPENDENCIES = liboils_idl.la liboils_utils.la
30
31 test_qstore_SOURCES = test_qstore.c buildSQL.c oils_buildq.c oils_execsql.c oils_sql.c oils_storedq.c 
32 test_qstore_CFLAGS = $(AM_CFLAGS)
33 test_qstore_LDFLAGS = $(AM_LDFLAGS) -loils_idl -loils_utils
34 test_qstore_DEPENDENCIES = liboils_idl.la liboils_utils.la
35
36 lib_LTLIBRARIES = liboils_idl.la liboils_utils.la oils_cstore.la oils_qstore.la oils_rstore.la oils_pcrud.la oils_auth.la
37
38 liboils_idl_la_SOURCES = oils_idl-core.c
39 liboils_idl_la_LDFLAGS = -version-info 2:0:0
40
41 liboils_utils_la_SOURCES = oils_utils.c oils_event.c
42 liboils_utils_la_LDFLAGS = -loils_idl -version-info 2:0:0
43
44 oils_cstore_la_SOURCES = oils_cstore.c oils_sql.c
45 oils_cstore_la_LDFLAGS = $(AM_LDFLAGS) -ldbi -ldbdpgsql -loils_utils -module -version-info 2:0:0
46 oils_cstore_la_DEPENDENCIES = liboils_utils.la
47
48 oils_qstore_la_SOURCES = oils_qstore.c oils_sql.c oils_storedq.c oils_buildq.c buildSQL.c oils_execsql.c
49 oils_qstore_la_LDFLAGS = $(AM_LDFLAGS) -ldbi -ldbdpgsql -loils_utils -module -version-info 2:0:0
50 oils_qstore_la_DEPENDENCIES = liboils_utils.la
51
52 oils_rstore_la_SOURCES = oils_rstore.c oils_sql.c
53 oils_rstore_la_LDFLAGS = $(AM_LDFLAGS) -ldbi -ldbdpgsql -loils_utils -module -version-info 2:0:0
54 oils_rstore_la_DEPENDENCIES = liboils_utils.la
55
56 oils_pcrud_la_SOURCES = oils_pcrud.c oils_sql.c
57 oils_pcrud_la_LDFLAGS = $(AM_LDFLAGS) -ldbi -ldbdpgsql -loils_utils -module -version-info 2:0:0
58 oils_pcrud_la_DEPENDENCIES = liboils_utils.la
59
60 oils_auth_la_SOURCES = oils_auth.c
61 oils_auth_la_LDFLAGS = -module -loils_utils -version-info 2:0:0
62 oils_auth_la_DEPENDENCIES = liboils_utils.la
63
64