[bffb938] | 1 | # |
---|
| 2 | # Config file for the Solaris based RTEMS UNIX |
---|
| 3 | # |
---|
| 4 | # $Id$ |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | RTEMS_CPU=unix |
---|
| 8 | RTEMS_CPU_FAMILY=sparc |
---|
| 9 | RTEMS_CPU_MODEL=sparc_v8 |
---|
| 10 | RTEMS_UNIX_FLAVOR=solaris |
---|
| 11 | |
---|
| 12 | # This is the actual bsp directory used during the build process. |
---|
| 13 | RTEMS_BSP_FAMILY=posix |
---|
| 14 | |
---|
[2758c9f2] | 15 | # share the posix bsp |
---|
| 16 | TARGET_ARCH=o-solaris2 |
---|
| 17 | RTEMS_BSP=posix |
---|
[bffb938] | 18 | |
---|
[2758c9f2] | 19 | include $(RTEMS_ROOT)/make/default.cfg |
---|
[bffb938] | 20 | |
---|
| 21 | ## Target compiler config file, if any |
---|
[2758c9f2] | 22 | CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg |
---|
[bffb938] | 23 | |
---|
| 24 | # Use the LIBC support for CYGNUS newlib |
---|
| 25 | # RTEMS_LIBC_DIR must already be set (by module file) |
---|
[2936b425] | 26 | RTEMS_USE_NEWLIB=no |
---|
| 27 | |
---|
[2758c9f2] | 28 | LIBC_DEFINES=-DRTEMS_UNIXLIB -DRTEMS_UNIX -DMALLOC_PROVIDED -DRTEMS_DEBUG |
---|
[2936b425] | 29 | LIBC_LIBM=-lm |
---|
[bffb938] | 30 | |
---|
| 31 | # Define this to yes if C++ is included in the development environment |
---|
| 32 | # This requires that at least the GNU C++ compiler and libg++ be installed. |
---|
[2936b425] | 33 | ifeq ($(RTEMS_HAS_CPLUSPLUS),yes) |
---|
| 34 | HAS_CPLUSPLUS=yes |
---|
| 35 | # no standard C++ libs provided by default |
---|
| 36 | LIBCC_INCLUDE=$(GNUTOOLS)/include/g++ |
---|
| 37 | CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) |
---|
| 38 | else |
---|
[bffb938] | 39 | HAS_CPLUSPLUS=no |
---|
[2936b425] | 40 | endif |
---|
[bffb938] | 41 | |
---|
| 42 | # Define this to yes if this target supports multiprocessor environments. |
---|
| 43 | HAS_MP=yes |
---|
| 44 | |
---|
| 45 | # This target does NOT support the KA9Q TCP/IP stack so ignore requests |
---|
| 46 | # to enable it. |
---|
| 47 | HAS_KA9Q=no |
---|
| 48 | |
---|
| 49 | # This target does NOT support the POSIX API. |
---|
| 50 | HAS_POSIX_API=no |
---|
| 51 | |
---|
[2758c9f2] | 52 | # optimize flag: typically -0, could use -O4 or -fast |
---|
| 53 | # -O4 is ok for RTEMS |
---|
| 54 | CFLAGS_OPTIMIZE_V = -O2 |
---|
| 55 | |
---|
| 56 | # This section makes the target dependent options file. |
---|
| 57 | |
---|
| 58 | # NDEBUG (C library) |
---|
| 59 | # if defined asserts do not generate code. This is commonly used |
---|
| 60 | # as a command line option. |
---|
| 61 | # |
---|
| 62 | # RTEMS_TEST_NO_PAUSE (RTEMS tests) |
---|
| 63 | # do not pause between screens of output in the rtems tests |
---|
| 64 | # |
---|
| 65 | # NO_TABLE_MOVE (SPARC PORT) |
---|
| 66 | # do not have a second trap table -- use the BSP's |
---|
| 67 | # |
---|
| 68 | # RTEMS_DEBUG (RTEMS) |
---|
| 69 | # If defined, debug checks in RTEMS and support library code are enabled. |
---|
| 70 | # |
---|
| 71 | # RTEMS_UNIX (unix) |
---|
| 72 | # Define this to indicate this is an RTEMS UNIX port. |
---|
| 73 | |
---|
| 74 | define make-target-options |
---|
| 75 | echo "/* #define NDEBUG 1 */ " >>$@ |
---|
| 76 | echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@ |
---|
| 77 | echo "/* #define RTEMS_DEBUG 1 */" >>$@ |
---|
| 78 | echo "#define RTEMS_UNIX 1 " >>$@ |
---|
| 79 | endef |
---|
| 80 | |
---|
| 81 | ifeq ($(RTEMS_USE_GCC272),yes) |
---|
| 82 | define make-exe |
---|
| 83 | $(CC) -o $@ $(LINK_FILES) $(LD_LIBS) $(LIBC_LIBM) $(LIBC_LIBC) |
---|
| 84 | $(NM) -ng $@ > $(basename $@).num |
---|
| 85 | $(SIZE) $@ |
---|
| 86 | endef |
---|
| 87 | else |
---|
[7ebfa93] | 88 | # NOTE: Untested |
---|
| 89 | define make-exe |
---|
| 90 | $(CC) -v $(CFLAGS) -o $@ $(LINK_OBJS) |
---|
| 91 | $(NM) -ng $@ > $(basename $@).num |
---|
| 92 | $(SIZE) $@ |
---|
| 93 | endef |
---|
[2758c9f2] | 94 | endif |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | # ***************************************************************** |
---|
| 98 | |
---|
| 99 | |
---|
[bffb938] | 100 | # Miscellaneous additions go here |
---|