summaryrefslogtreecommitdiff
path: root/apps/Makefile.am
blob: 278ddf4949c77eb0bd6eef6e17767087afec4660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
NULL =

bin_PROGRAMS = xmlsec1

XMLSEC_LIBS = $(top_builddir)/src/libxmlsec1.la


# check if we use dynamic loading for xmlsec-crypto or not
if XMLSEC_NO_APPS_CRYPTO_DYNAMIC_LOADING

CRYPTO_DEPS = \
	$(top_builddir)/src/$(XMLSEC_CRYPTO)/lib$(XMLSEC_CRYPTO_LIB).la \
	$(NULL)    

CRYPTO_INCLUDES = \
	$(XMLSEC_CRYPTO_CFLAGS) \
	$(NULL)

CRYPTO_LD_FLAGS = \
	$(NULL)

CRYPTO_LD_ADD = \
	$(XMLSEC_CRYPTO_LIBS) \
	$(CRYPTO_DEPS) \
	$(NULL)

else

CRYPTO_DEPS =  \
	$(NULL)

CRYPTO_INCLUDES = \
	-DXMLSEC_CRYPTO_DYNAMIC_LOADING=1
	$(NULL)

CRYPTO_LD_FLAGS = \
	$(NULL)
    
CRYPTO_LD_ADD = \
	$(CRYPTO_DEPS) \
	$(NULL)

endif 


INCLUDES = \
	-DXMLSEC_CRYPTO=\"@XMLSEC_CRYPTO@\" \
	-DPACKAGE=\"@PACKAGE@\" \
	-I../include \
	-I$(top_srcdir)/include \
	$(XMLSEC_DEFINES) \
	$(XMLSEC_APP_DEFINES) \
	$(CRYPTO_INCLUDES) \
	$(LIBXSLT_CFLAGS) \
	$(LIBXML_CFLAGS) \
	$(XMLSEC_DL_INCLUDES) \
	$(NULL)

# xmlsec command line utility
xmlsec1_SOURCES = \
	xmlsec.c \
	crypto.c crypto.h \
	cmdline.c cmdline.h \
	$(NULL)


xmlsec1_LDFLAGS = \
	$(CRYPTO_LD_FLAGS) \
	@XMLSEC_STATIC_BINARIES@ \
	$(NULL)

xmlsec1_LDADD = \
	$(LIBXSLT_LIBS) \
	$(LIBXML_LIBS) \
	$(CRYPTO_LD_ADD) \
	$(XMLSEC_LIBS) \
	$(XMLSEC_DL_LIBS) \
	$(NULL)

xmlsec1_DEPENDENCIES = \
	$(CRYPTO_DEPS) \
	$(XMLSEC_LIBS) \
	$(NULL)