From 911efd67e4e57a443bfe26f8d9eb0727fc2c97ef Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Fri, 28 Oct 2005 15:59:35 +0000 Subject: [PATCH] Initial version. --- configure/os/CONFIG.Common.win32-x86-mingw | 27 +++++++++++++++ configure/os/CONFIG.win32-x86-mingw.Common | 32 ++++++++++++++++++ .../os/CONFIG.win32-x86-mingw.win32-x86-mingw | 33 +++++++++++++++++++ .../os/CONFIG_SITE.win32-x86-mingw.Common | 17 ++++++++++ 4 files changed, 109 insertions(+) create mode 100644 configure/os/CONFIG.Common.win32-x86-mingw create mode 100644 configure/os/CONFIG.win32-x86-mingw.Common create mode 100644 configure/os/CONFIG.win32-x86-mingw.win32-x86-mingw create mode 100644 configure/os/CONFIG_SITE.win32-x86-mingw.Common diff --git a/configure/os/CONFIG.Common.win32-x86-mingw b/configure/os/CONFIG.Common.win32-x86-mingw new file mode 100644 index 000000000..0ce293454 --- /dev/null +++ b/configure/os/CONFIG.Common.win32-x86-mingw @@ -0,0 +1,27 @@ +# CONFIG.Common.win32-x86-mingw +# +# $Id$ +# This file is maintained by the build community. +# +# 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 + +EXE=.exe + +POSIX_CPPFLAGS_YES = -D_POSIX_SOURCE + +ARCH_DEP_CPPFLAGS += -D_X86_ + +# Library used when COMMANDLINE_LIBRARY is READLINE +LDLIBS_READLINE = -lreadline + +# Compiler defines _WIN32 and WIN32 +OP_SYS_CPPFLAGS = + diff --git a/configure/os/CONFIG.win32-x86-mingw.Common b/configure/os/CONFIG.win32-x86-mingw.Common new file mode 100644 index 000000000..11789db29 --- /dev/null +++ b/configure/os/CONFIG.win32-x86-mingw.Common @@ -0,0 +1,32 @@ +# CONFIG.win32-x86-mingw.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 + +CP = $(PERL) $(CONFIG)/tools/cp.pl +MV = $(PERL) $(CONFIG)/tools/mv.pl +RM = $(PERL) $(CONFIG)/tools/rm.pl -f +MKDIR = $(PERL) $(CONFIG)/tools/mkdir.pl +RMDIR = $(PERL) $(CONFIG)/tools/rm.pl -rf +ECHO = echo + +HOSTEXE=.exe + +WIND_HOST_TYPE = x86-win32 + +# osithead use default stack, YES or NO override +OSITHREAD_USE_DEFAULT_STACK = NO + +# DLL build not supported yet +# 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-mingw.win32-x86-mingw b/configure/os/CONFIG.win32-x86-mingw.win32-x86-mingw new file mode 100644 index 000000000..7bb05110b --- /dev/null +++ b/configure/os/CONFIG.win32-x86-mingw.win32-x86-mingw @@ -0,0 +1,33 @@ +# CONFIG.win32-x86-mingw.win32-x86-mingw +# +# $Id$ +# +# Definitions for win32-x86-mingw host - win32-x86-mingw target builds +# Sites may override these definitions in CONFIG_SITE.win32-x86-mingw.win32-x86-mingw +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +# Shared libraries not implemented +SHARED_LIBRARIES=NO + +# 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 = + +# Dont use -ansi option: eliminates strdup and _tempnam +CONFORM_CFLAGS_ANSI = +CONFORM_CFLAGS_STRICT = -pedantic +CONFORM_CXXFLAGS_ANSI = +CONFORM_CXXFLAGS_STRICT = -pedantic + +# Override linking with gcc library +GNU_LDLIBS_YES = + diff --git a/configure/os/CONFIG_SITE.win32-x86-mingw.Common b/configure/os/CONFIG_SITE.win32-x86-mingw.Common new file mode 100644 index 000000000..589e956db --- /dev/null +++ b/configure/os/CONFIG_SITE.win32-x86-mingw.Common @@ -0,0 +1,17 @@ +# CONFIG_SITE.Common.win32-x86-mingw +# +# $Id$ +# +# Site Specific definitions for cygwin-x86 target +# Only the local epics system manager should modify this file + +# If readline is not installed comment the following line +# to omit command-line editing and history support +#COMMANDLINE_LIBRARY = READLINE + +# Needed to find dlls for gcc, g++, as, cpp, ... +# if MINGW_BIN not in user's path +MINGW_BIN=C:/MinGW/bin +export PATH := $(MINGW_BIN):$(PATH) + +PERL=c:/cygwin/bin/perl.exe