summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_rtems.x_g++.GNU
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/include/makeinclude/platform_rtems.x_g++.GNU
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/include/makeinclude/platform_rtems.x_g++.GNU')
-rw-r--r--ACE/include/makeinclude/platform_rtems.x_g++.GNU80
1 files changed, 80 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_rtems.x_g++.GNU b/ACE/include/makeinclude/platform_rtems.x_g++.GNU
new file mode 100644
index 00000000000..60d1ec0518c
--- /dev/null
+++ b/ACE/include/makeinclude/platform_rtems.x_g++.GNU
@@ -0,0 +1,80 @@
+# $Id$
+#
+# RTEMS 4.5.0 and later with GNU g++.
+
+#### Notes:
+#### 1) This file requires that the WIND_BASE and WIND_HOST_TYPE environment
+#### variables be set. If the target CPU is not a PPC604, then your CPU
+#### environment variable must be set. If perl is not on your path,
+#### you'll also need to set your PERL_PATH environment variable to
+#### the full path to perl.
+
+CROSS-COMPILE = 1
+
+debug ?= 1
+optimize ?= 1
+rtti ?= 1
+
+shared_libs =
+static_libs = 1
+
+ifeq (,$(RTEMS_MAKEFILE_PATH))
+ default:
+ @ERROR: you must set your RTEMS_MAKEFILE_PATH environment variable
+endif # RTEMS_MAKEFILE_PATH
+
+ifeq (,$(PERL_PATH))
+ PERL_PATH = perl
+endif # ! PERL_PATH
+
+
+# Test for template instantiation.
+#
+include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
+
+#### BEGIN target CPU-specific settings
+
+# look them up
+CFLAGS = $(shell make --no-print-directory -f $(ACE_ROOT)/include/makeinclude/Makefile.rtems print_cflags)
+#CCFLAGS = $(shell make --no-print-directory -f $(ACE_ROOT)/include/makeinclude/Makefile.rtems print_cflags) -fno-implicit-templates
+CCFLAGS = $(TEMPLATES_FLAG)
+
+#### END target CPU-specific settings
+
+CXX := $(shell make --no-print-directory -f $(ACE_ROOT)/include/makeinclude/Makefile.rtems print_cxx)
+
+ifndef ACE_CC
+ACE_CC := $(shell make --no-print-directory -f $(ACE_ROOT)/include/makeinclude/Makefile.rtems print_cc)
+endif # ! ACE_CC
+ifndef ACE_CC_VERSION
+ ACE_CC_VERSION := $(shell $(ACE_CC) --version)
+endif # ! ACE_CC_VERSION
+
+#CFLAGS += -D_REENTRANT -ansi -fno-builtin -fno-defer-pop \
+# -fvolatile $(PIPE_OPT) -W -Wall
+#CCFLAGS += $(CFLAGS)
+ifeq (,$(rtti))
+ #### Don't use RTTI even with egcs, because Tornado 1.0.x libraries
+ #### don't support it.
+ CCFLAGS += -fno-rtti -DACE_LACKS_RTTI
+endif # rtti
+DCFLAGS += -g
+DLD = $(LD)
+INCLDIRS +=
+# Hand build tests/rtems_init.o .. something like this
+# sparc-rtems-gcc -B/opt/rtems/sparc-rtems/erc32/lib/ -specs bsp_specs \
+# -qrtems -mcpu=cypress -O -g \
+# -I$(ACE_ROOT) -c -o rtems_init.o rtems_init.c
+
+LD = $(CXX) $(CCFLAGS) $(ACE_ROOT)/tests/rtems_init.o
+LDFLAGS += #-Wl,-X -Wl,-r
+OCFLAGS += -O
+PIC =
+
+
+#### ld can't handle INCLDIRS, so override LINK definitions.
+LINK.c = override
+LINK.c.override = $(LD) $(LDFLAGS) $(LDLIBS) $(LIBS)
+
+LINK.cc = override
+LINK.cc.override = $(LD)