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