windows/Makefile: Make use of CFLAGS_EXTRA, LDFLAGS_EXTRA and SRC_MOD.

To be consistent with the unix port.
This commit is contained in:
Andrew Leech 2019-09-06 10:56:03 +10:00 committed by Damien George
parent e9af6f5f88
commit 380048df64

View File

@ -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))