diff options
Diffstat (limited to 'newlib/libc/sys/sysnecv850/Makefile.am')
-rw-r--r-- | newlib/libc/sys/sysnecv850/Makefile.am | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/newlib/libc/sys/sysnecv850/Makefile.am b/newlib/libc/sys/sysnecv850/Makefile.am index 615e9a497..5227ee9a3 100644 --- a/newlib/libc/sys/sysnecv850/Makefile.am +++ b/newlib/libc/sys/sysnecv850/Makefile.am @@ -8,16 +8,33 @@ AM_CCASFLAGS = $(INCLUDES) noinst_LIBRARIES = lib.a -lib_a_SOURCES = \ +if MAY_SUPPLY_SYSCALLS +extra_objs = $(lpfx)_exit.o $(lpfx)access.o $(lpfx)chmod.o \ + $(lpfx)chown.o $(lpfx)close.o $(lpfx)creat.o $(lpfx)crt1.o \ + $(lpfx)execv.o $(lpfx)execve.o $(lpfx)fork.o $(lpfx)fstat.o \ + $(lpfx)getpid.o $(lpfx)isatty.o $(lpfx)kill.o $(lpfx)lseek.o \ + $(lpfx)open.o $(lpfx)pipe.o $(lpfx)read.o $(lpfx)link.o \ + $(lpfx)sbrk.o $(lpfx)stat.o $(lpfx)time.o $(lpfx)trap.o \ + $(lpfx)unlink.o $(lpfx)utime.o $(lpfx)wait.o $(lpfx)write.o \ + $(lpfx)times.o $(lpfx)gettime.o +else +extra_objs = +endif + +lib_a_LIBADD = $(extra_objs) +EXTRA_lib_a_SOURCES = \ _exit.c access.c chmod.c chown.c close.c creat.c crt1.c \ execv.c execve.c fork.c fstat.c getpid.c isatty.c \ kill.c lseek.c open.c pipe.c read.c link.c \ sbrk.c stat.c time.c trap.S unlink.c utime.c wait.c write.c \ times.c gettime.c +lib_a_DEPENDENCIES = $(extra_objs) lib_a_CCASFLAGS = $(AM_CCASFLAGS) lib_a_CFLAGS = $(AM_CFLAGS) +if MAY_SUPPLY_SYSCALLS all-local: crt0.o +endif ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host |