From edd24998246330a00e389fb5c7b6a2fe352bd3a2 Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Wed, 1 Mar 2006 15:56:20 +0000 Subject: [PATCH] Initial version. --- configure/os/CONFIG.Common.interix-x86 | 38 +++++++++++++++++++++ configure/os/CONFIG.interix-x86.Common | 22 ++++++++++++ configure/os/CONFIG.interix-x86.interix-x86 | 34 ++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 configure/os/CONFIG.Common.interix-x86 create mode 100644 configure/os/CONFIG.interix-x86.Common create mode 100644 configure/os/CONFIG.interix-x86.interix-x86 diff --git a/configure/os/CONFIG.Common.interix-x86 b/configure/os/CONFIG.Common.interix-x86 new file mode 100644 index 000000000..56baa2997 --- /dev/null +++ b/configure/os/CONFIG.Common.interix-x86 @@ -0,0 +1,38 @@ +# CONFIG.Common.interix-x86 +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for interix-x86 target builds +# Sites may override these definitions in CONFIG_SITE.Common.interix-x86 +#------------------------------------------------------- + +# Include definitions common to all Unix targets +include $(CONFIG)/os/CONFIG.Common.UnixCommon + +OS_CLASS = interix +ARCH_CLASS = x86 + +EXE= + +POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L +POSIX_CPPFLAGS += -D_POSIX_THREADS +POSIX_CPPFLAGS += -D_ALL_SOURCE +POSIX_CPPFLAGS += -D_POSIX_TIMERS + +POSIX_CPPFLAGS += -D_REENTRANT + +POSIX_LDLIBS += -lpthread + +ARCH_DEP_CPPFLAGS += -D_X86_ + +OP_SYS_CPPFLAGS += -DUNIX + +# Set runtime path for shared libraries +RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%) + +# Definitions used when COMMANDLINE_LIBRARY is READLINE +INCLUDES_READLINE = -I$(GNU_DIR)/include +LDFLAGS_READLINE += -L$(GNU_DIR)/lib +LDLIBS_READLINE = -lreadline + diff --git a/configure/os/CONFIG.interix-x86.Common b/configure/os/CONFIG.interix-x86.Common new file mode 100644 index 000000000..1c4cdb9e2 --- /dev/null +++ b/configure/os/CONFIG.interix-x86.Common @@ -0,0 +1,22 @@ +# CONFIG.interix-x86.Common +# +# $Id$ +# This file is maintained by the build community. +# +# Definitions for interix-x86 host archs +# Sites may override these definitions in CONFIG_SITE.interix-x86.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 +HOSTEXE= + +# Needed to find dlls for base installed build tools (antelope,eflex,...) +#PATH := $(EPICS_BASE_TOOLS_BIN):$(PATH) + + diff --git a/configure/os/CONFIG.interix-x86.interix-x86 b/configure/os/CONFIG.interix-x86.interix-x86 new file mode 100644 index 000000000..ac03fdf49 --- /dev/null +++ b/configure/os/CONFIG.interix-x86.interix-x86 @@ -0,0 +1,34 @@ +# CONFIG.interix-x86.interix-x86 +# +# $Id$ +# +# Definitions for interix-x86 host - interix-x86 target builds +# Sites may override these definitions in CONFIG_SITE.interix-x86.interix-x86 +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +## Shared libraries for interix not implemented yet +SHARED_LIBRARIES=NO + +# interix'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 # ranlib exists but is not found ??? +RANLIB = + +# Avoid position-independent code is always generated message +SHRLIB_CFLAGS = +SHRLIB_LDFLAGS = -shared -fPIC +LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC + +# -ansi eliminates strdup +#CONFORM_CFLAGS_ANSI = +#CONFORM_CFLAGS_STRICT = -pedantic +#CONFORM_CXXFLAGS_ANSI = +#CONFORM_CXXFLAGS_STRICT = -pedantic + +