
Override of OP_SYS_LDLIBS prevented LDLIBS_READLINE from having an effect. Recent readline doesn't need curses
87 lines
2.6 KiB
Plaintext
87 lines
2.6 KiB
Plaintext
# CONFIG.Common.win32-x86-mingw
|
|
#
|
|
# Definitions for win32-x86-mingw target builds
|
|
# Sites may override these definitions in CONFIG_SITE.Common.win32-x86-mingw
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Unix targets
|
|
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
|
|
|
OS_CLASS = WIN32
|
|
ARCH_CLASS = x86
|
|
POSIX = NO
|
|
|
|
# Definitions used when COMMANDLINE_LIBRARY is READLINE
|
|
LDLIBS_READLINE = -lreadline -ltermcap
|
|
|
|
ARCH_DEP_CFLAGS += -m32
|
|
ARCH_DEP_LDFLAGS += -m32
|
|
|
|
# Compiler defines _X86_ 1
|
|
# Compiler defines __MSVCRT__ 1
|
|
# Compiler defines __MINGW32__ 1
|
|
# Compiler defines __WIN32 1
|
|
# Compiler defines __WINNT 1
|
|
# Compiler defines __WINNT__ 1
|
|
# Compiler defines __WIN32__ 1
|
|
# Compiler defines _WIN32 1
|
|
# Compiler defines WIN32 1
|
|
# Compiler defines WINNT 1
|
|
# Compiler does not define __unix __unix__ unix
|
|
|
|
# Override for -DUNIX from CONFIG.Common.UnixCommon
|
|
OP_SYS_CPPFLAGS = -D_MINGW -D__USE_MINGW_ANSI_STDIO
|
|
|
|
EXE = .exe
|
|
RES = .coff
|
|
|
|
# Use .o for static object files, .obj for shared library object files
|
|
OBJ_NO = .o
|
|
OBJ_YES = .obj
|
|
OBJ = $(OBJ_$(SHARED_LIBRARIES))
|
|
|
|
COMPILE.c += $(if $(filter %$(OBJ),$@),-o $@)
|
|
COMPILE.cpp += $(if $(filter %$(OBJ),$@),-o $@)
|
|
HDEPENDS_ARCHFLAGS = -MT $*$(OBJ)
|
|
|
|
BUILD_DLL_CFLAGS_YES = -DEPICS_BUILD_DLL
|
|
BUILD_DLL_CFLAGS_NO =
|
|
BUILD_DLL_CFLAGS = $(BUILD_DLL_CFLAGS_$(SHARED_LIBRARIES))
|
|
STATIC_CFLAGS_YES = $(BUILD_DLL_CFLAGS)
|
|
STATIC_CFLAGS_NO = $(BUILD_DLL_CFLAGS) -DEPICS_CALL_DLL
|
|
STATIC_CXXFLAGS_YES = $(BUILD_DLL_CFLAGS)
|
|
STATIC_CXXFLAGS_NO = $(BUILD_DLL_CFLAGS) -DEPICS_CALL_DLL
|
|
|
|
# Adjust the names of the libraries to build
|
|
#
|
|
# When SHARED_LIBRARIES is YES we build a DLL and its stub library
|
|
#
|
|
SHRLIB_PREFIX =
|
|
SHRLIB_SUFFIX_BASE = .dll
|
|
SHRLIB_SUFFIX = $(SHRLIB_SUFFIX_BASE)
|
|
SHRLIBNAME_YES = $(BUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
|
|
TESTSHRLIBNAME_YES = $(TESTBUILD_LIBRARY:%=%$(SHRLIB_SUFFIX_BASE))
|
|
LOADABLE_SHRLIB_PREFIX =
|
|
LOADABLE_SHRLIB_SUFFIX = $(SHRLIB_SUFFIX_BASE)
|
|
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=%$(LOADABLE_SHRLIB_SUFFIX))
|
|
|
|
DLLSTUB_PREFIX = lib
|
|
DLLSTUB_SUFFIX = .dll.a
|
|
DLLSTUB_LIBNAME_YES = $(BUILD_LIBRARY:%=$(DLLSTUB_PREFIX)%$(DLLSTUB_SUFFIX))
|
|
DLLSTUB_LIBNAME = $(DLLSTUB_LIBNAME_$(SHARED_LIBRARIES))
|
|
TESTDLLSTUB_LIBNAME_YES = $(TESTBUILD_LIBRARY:%=$(DLLSTUB_PREFIX)%$(DLLSTUB_SUFFIX))
|
|
TESTDLLSTUB_LIBNAME = $(TESTDLLSTUB_LIBNAME_$(SHARED_LIBRARIES))
|
|
|
|
# When SHARED_LIBRARIES is NO we build a static archive library
|
|
#
|
|
LIB_PREFIX =
|
|
LIB_SUFFIX = .lib
|
|
LIBNAME_NO = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
|
|
LIBNAME = $(LIBNAME_$(SHARED_LIBRARIES))
|
|
TESTLIBNAME_NO = $(TESTBUILD_LIBRARY:%=%$(LIB_SUFFIX))
|
|
TESTLIBNAME = $(TESTLIBNAME_$(SHARED_LIBRARIES))
|
|
|
|
# dll install location
|
|
INSTALL_SHRLIB = $(INSTALL_BIN)
|
|
|