# # Copyright (c) 2005-2007 Alon Bar-Lev # All rights reserved. # # This software is available to you under a choice of one of two # licenses. You may choose to be licensed under the terms of the GNU # General Public License (GPL) Version 2, or the BSD license. # # GNU General Public License (GPL) Version 2 # =========================================== # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 # as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program (see the file COPYING.GPL included with this # distribution); if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # BSD License # ============ # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # o Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # o Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # o Neither the name of the nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # INCLUDES= \ -I$(top_srcdir)/include EXTRA_DIST= \ Makefile.w32-vc \ certificate.exports \ core.exports \ data.exports \ openssl.exports \ slotevent.exports \ token.exports pkgconfig_DATA=libpkcs11-helper-1.pc lib_LTLIBRARIES=libpkcs11-helper.la BUILT_SOURCES=pkcs11-helper.exports nodist_libpkcs11_helper_la_SOURCES= \ pkcs11-helper.exports libpkcs11_helper_la_SOURCES= \ common.h \ _pkcs11h-mem.h pkcs11h-mem.c \ _pkcs11h-sys.h pkcs11h-sys.c \ _pkcs11h-crypto.h pkcs11h-crypto.c \ _pkcs11h-threading.h pkcs11h-threading.c \ _pkcs11h-util.h pkcs11h-util.c \ _pkcs11h-session.h pkcs11h-session.c \ _pkcs11h-token.h pkcs11h-token.c \ _pkcs11h-certificate.h pkcs11h-certificate.c \ _pkcs11h-slotevent.h pkcs11h-slotevent.c \ _pkcs11h-core.h pkcs11h-core.c \ pkcs11h-data.c \ pkcs11h-serialization.c \ pkcs11h-openssl.c libpkcs11_helper_la_LDFLAGS= \ -version-info @LIBPKCS11_HELPER_LT_CURRENT@:@LIBPKCS11_HELPER_LT_REVISION@:@LIBPKCS11_HELPER_LT_AGE@ \ -export-symbols pkcs11-helper.exports \ -no-undefined pkcs11-helper.exports: \ ../config.h \ certificate.exports \ core.exports \ data.exports \ openssl.exports \ slotevent.exports \ token.exports cat core.exports > pkcs11-helper.exports if ENABLE_PKCS11H_CERTIFICATE cat certificate.exports >> pkcs11-helper.exports endif if ENABLE_PKCS11H_DATA cat data.exports >> pkcs11-helper.exports endif if ENABLE_PKCS11H_OPENSSL cat openssl.exports >> pkcs11-helper.exports endif if ENABLE_PKCS11H_SLOTEVENT cat slotevent.exports >> pkcs11-helper.exports endif if ENABLE_PKCS11H_TOKEN cat token.exports >> pkcs11-helper.exports endif if WIN32 mylibdir=$(libdir) if CYGWIN mylib_DATA=.libs/cygpkcs11-helper-1.dll.def .libs/cygpkcs11-helper-1.dll.def: libpkcs11-helper.la else mylib_DATA=.libs/libpkcs11-helper-1.dll.def .libs/libpkcs11-helper-1.dll.def: libpkcs11-helper.la endif endif clean-generic: -rm -fr pkcs11-helper.exports