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

4.104.114.84.95
Last change on this file since 3a8915e was 3a8915e, checked in by Joel Sherrill <joel.sherrill@…>, on 08/06/99 at 17:55:25

Patch rtems-rc-19990709-6-diff from Ralf Corsepius <corsepiu@…>
applied. This modified many Makefiles and custom files and makes many more
settings (network, multiprocessing, etc) gnerated by autoconf.

  • Property mode set to 100644
File size: 2.0 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
14TARGET_ARCH=o-linux1
15
16include $(RTEMS_ROOT)/make/custom/default.cfg
17
18# RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER
19LIBC_DEFINES =-D_POSIX_C_SOURCE
20LIBC_DEFINES+=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG
21
22# The following define the memory reserved in the executable for the
23# RTEMS Workspace and the C Program Heap.
24LIBC_DEFINES += -DWORKSPACE_MB=2
25LIBC_DEFINES += -DHEAPSPACE_MB=1
26
27
28# Define this to yes if C++ is included in the development environment
29# This requires that at least the GNU C++ compiler and libg++ be installed.
30ifeq ($(HAS_CPLUSPLUS),yes)
31CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
32endif
33
34# optimize flag: typically -0, could use -O4 or -fast
35# -O4 is ok for RTEMS
36CFLAGS_OPTIMIZE_V = -O2
37
38#  This section makes the target dependent options file.
39
40#  NDEBUG (C library)
41#     if defined asserts do not generate code.  This is commonly used
42#     as a command line option.
43#
44#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
45#     do not pause between screens of output in the rtems tests
46#
47#  NO_TABLE_MOVE (SPARC PORT)
48#     do not have a second trap table -- use the BSP's
49#
50#  RTEMS_DEBUG (RTEMS)
51#     If defined, debug checks in RTEMS and support library code are enabled.
52#     
53#  RTEMS_UNIX (unix)
54#     Define this to indicate this is an RTEMS UNIX port.
55
56define make-target-options
57        echo "/* #define NDEBUG 1 */ "                     >>$@
58        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
59        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
60        echo "#define RTEMS_UNIX 1 "                       >>$@
61endef
62
63define make-exe
64        $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
65        $(NM) -ng $@ > $(basename $@).num
66        $(SIZE) $@
67endef
68
69
70# *****************************************************************
71# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.