Add -DTHIRD_PARTY to CFLAGS so as to configure system headers.

EC includes such as common.h are required for CONFIG_* defines,
which configure system headers, e.g. assert.h includes "common.h".
This means that third_party code would need broader include paths
beyond -Ibuiltin.  This is not desirable.

This change adds a -DTHIRD_PARTY to the tpm2 library and works
in tandem with a corresponding change to builtin/ that
guards against inclusion of platform headers.

The build environment will have to pass appropriate
-DCONFIG_* via CFLAGS to third_party libraries in order
to get the desired platform behavior.

BRANCH=none
BUG=chrome-os-partner:43025,chrome-os-partner:47524,chrome-os-partner:53782
TEST=compilation succeeds

Change-Id: If291dabf7cbb825ea625c8e37f81d6c95737430b
Signed-off-by: nagendra modadugu <ngm@google.com>
Reviewed-on: https://chromium-review.googlesource.com/347382
Commit-Ready: Nagendra Modadugu <ngm@google.com>
Tested-by: Nagendra Modadugu <ngm@google.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
diff --git a/Makefile b/Makefile
index 6eb8b61..c1be6b8 100644
--- a/Makefile
+++ b/Makefile
@@ -303,6 +303,8 @@
 SOURCES += stubs_hash.c
 SOURCES += stubs_sym.c
 CFLAGS += -DEMBEDDED_MODE
+# Configure system headers appropriately.
+CFLAGS += -DTHIRD_PARTY
 ifneq ($(ROOTDIR),)
 CFLAGS += -I$(ROOTDIR)
 endif