aboutsummaryrefslogtreecommitdiffstats
path: root/make/mingw.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/mingw.mk')
-rw-r--r--make/mingw.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/mingw.mk b/make/mingw.mk
index 9689ef94..20d648b0 100644
--- a/make/mingw.mk
+++ b/make/mingw.mk
@@ -24,10 +24,10 @@ define compile
-c $(1) -o $(call src_to_obj,$(1))
endef
-# 1 2
-# Usage: $(call c_compile,src,includes)
+# 1 2 3
+# Usage: $(call c_compile,src,includes,xflags)
define c_compile
- $(CC) $(CPPFLAGS) $(CFLAGS) \
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(3) \
$(call depflags,$(basename $(call src_to_obj,$(1)))) \
$(foreach I,$(2),-I$(I)) \
-c $(1) -o $(call c_src_to_obj,$(1))