From 6e21f9d94ec219ff2d8507a4c23f56083338ccbf Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Tue, 22 Mar 2005 18:58:44 +0000 Subject: [PATCH] Initial version. --- configure/os/CONFIG.Common.win32-x86-cygwin | 52 +++++++++++++++++++ configure/os/CONFIG.win32-x86-cygwin.Common | 20 +++++++ .../CONFIG.win32-x86-cygwin.win32-x86-cygwin | 30 +++++++++++ 3 files changed, 102 insertions(+) create mode 100644 configure/os/CONFIG.Common.win32-x86-cygwin create mode 100644 configure/os/CONFIG.win32-x86-cygwin.Common create mode 100644 configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin diff --git a/configure/os/CONFIG.Common.win32-x86-cygwin b/configure/os/CONFIG.Common.win32-x86-cygwin new file mode 100644 index 000000000..3dfd4bb0b --- /dev/null +++ b/configure/os/CONFIG.Common.win32-x86-cygwin @@ -0,0 +1,52 @@ +# CONFIG.Common.win32-x86-cygwin +# +# $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 + +EXE=.exe + +COMPILER_CPPFLAGS = -D_REENTRANT + +#POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE=199506L -D_POSIX_THREADS -D_POSIX_TIMERS +# _POSIX_SOURCE eliminates select() +#POSIX_CPPFLAGS_YES = -D_POSIX_THREADS -D_POSIX_TIMERS +#POSIX_LDLIBS_YES += -lpthread +##POSIX_LDLIBS_YES += -lpthread + +ARCH_DEP_CPPFLAGS += -D_X86_ + +# Set runtime path for shared libraries +RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%) + +####LDLIBS_READLINE = -lcygreadline5 -lcygcurses7 + + + +OS_CLASS = WIN32 + +OP_SYS_CPPFLAGS = -D_WIN32=1 -D__WIN32=1 -D__MINGW32__=1 -DWIN32=1 -D__WIN32__=1 -DWINNT=1 +OP_SYS_CPPFLAGS += -U__unix__ -Uunix -U__CYGWIN__ -U__unix -U__CYGWIN32__ +OP_SYS_CPPFLAGS += -D__MSVCRT__ + +OP_SYS_CXXFLAGS += -D__cplusplus + +OP_SYS_LDFLAGS += -mno_cygwin + +OP_SYS_LDLIBS = + + +#OP_SYS_CPPFLAGS = -mno_cygwin +#-D_WIN32=1 -U__unix__ -Uunix -U__CYGWIN__ -U__unix -D__MSVCRT__ -D__WIN32=1 -D__MINGW32__=1 -DWIN32=1 -U__CYGWIN32__ -D__WIN32__=1 -DWINNT=1 + + + diff --git a/configure/os/CONFIG.win32-x86-cygwin.Common b/configure/os/CONFIG.win32-x86-cygwin.Common new file mode 100644 index 000000000..c1181ffc3 --- /dev/null +++ b/configure/os/CONFIG.win32-x86-cygwin.Common @@ -0,0 +1,20 @@ +# CONFIG.win32-x86-cygwin.Common +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for win32-x86-cygwin host archs +# Sites may override these definitions in CONFIG_SITE.win32-x86-cygwin.Common +#------------------------------------------------------- + +#Include definitions common to unix hosts +include $(CONFIG)/os/CONFIG.UnixCommon.Common + +WIND_HOST_TYPE = x86-win32 +OSITHREAD_USE_DEFAULT_STACK = NO + +HOSTEXE=.exe + +# Needed to find dlls for base installed build tools (antelope,eflex,...) +PATH := $(EPICS_BASE_TOOLS_BIN):$(PATH) + diff --git a/configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin b/configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin new file mode 100644 index 000000000..e58bab5ce --- /dev/null +++ b/configure/os/CONFIG.win32-x86-cygwin.win32-x86-cygwin @@ -0,0 +1,30 @@ +# CONFIG.win32-x86-cygwin.win32-x86-cygwin +# +# $Id$ +# +# Definitions for win32-x86-cygwin host - win32-x86-cygwin target builds +# Sites may override these definitions in CONFIG_SITE.win32-x86-cygwin.win32-x86-cygwin +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +## Shared libraries for cygwin not implemented yet +SHARED_LIBRARIES=NO + +# cygwin's gcc, g++, ar, ld, and ranlib must be in user's path +CC = gcc +CCC = g++ +AR = ar -rc +LD = ld -r +RANLIB = ranlib + +# Avoid position-independent code is always generated message +SHRLIB_CFLAGS = + +# -ansi eliminates strdup +CONFORM_CFLAGS_ANSI = +CONFORM_CFLAGS_STRICT = -pedantic +CONFORM_CXXFLAGS_ANSI = +CONFORM_CXXFLAGS_STRICT = -pedantic +