Fixups for ancient versions of mingw
Tested with mingw32-4.8.2 and make 3.79.1 running on Windows XP
This commit is contained in:
parent
e209890343
commit
154ca40451
|
@ -1,5 +1,5 @@
|
|||
#******************************************************************************
|
||||
# config.mingw.mk Recorder project
|
||||
# config.mingw.mk Recorder project
|
||||
#******************************************************************************
|
||||
#
|
||||
# File Description:
|
||||
|
@ -31,10 +31,9 @@ include $(BUILD)config.gnu.mk
|
|||
# MinGW does not have --line-buffered for colorized builds
|
||||
LINE_BUFFERED=
|
||||
|
||||
|
||||
# Windows overrides for extensions
|
||||
EXE_EXT= .exe
|
||||
LIB_EXT= .lib
|
||||
LIB_EXT= .a
|
||||
DLL_EXT= .dll
|
||||
|
||||
# MinGW has no 'install' program
|
||||
|
|
|
@ -63,8 +63,8 @@ PREFIX_DLL?=$(PREFIX_LIB)
|
|||
# to the relevant GNU option names as follows:
|
||||
# CCFLAGS_STD=$(CC_FLAGS_STD_$(CC_STD))
|
||||
# CCFLAGS_STD_gnu11=[whatever option is needed here]
|
||||
CC_STD=gnu11
|
||||
CXX_STD=gnu++14
|
||||
CC_STD ?=gnu11
|
||||
CXX_STD ?=gnu++11
|
||||
|
||||
# Compilation flags
|
||||
DEFINES_debug= DEBUG
|
||||
|
|
4
rules.mk
4
rules.mk
|
@ -332,7 +332,11 @@ ifdef TARGET
|
|||
DEPENDENCIES=$(SOURCES:%=$(OBJDIR)/%$(OBJ_EXT).d)
|
||||
OBJDIR_DEPS=$(OBJDIR)/%.deps/.mkdir
|
||||
|
||||
ifeq (3.80,$(firstword $(sort $(MAKE_VERSION) 3.80)))
|
||||
OBJ_DEPS=$(OBJDIR_DEPS) $(MAKEFILE_DEPS) | hello prebuild
|
||||
else
|
||||
OBJ_DEPS=$(OBJDIR_DEPS) $(MAKEFILE_DEPS) hello prebuild
|
||||
endif
|
||||
|
||||
ifndef DEPFLAGS
|
||||
$(OBJDIR)/%.c$(OBJ_EXT).d: %.c $(OBJ_DEPS)
|
||||
|
|
Loading…
Reference in New Issue