1# Copyright (c) 2010-2012 United States Government, as represented by
2# the Secretary of Defense.  All rights reserved.
3#
4# THIS SOFTWARE AND ITS DOCUMENTATION ARE PROVIDED AS IS AND WITHOUT
5# ANY EXPRESS OR IMPLIED WARRANTIES WHATSOEVER. ALL WARRANTIES
6# INCLUDING, BUT NOT LIMITED TO, PERFORMANCE, MERCHANTABILITY, FITNESS
7# FOR A PARTICULAR  PURPOSE, AND NONINFRINGEMENT ARE HEREBY
8# DISCLAIMED. USERS ASSUME THE ENTIRE RISK AND LIABILITY OF USING THE
9# SOFTWARE.
10#
11
12XEN_ROOT=../..
13
14TARGET=vtpm.a
15OBJS=vtpm.o vtpm_cmd.o vtpmblk.o vtpm_pcrs.o
16
17
18CPPFLAGS+=-I../tpm_emulator-$(XEN_TARGET_ARCH)/build
19CPPFLAGS+=-I../tpm_emulator-$(XEN_TARGET_ARCH)/tpm
20CPPFLAGS+=-I../tpm_emulator-$(XEN_TARGET_ARCH)/crypto
21CPPFLAGS+=-I../tpm_emulator-$(XEN_TARGET_ARCH)
22
23$(TARGET): $(OBJS)
24	ar -cr $@ $(OBJS)
25
26$(OBJS): vtpm_manager.h
27
28vtpm_manager.h:
29	ln -s ../vtpmmgr/vtpm_manager.h vtpm_manager.h
30
31clean:
32	rm -f $(TARGET) $(OBJS) vtpm_manager.h
33
34.PHONY: clean
35