Engine PKCS#11 initial commit
[keystone-linux/engine-pkcs11.git] / src / Makefile.am
1 MAINTAINERCLEANFILES = \
2         $(srcdir)/Makefile.in $(srcdir)/versioninfo.rc
3 EXTRA_DIST = Makefile.mak
5 engines_LTLIBRARIES = engine_pkcs11.la
7 OPENSSL_EXTRA_CFLAGS = \
8         -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H \
9         -DOPENSSL_NO_KRB5 -DL_ENDIAN -DTERMIO -DENGINE_DYNAMIC_SUPPORT \
10         -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
12 engine_pkcs11_la_SOURCES = \
13         hw_pkcs11.c engine_pkcs11.c engine_pkcs11.h  \
14         engine_pkcs11.exports
15 if WIN32
16 engine_pkcs11_la_SOURCES += versioninfo.rc
17 else
18 dist_noinst_DATA = versioninfo.rc
19 endif
20 engine_pkcs11_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_EXTRA_CFLAGS) $(OPENSSL_CFLAGS) \
21         $(LIBP11_CFLAGS)
22 engine_pkcs11_la_LIBADD = $(ENGINE_LINK) $(OPENSSL_LIBS) $(LIBP11_LIBS)
23 engine_pkcs11_la_LDFLAGS = $(AM_LDFLAGS) $(OPENSSL_EXTRA_LDFLAGS) \
24         -module -avoid-version \
25         -export-symbols "$(srcdir)/engine_pkcs11.exports" \
26         -no-undefined
28 install-data-hook:
29         rm -f "$(DESTDIR)$(enginesdir)/engine_pkcs11.la"
30         rm -f "$(DESTDIR)$(enginesdir)/engine_pkcs11.a"
31         rm -f "$(DESTDIR)$(enginesdir)/engine_pkcs11.dll.a"
33 RCCOMPILE = $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
34         $(AM_CPPFLAGS) $(CPPFLAGS)
35 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE)
37 .rc.lo:
38         $(LTRCCOMPILE) -i "$<" -o "$@"
40 .rc.o:
41         $(RCCOMPILE) -i "$<" -o "$@"