summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2019-09-06 10:56:03 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-10 11:20:36 +1000
commit380048df64255e869d168b0bf4ebc4b6138a6eb2 (patch)
tree28720662baed6bdf118150e55e4720a511ba2bc2
parente9af6f5f886337d0a366ac4d7f4a03ee1117cde0 (diff)
windows/Makefile: Make use of CFLAGS_EXTRA, LDFLAGS_EXTRA and SRC_MOD.
To be consistent with the unix port.
-rw-r--r--ports/windows/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/windows/Makefile b/ports/windows/Makefile
index 88d103e7b..e65c09c53 100644
--- a/ports/windows/Makefile
+++ b/ports/windows/Makefile
@@ -15,8 +15,8 @@ INC += -I$(TOP)
INC += -I$(BUILD)
# compiler settings
-CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -DUNIX -D__USE_MINGW_ANSI_STDIO=1 $(CFLAGS_MOD) $(COPT)
-LDFLAGS = $(LDFLAGS_MOD) -lm
+CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -std=gnu99 -DUNIX -D__USE_MINGW_ANSI_STDIO=1 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
+LDFLAGS = $(LDFLAGS_MOD) -lm $(LDFLAGS_EXTRA)
# Debugging/Optimization
ifdef DEBUG
@@ -40,6 +40,7 @@ SRC_C = \
realpath.c \
init.c \
sleep.c \
+ $(SRC_MOD)
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))