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