1 | # |
---|
2 | # Config file for the Linux 1.x based RTEMS UNIX |
---|
3 | # |
---|
4 | # $Id$ |
---|
5 | # |
---|
6 | |
---|
7 | RTEMS_CPU=unix |
---|
8 | RTEMS_CPU_FAMILY=i386 |
---|
9 | RTEMS_CPU_MODEL=i486dx |
---|
10 | RTEMS_UNIX_FLAVOR=linux |
---|
11 | |
---|
12 | # This is the actual bsp directory used during the build process. |
---|
13 | RTEMS_BSP_FAMILY=posix |
---|
14 | TARGET_ARCH=o-linux1 |
---|
15 | |
---|
16 | include $(RTEMS_ROOT)/make/custom/default.cfg |
---|
17 | |
---|
18 | # RTEMS_LIBC_DIR must already be set (by configuration) DOES NOT MATTER |
---|
19 | LIBC_DEFINES =-D_POSIX_C_SOURCE |
---|
20 | LIBC_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. |
---|
24 | LIBC_DEFINES += -DWORKSPACE_MB=2 |
---|
25 | LIBC_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. |
---|
30 | ifeq ($(HAS_CPLUSPLUS),yes) |
---|
31 | CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) |
---|
32 | endif |
---|
33 | |
---|
34 | # optimize flag: typically -0, could use -O4 or -fast |
---|
35 | # -O4 is ok for RTEMS |
---|
36 | CFLAGS_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 | |
---|
56 | define 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 " >>$@ |
---|
61 | endef |
---|
62 | |
---|
63 | define make-exe |
---|
64 | $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS) |
---|
65 | $(NM) -ng $@ > $(basename $@).num |
---|
66 | $(SIZE) $@ |
---|
67 | endef |
---|
68 | |
---|
69 | |
---|
70 | # ***************************************************************** |
---|
71 | # Miscellaneous additions go here |
---|