source: rtems/make/custom/Cygwin-posix.cfg @ 930c1c8

Last change on this file since 930c1c8 was 930c1c8, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:24:34

Merging main trunk and 4.5 branch. These changes were in the
main trunk.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[ce70a16]1#
[930c1c8]2#  Config file for the Cygwin based RTEMS UNIX
[ce70a16]3#
4#  $Id$
5#
6
7RTEMS_CPU=unix
8RTEMS_CPU_FAMILY=i386
9RTEMS_CPU_MODEL=i486dx
10RTEMS_UNIX_FLAVOR=cygwin
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=posix
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
26DEFINES += -D_BSD_SOURCE
27
28# optimize flag: typically -0, could use -O4 or -fast
29# -O4 is ok for RTEMS
30CFLAGS_OPTIMIZE_V = -O2
31
32#  This section makes the target dependent options file.
33
34#  NDEBUG (C library)
35#     if defined asserts do not generate code.  This is commonly used
36#     as a command line option.
37#
38#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
39#     do not pause between screens of output in the rtems tests
40#
41#  NO_TABLE_MOVE (SPARC PORT)
42#     do not have a second trap table -- use the BSP's
43#
44#  RTEMS_DEBUG (RTEMS)
45#     If defined, debug checks in RTEMS and support library code are enabled.
46#     
47#  RTEMS_UNIX (unix)
48#     Define this to indicate this is an RTEMS UNIX port.
49
50define make-target-options
51        echo "/* #define NDEBUG 1 */ "                     >>$@
52        echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
53        echo "/* #define RTEMS_DEBUG  1 */"                >>$@
54        echo "#define RTEMS_UNIX 1 "                       >>$@
55endef
56
57define make-exe
58        $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
59        $(NM) -ng $@ > $(basename $@).num
60        $(SIZE) $@
61endef
62
63
64# *****************************************************************
65# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.