From fbd532080c251f16731429f99169df6bfaf45ef3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 13 Oct 1998 14:59:35 +0000 Subject: Modified to avoid building certain files under UNIX. --- c/src/lib/libc/Makefile.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'c/src/lib') diff --git a/c/src/lib/libc/Makefile.in b/c/src/lib/libc/Makefile.in index c7b82c73ae..67466de316 100644 --- a/c/src/lib/libc/Makefile.in +++ b/c/src/lib/libc/Makefile.in @@ -11,10 +11,12 @@ PROJECT_ROOT = @PROJECT_ROOT@ LIBNAME=libcsupport.a LIB=${ARCH}/${LIBNAME} +# define TARGET_PIECES later based on RTEMS_CPU definition + # C and C++ source names, if any, go here -- minus the .c or .cc -C_PIECES=__gettod __brk __times _execve getdents malloc syscalls \ - no_libc newlibc newlibif newlibifr support unixlibc \ - libio hosterr tcattr tcdrain cfiospeed termios readdir opendir +C_PIECES=__times _execve getdents malloc syscalls \ + no_libc support libio hosterr tcattr tcdrain \ + cfiospeed termios $(TARGET_PIECES) C_FILES=$(C_PIECES:%=%.c) C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) @@ -30,6 +32,12 @@ OBJS=$(C_O_FILES) include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg include $(RTEMS_ROOT)/make/lib.cfg +ifeq ($(RTEMS_CPU),unix) +TARGET_PIECES=unixlibc +else +TARGET_PIECES=__brk __gettod newlibc newlibif newlibifr readdir opendir +endif + # # Add local stuff here using += # -- cgit v1.2.3