From 8fab100df6c70a8c52c5267de75393c72e328056 Mon Sep 17 00:00:00 2001 From: midipix Date: Mar 18 2016 07:37:38 +0000 Subject: project: host heuristics: provide a fallback (cross-)host via -dumpmachine. --- 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)