source: rtems/make/custom/Solaris-posix.cfg @ 17a8d603

4.104.114.84.95
Last change on this file since 17a8d603 was 17a8d603, checked in by Joel Sherrill <joel.sherrill@…>, on 05/20/98 at 17:02:29

Some patches in place from Brian Stevens which help the Solaris port
build. It does not link successfully for him. It does not compile
for me locally.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2#  Config file for the Solaris based RTEMS UNIX
3#
4#  $Id$
5#
6
7RTEMS_CPU=unix
8RTEMS_CPU_FAMILY=sparc
9RTEMS_CPU_MODEL=sparc_v8
10RTEMS_UNIX_FLAVOR=solaris
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=posix
14
15# share the posix bsp
16RTEMS_BSP=posix
17TARGET_ARCH=o-solaris2
18
19include $(RTEMS_ROOT)/make/custom/default.cfg
20
21# DO NOT Use the LIBC support for CYGNUS newlib
22RTEMS_USE_NEWLIB=no
23
24# The following define the memory reserved in the executable for the
25# RTEMS Workspace and the C Program Heap.
26LIBC_DEFINES += -DWORKSPACE_MB=2
27LIBC_DEFINES += -DHEAPSPACE_MB=1
28
29LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
30LIBC_LIBM=-lm
31
32CPU_CFLAGS = -D__EXTENSIONS__  -Dsolaris -Dsolaris2
33
34# Define this to yes if C++ is included in the development environment
35# This requires that at least the GNU C++ compiler and libg++ be installed.
36ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
37HAS_CPLUSPLUS=yes
38# no standard C++ libs provided by default
39LIBCC_INCLUDE=$(GNUTOOLS)/include/g++
40CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
41else
42HAS_CPLUSPLUS=no
43endif
44
45# Define this to yes if this target supports multiprocessor environments.
46HAS_MP=yes
47
48# This target does NOT support the KA9Q TCP/IP stack so ignore requests
49# to enable it.
50HAS_KA9Q=no
51
52# This target does NOT support the POSIX API.
53HAS_POSIX_API=no
54
55# optimize flag: typically -0, could use -O4 or -fast
56# -O4 is ok for RTEMS
57CFLAGS_OPTIMIZE_V = -O2
58
59#  This section makes the target dependent options file.
60
61#  NDEBUG (C library)
62#     if defined asserts do not generate code.  This is commonly used
63#     as a command line option.
64#
65#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
66#     do not pause between screens of output in the rtems tests
67#
68#  NO_TABLE_MOVE (SPARC PORT)
69#     do not have a second trap table -- use the BSP's
70#
71#  RTEMS_DEBUG (RTEMS)
72#     If defined, debug checks in RTEMS and support library code are enabled.
73#
74#  RTEMS_UNIX (unix)
75#     Define this to indicate this is an RTEMS UNIX port.
76
77define make-target-options
78        echo "/* #define NDEBUG 1 */ "                     >>$@
79        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
80        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
81        echo "#define RTEMS_UNIX 1 "                       >>$@
82endef
83
84ifeq ($(RTEMS_USE_GCC272),yes)
85define make-exe
86        $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC)
87        $(NM) -ng $@ > $(basename $@).num
88        $(SIZE) $@
89endef
90else
91# NOTE: Untested
92define make-exe
93        $(CC) -v $(CFLAGS) -o $@ $(LINK_OBJS)
94        $(NM) -ng $@ > $(basename $@).num
95        $(SIZE) $@
96endef
97endif
98
99
100# *****************************************************************
101
102
103# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.