82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
# CONFIG.Common.cygwin-x86
|
|
#
|
|
# $Revision-Id$
|
|
# This file is maintained by the build community.
|
|
#
|
|
# Definitions for cygwin-x86 target builds
|
|
# Sites may override these definitions in CONFIG_SITE.Common.cygwin-x86
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Unix targets
|
|
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
|
|
|
OS_CLASS = cygwin32
|
|
ARCH_CLASS = x86
|
|
|
|
# Definitions used when COMMANDLINE_LIBRARY is READLINE
|
|
LDLIBS_READLINE = -lreadline -lcurses
|
|
|
|
POSIX_CPPFLAGS = -D_POSIX_THREADS -D_POSIX_TIMERS
|
|
#POSIX_CPPFLAGS += -D_POSIX_SOURCE
|
|
POSIX_LDLIBS += -lpthread
|
|
|
|
ARCH_DEP_CFLAGS += -m32
|
|
ARCH_DEP_LDFLAGS += -m32
|
|
|
|
# Compiler defines _X86_ 1
|
|
# Compiler defines __MSVCRT__ 1
|
|
# Compiler defines __CYGWIN__ 1
|
|
# Compiler defines __CYGWIN32__ 1
|
|
# Compiler defines __unix__ 1
|
|
# Compiler defines __unix 1
|
|
# Compiler defines unix 1
|
|
|
|
OP_SYS_CPPFLAGS += -DCYGWIN32
|
|
|
|
EXE=.exe
|
|
|
|
VISC_DLL_NO = -DEPICS_DLL_NO
|
|
VISC_DLL_YES =
|
|
VISC_DLL = $(VISC_DLL_$(SHARED_LIBRARIES))
|
|
STATIC_CFLAGS_YES= $(VISC_DLL)
|
|
STATIC_CFLAGS_NO= $(VISC_DLL) -D_DLL
|
|
STATIC_CXXFLAGS_YES= $(VISC_DLL)
|
|
STATIC_CXXFLAGS_NO= $(VISC_DLL) -D_DLL
|
|
|
|
# adjust names of libraries to build
|
|
#
|
|
# But: if there are no objects LIBRARY_LD_OBJS to include
|
|
# in this library (may be for e.g. base/src/libCompat
|
|
# on some archs), don't define (and build) any library!
|
|
SHRLIB_PREFIX =
|
|
SHRLIB_SUFFIX_BASE = .dll
|
|
SHRLIB_SUFFIX = $(SHRLIB_SUFFIX_BASE)
|
|
SHRLIBNAME_YES = $(BUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
|
|
TESTSHRLIBNAME_YES = $(TESTBUILD_LIBRARY:%=%$(SHRLIB_SUFFIX))
|
|
LOADABLE_SHRLIBNAME = $(LOADABLE_BUILD_LIBRARY:%=%$(LOADABLE_SHRLIB_SUFFIX))
|
|
|
|
#
|
|
# When SHARED_LIBRARIES is YES we are building a DLL link library
|
|
# and when SHARED_LIBRARIES is NO we are building an object library
|
|
#
|
|
LIB_PREFIX=
|
|
LIB_SUFFIX=.lib
|
|
DLL_LINK_LIBNAME_YES = $(BUILD_LIBRARY:%=%$(LIB_SUFFIX))
|
|
DLL_LINK_LIBNAME = $(DLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
|
|
TESTDLL_LINK_LIBNAME_YES = $(TESTBUILD_LIBRARY:%=%$(LIB_SUFFIX))
|
|
TESTDLL_LINK_LIBNAME = $(TESTDLL_LINK_LIBNAME_$(SHARED_LIBRARIES))
|
|
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)
|
|
|
|
|
|
# Cygwin supports the sunrpc package in versions before 1.7.
|
|
# Cygwin supports the tirpc (Transport Independent RPC) package in versions 1.7 and later.
|
|
# uname -r return a string like "1.76(0230/5/3)"
|
|
CYGWIN_RPC_LIB= $(if $(findstring 1.5,$(shell uname -r)),rpc,tirpc)
|
|
|