summaryrefslogtreecommitdiff
path: root/project/extras.mk
diff options
context:
space:
mode:
Diffstat (limited to 'project/extras.mk')
-rw-r--r--project/extras.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk
index 8e2cb61..caf26a3 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -1,3 +1,8 @@
CFLAGS_SHARED_ATTR += -DSLBT_PRE_ALPHA -DSLBT_BUILD
CFLAGS_STATIC_ATTR += -DSLBT_PRE_ALPHA -DSLBT_STATIC
CFLAGS_APP_ATTR += -DSLBT_APP
+
+CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(shell $(CC) $(CFLAGS) -dumpmachine)\"
+
+src/driver/slbt_driver_ctx.o: CFLAGS += $(CFLAGS_MACHINE)
+src/driver/slbt_driver_ctx.lo: CFLAGS += $(CFLAGS_MACHINE)