Index: native_client_sdk/src/resources/Makefile.example.template |
diff --git a/native_client_sdk/src/resources/Makefile.example.template b/native_client_sdk/src/resources/Makefile.example.template |
index 73f39963c27cf17556006038de4fd864eb7b3fd5..0a48b754f173542a44533b178d5dd6c24392cba8 100644 |
--- a/native_client_sdk/src/resources/Makefile.example.template |
+++ b/native_client_sdk/src/resources/Makefile.example.template |
@@ -72,13 +72,18 @@ endif |
[[ cflags = 'CFLAGS']] |
[[ ]] |
[[ ExpandDict(cflags, flags)]] |
+[[ for define in target.get('DEFINES', []):]] |
+{{cflags}} += -D{{define}} |
+[[ ]] |
[[ if 'CFLAGS_GCC' in target:]] |
ifneq ($(TOOLCHAIN),pnacl) |
{{cflags}} += {{' '.join(target['CFLAGS_GCC'])}} |
endif |
[[ ]] |
+[[]] |
{{sources}} = {{source_list}} |
+ |
# Build rules generated by macros from common.mk: |
[[if targets[0].get('DEPS'):]] |