summaryrefslogtreecommitdiffstats
path: root/c/src/exec/wrapup/rtems/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/wrapup/rtems/Makefile.in')
-rw-r--r--c/src/exec/wrapup/rtems/Makefile.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/c/src/exec/wrapup/rtems/Makefile.in b/c/src/exec/wrapup/rtems/Makefile.in
index e0382e4fd5..b654e51f13 100644
--- a/c/src/exec/wrapup/rtems/Makefile.in
+++ b/c/src/exec/wrapup/rtems/Makefile.in
@@ -41,11 +41,18 @@ LDFLAGS +=
CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
+EXTENSION_SUFFIX_$(TARGET_ARCH)_V=
+EXTENSION_SUFFIX_$(TARGET_ARCH)-debug_V=_debug
+EXTENSION_SUFFIX_$(TARGET_ARCH)-profile_V=_profile
+
+EXTENSION_VARIANT=$(EXTENSION_SUFFIX_$(ARCH)_V)
+
+
$(LIB): ${OBJS}
$(make-library)
- -cd $(PROJECT_ROOT) ; \
- $(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) \
- >$(PROJECT_RELEASE)/lib/sizeinfo.txt
+ cd $(PROJECT_ROOT) ; \
+ $(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) $(ARCH) \
+ >$(PROJECT_RELEASE)/lib/sizeinfo$(EXTENSION_VARIANT).txt
all: ${ARCH} $(SRCS) $(LIB)
$(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib