source: rtems/make/custom/Linux-posix.cfg @ d494eeb4

4.104.114.84.95
Last change on this file since d494eeb4 was d494eeb4, checked in by Joel Sherrill <joel.sherrill@…>, on 05/21/98 at 16:40:46

Per patch from Ralf Corsepius UNIX ports always needs C++ for rtems-ctor.cc.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1#
2#  Config file for the Linux 1.x based RTEMS UNIX
3#
4#  $Id$
5#
6
7RTEMS_CPU=unix
8RTEMS_CPU_FAMILY=i386
9RTEMS_CPU_MODEL=i486dx
10RTEMS_UNIX_FLAVOR=linux
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=posix
14
15# share the posix bsp
16TARGET_ARCH=o-linux1
17RTEMS_BSP=posix
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# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
25LIBC_DEFINES =-D_POSIX_C_SOURCE
26LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
27
28# The following define the memory reserved in the executable for the
29# RTEMS Workspace and the C Program Heap.
30LIBC_DEFINES += -DWORKSPACE_MB=2
31LIBC_DEFINES += -DHEAPSPACE_MB=1
32
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
38CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
39endif
40
41# Define this to yes if this target supports multiprocessor environments.
42HAS_MP=yes
43
44# This target does NOT support the KA9Q TCP/IP stack so ignore requests
45# to enable it.
46HAS_KA9Q=no
47
48# This target does NOT support the POSIX API.
49HAS_POSIX_API=no
50
51# optimize flag: typically -0, could use -O4 or -fast
52# -O4 is ok for RTEMS
53CFLAGS_OPTIMIZE_V = -O2
54
55#  This section makes the target dependent options file.
56
57#  NDEBUG (C library)
58#     if defined asserts do not generate code.  This is commonly used
59#     as a command line option.
60#
61#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
62#     do not pause between screens of output in the rtems tests
63#
64#  NO_TABLE_MOVE (SPARC PORT)
65#     do not have a second trap table -- use the BSP's
66#
67#  RTEMS_DEBUG (RTEMS)
68#     If defined, debug checks in RTEMS and support library code are enabled.
69#     
70#  RTEMS_UNIX (unix)
71#     Define this to indicate this is an RTEMS UNIX port.
72
73define make-target-options
74        echo "/* #define NDEBUG 1 */ "                     >>$@
75        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
76        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
77        echo "#define RTEMS_UNIX 1 "                       >>$@
78endef
79
80ifeq ($(RTEMS_USE_GCC272),yes)
81define make-exe
82        $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC)
83        $(NM) -ng $@ > $(basename $@).num
84        $(SIZE) $@
85endef
86else
87#
88# just use the same make-exe as gcc 272
89#
90define make-exe
91        $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC)
92        $(NM) -ng $@ > $(basename $@).num
93        $(SIZE) $@
94endef
95endif
96
97
98# *****************************************************************
99# Miscellaneous additions go here
100
101# Workaround for missing ranlib support in RTEMS
102MKLIB=$(AR) s $(@) ; echo library is complete:
Note: See TracBrowser for help on using the repository browser.