| 1 |
## The copyright in this software is being made available under the BSD License, |
| 2 |
## included below. This software may be subject to other third party and |
| 3 |
## contributor rights, including patent rights, and no such rights are granted |
| 4 |
## under this license. |
| 5 |
## |
| 6 |
## Copyright (c) Intel Corporation |
| 7 |
## |
| 8 |
## All rights reserved. |
| 9 |
## |
| 10 |
## BSD License |
| 11 |
## |
| 12 |
## Redistribution and use in source and binary forms, with or without modification, |
| 13 |
## are permitted provided that the following conditions are met: |
| 14 |
## |
| 15 |
## Redistributions of source code must retain the above copyright notice, this list |
| 16 |
## of conditions and the following disclaimer. |
| 17 |
## |
| 18 |
## Redistributions in binary form must reproduce the above copyright notice, this |
| 19 |
## list of conditions and the following disclaimer in the documentation and/or |
| 20 |
## other materials provided with the distribution. |
| 21 |
## |
| 22 |
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" |
| 23 |
## AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 24 |
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 25 |
## DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| 26 |
## ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 27 |
## (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 28 |
## LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 29 |
## ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 |
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 31 |
## SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 |
|
| 33 |
include src.mk |
| 34 |
|
| 35 |
PLATFORM_INC = -I $(srcdir)/Platform/include \ |
| 36 |
-I $(srcdir)/Platform/include/prototypes |
| 37 |
SIMULATOR_INC = -I $(srcdir)/Simulator/include \ |
| 38 |
-I $(srcdir)/Simulator/include/prototypes |
| 39 |
TPM_INC = -I $(srcdir)/tpm/include \ |
| 40 |
-I $(srcdir)/tpm/include/prototypes |
| 41 |
|
| 42 |
libplatform = Platform/src/libplatform.a |
| 43 |
libtpm = tpm/src/libtpm.a |
| 44 |
tpm2_simulator = Simulator/src/tpm2-simulator |
| 45 |
|
| 46 |
bin_PROGRAMS = $(tpm2_simulator) |
| 47 |
noinst_LIBRARIES = $(libplatform) $(libtpm) |
| 48 |
|
| 49 |
Platform_src_libplatform_a_CFLAGS = $(EXTRA_CFLAGS) $(PLATFORM_INC) $(TPM_INC) |
| 50 |
Platform_src_libplatform_a_SOURCES = $(PLATFORM_C) $(PLATFORM_H) |
| 51 |
|
| 52 |
Simulator_src_tpm2_simulator_CFLAGS = $(EXTRA_CFLAGS) $(PLATFORM_INC) \ |
| 53 |
$(TPM_INC) $(SIMULATOR_INC) $(LIBCRYPTO_CFLAGS) $(PTHREAD_CFLAGS) |
| 54 |
# the weird / duplicate static library is necessary for dealing with the |
| 55 |
# circular dependency beetween libplatform and libtpm |
| 56 |
Simulator_src_tpm2_simulator_LDADD = $(libplatform) $(libtpm) \ |
| 57 |
$(libplatform) $(LIBCRYPTO_LIBS) $(PTHREAD_LIBS) @ADDITIONAL_LIBS@ |
| 58 |
Simulator_src_tpm2_simulator_SOURCES = $(SIMULATOR_C) $(SIMULATOR_H) |
| 59 |
|
| 60 |
tpm_src_libtpm_a_CFLAGS = $(EXTRA_CFLAGS) $(PLATFORM_INC) $(TPM_INC) \ |
| 61 |
$(LIBCRYPTO_CFLAGS) |
| 62 |
tpm_src_libtpm_a_SOURCES = $(TPM_C) $(TPM_H) $(PLATFORM_H) |