Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/platform/tpm_lite/src/testsuite/Makefile

Issue 870004: Many upgrades to tpm_lite. (Closed)
Patch Set: Fix makefile comment. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 LIBTLCL = ../tlcl/libtlcl.a 5 LIBTLCL = ../tlcl/libtlcl.a
6
7 ifeq ($(USE_TPM_EMULATOR),1)
8 ifeq ($(LOCAL_COMPILATION),1)
6 LIBTPM = ../../../../third_party/tpm-emulator/build/tpm/libtpm.a 9 LIBTPM = ../../../../third_party/tpm-emulator/build/tpm/libtpm.a
7 LIBCRYPTO = ../../../../third_party/tpm-emulator/build/crypto/libcrypto.a 10 LIBCRYPTO = ../../../../third_party/tpm-emulator/build/crypto/libcrypto.a
8 LIBTPMEMU = ../../../../third_party/tpm-emulator/build/tpmd/unix/libtpmemu.a 11 LIBTPMEMU = ../../../../third_party/tpm-emulator/build/tpmd/unix/libtpmemu.a
9 LIBS = $(LIBTLCL) $(LIBTPMEMU) $(LIBTPM) $(LIBCRYPTO) 12 else
13 LIBTPM = ${ROOT}/usr/lib/tpmemu/libtpm.a
14 LIBCRYPTO = ${ROOT}/usr/lib/tpmemu/libcrypto.a
15 LIBTPMEMU = ${ROOT}/usr/lib/tpmemu/libtpmemu.a
16 endif
17 LIBGMP = -lgmp
18 endif
19
20 LIBS = $(LIBTLCL) $(LIBTPMEMU) $(LIBTPM) $(LIBCRYPTO) $(LIBGMP)
10 21
11 CC ?= cc 22 CC ?= cc
23 CFLAGS += -Werror -Wall
24 #CFLAGS += -pedantic -ansi
12 25
13 readonly: readonly.o $(LIBS) 26 TESTS = tpmtest_readonly
14 » $(CC) -g readonly.o -o readonly $(LIBS) -lgmp
15 27
16 readonly.o: readonly.c 28 all: $(TESTS)
17 » cc -g -c -Werror -Wall -pedantic -ansi readonly.c -I../include 29
30 $(TESTS): tpmtest_%: %.o $(LIBS)
31 » $(CC) $(LDFLAGS) -g $< -o $@ $(LIBS)
32
33 .c.o:
34 » $(CC) $(CFLAGS) -g -c $< -I../include
18 35
19 clean: 36 clean:
20 » rm -f readonly *.o *~ 37 » rm -f $(TESTS) *.o *~
OLDNEW
« no previous file with comments | « src/platform/tpm_lite/src/include/tlcl.h ('k') | src/platform/tpm_lite/src/testsuite/readonly.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698