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

Unified Diff: src/platform/tpm_lite/src/tlcl/Makefile

Issue 1558015: 1. Changes and additions for autotest; 2. Two-level write-free locking test. (Closed)
Patch Set: gauravsh@chromium.org 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/tpm_lite/src/testsuite/writelimit.c ('k') | src/platform/tpm_lite/src/tlcl/generator.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/tpm_lite/src/tlcl/Makefile
diff --git a/src/platform/tpm_lite/src/tlcl/Makefile b/src/platform/tpm_lite/src/tlcl/Makefile
index a80dd8f8f72793ed963e7e30b36abd8e37db5a37..0a4500bf10943862b1e4609cddf868cb25629eb5 100644
--- a/src/platform/tpm_lite/src/tlcl/Makefile
+++ b/src/platform/tpm_lite/src/tlcl/Makefile
@@ -3,7 +3,8 @@
# found in the LICENSE file.
INCLUDEDIRS = -I../include -I../../../../third_party/tpm-emulator/tpmd/unix
-CFLAGS += -g -Wall -Werror $(INCLUDEDIRS)
+LOCAL_CFLAGS = -g -Wall -Werror $(INCLUDEDIRS)
+CFLAGS += $(LOCAL_CFLAGS)
# CFLAGS += -ansi -pedantic
ifeq ($(USE_TPM_EMULATOR),1)
CFLAGS += -DUSE_TPM_EMULATOR=1
@@ -12,6 +13,7 @@ CFLAGS += -DUSE_TPM_EMULATOR=0
endif
CC ?= cc
+HOSTCC = cc
libtlcl.a: tlcl.o
ar rcs libtlcl.a tlcl.o
@@ -22,7 +24,8 @@ structures.h: generator
./generator > structures.h
generator: generator.c ../include/tlcl.h
- $(CC) $(CFLAGS) -fpack-struct generator.c -o generator
+ $(HOSTCC) $(LOCAL_CFLAGS) -I$(ROOT)/usr/include \
+ -fpack-struct generator.c -o generator
clean:
rm -f generator *.o *.a structures.h *~
« no previous file with comments | « src/platform/tpm_lite/src/testsuite/writelimit.c ('k') | src/platform/tpm_lite/src/tlcl/generator.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698