source: rtems/make/custom/FreeBSD-posix.cfg @ 0280cb6

4.104.114.84.95
Last change on this file since 0280cb6 was 0280cb6, checked in by Joel Sherrill <joel.sherrill@…>, on 08/20/98 at 14:39:09

FreeBSD stack compiles for the first time (except libc/strsep.c)

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