Home | History | Annotate | Line # | Download | only in lib
      1 # Makefile.am
      2 #
      3 #       The Initial Developer of the Original Code is International
      4 #       Business Machines Corporation. Portions created by IBM
      5 #       Corporation are Copyright (C) 2005, 2006 International Business
      6 #       Machines Corporation. All Rights Reserved.
      7 #
      8 #       This program is free software; you can redistribute it and/or modify
      9 #       it under the terms of the Common Public License as published by
     10 #       IBM Corporation; either version 1 of the License, or (at your option)
     11 #       any later version.
     12 #
     13 #       This program is distributed in the hope that it will be useful,
     14 #       but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16 #       Common Public License for more details.
     17 #
     18 #       You should have received a copy of the Common Public License
     19 #       along with this program; if not, a copy can be viewed at
     20 #       http://www.opensource.org/licenses/cpl1.0.php.
     21 #
     22 
     23 # Gettext support
     24 localedir		=	$(datadir)/locale
     25 
     26 # Libraries to build
     27 lib_LTLIBRARIES		= 	libtpm_unseal.la 
     28 noinst_LTLIBRARIES	=	libtpm_tspi.la	\
     29 				libtpm_utils.la
     30 
     31 #
     32 # Common build flags (with gettext support)
     33 AM_CPPFLAGS		=	-I$(top_srcdir)/include -D_LINUX -DLOCALEDIR=\"$(localedir)\"
     34 
     35 if TSS_LIB_IS_12
     36 AM_CPPFLAGS		+=	-DTSS_LIB_IS_12
     37 endif
     38 
     39 #
     40 # Utility library
     41 libtpm_utils_la_SOURCES	=	tpm_utils.c \
     42 				tpm_log.c
     43 
     44 #
     45 # TSPI interface library
     46 libtpm_tspi_la_SOURCES	=	tpm_tspi.c
     47 libtpm_tspi_la_LIBADD	=	libtpm_utils.la @INTLLIBS@
     48 
     49 #
     50 # PKCS#11 interface library
     51 if P11_SUPPORT
     52 noinst_LTLIBRARIES	+=	libtpm_pkcs11.la
     53 
     54 libtpm_pkcs11_la_SOURCES=	tpm_pkcs11.c
     55 libtpm_pkcs11_la_LIBADD	=	libtpm_utils.la @INTLLIBS@
     56 endif
     57 
     58 #
     59 # Installed Libraries
     60 
     61 #
     62 # Libtool -version-info flag usage rules
     63 # This flag accepts an argument of the form current[:revision[:age]]. 
     64 # So, passing -version-info 3:12:1 sets current to 3, revision to 12, and age to 1.
     65 # If either revision or age are omitted, they default to 0. Also note that age must 
     66 # be less than or equal to the current interface number.
     67 # Here are a set of rules to help you update your library version information:
     68 #   1. Start with version information of 0:0:0 for each libtool library.
     69 #   2. Update the version information only immediately before a public release of your 
     70 #	software. More frequent updates are unnecessary, and only guarantee that the 
     71 #	current interface number gets larger faster.
     72 #   3. If the library source code has changed at all since the last update, then 
     73 #	increment revision (c:r:a becomes c:r+1:a).
     74 #   4. If any interfaces have been added, removed, or changed since the last update, 
     75 #	increment current, and set revision to 0.
     76 #   5. If any interfaces have been added since the last public release, then increment age.
     77 #   6. If any interfaces have been removed since the last public release, then set age to 0.  
     78 
     79 #
     80 # Unseal library - for addition to existing apps, counter part of seal cmd
     81 libtpm_unseal_la_SOURCES =	tpm_unseal.c
     82 libtpm_unseal_la_LDFLAGS =	-shared -version-info 1:0:0
     83 libtpm_unseal_la_LIBADD  =	-ltspi  libtpm_tspi.la -lcrypto @INTLLIBS@
     84