forked from Imagelibrary/rtems
A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
137 lines
5.5 KiB
Makefile
137 lines
5.5 KiB
Makefile
include $(top_srcdir)/automake/multilib.am
|
|
include $(top_srcdir)/automake/compile.am
|
|
|
|
noinst_LIBRARIES = libcsupport.a libcalloc.a
|
|
libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS)
|
|
libcalloc_a_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
## rtems
|
|
## General stuff
|
|
ERROR_C_FILES = src/error.c src/__assert.c
|
|
|
|
ASSOCIATION_C_FILES = src/assoclocalbyname.c \
|
|
src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \
|
|
src/assocnamebad.c src/assocnamebylocalbitfield.c \
|
|
src/assocnamebylocal.c src/assocnamebyremotebitfield.c \
|
|
src/assocnamebyremote.c src/assocptrbylocal.c src/assocptrbyname.c \
|
|
src/assocptrbyremote.c src/assocremotebylocalbitfield.c \
|
|
src/assocremotebylocal.c src/assocremotebyname.c
|
|
ASSOCIATION_C_FILES += src/assoc32tostring.c
|
|
ASSOCIATION_C_FILES += src/assocthreadstatestostring.c
|
|
|
|
BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
|
|
src/mount-mgr.c src/mount-mktgt.c src/libio_init.c \
|
|
src/privateenv.c \
|
|
src/libio_exit.c \
|
|
src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c
|
|
BASE_FS_C_FILES += src/uenvgetgroups.c
|
|
|
|
TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \
|
|
src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \
|
|
src/tcflow.c src/tcflush.c src/tcgetpgrp.c src/tcsendbreak.c \
|
|
src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
|
|
src/termios_baud2index.c src/termios_baud2num.c src/termios_num2baud.c \
|
|
src/termios_setinitialbaud.c src/termios_baudtable.c src/cfsetspeed.c \
|
|
src/cfmakeraw.c src/cfmakesane.c src/termios_setbestbaud.c
|
|
|
|
SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \
|
|
src/write_r.c \
|
|
src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \
|
|
src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/fchown.c src/chown.c \
|
|
src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \
|
|
src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
|
|
src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
|
|
src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c src/utimes.c src/lchown.c
|
|
SYSTEM_CALL_C_FILES += src/clock.c
|
|
|
|
## Until sys/uio.h is moved to libcsupport, we have to have networking
|
|
## enabled to compile these. Hopefully this is a temporary situation.
|
|
if NEWLIB
|
|
SYSTEM_CALL_C_FILES += src/readv.c src/writev.c
|
|
endif
|
|
|
|
DIRECTORY_SCAN_C_FILES =
|
|
## Newlib SHOULD have provided this one
|
|
DIRECTORY_SCAN_C_FILES += src/readdir_r.c
|
|
## Comment out when using these from newlib's unix directory
|
|
DIRECTORY_SCAN_C_FILES += src/getcwd.c
|
|
|
|
ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
|
|
src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
|
|
src/seteuid.c src/setgid.c src/setuid.c src/setegid.c src/setpgid.c \
|
|
src/setsid.c src/setgroups.c
|
|
|
|
MALLOC_C_FILES = src/malloc_initialize.c src/malloc.c \
|
|
src/realloc.c src/_calloc_r.c src/_malloc_r.c \
|
|
src/free.c src/_free_r.c \
|
|
src/_realloc_r.c src/mallocfreespace.c \
|
|
src/mallocgetheapptr.c src/mallocsetheapptr.c \
|
|
src/mallocinfo.c src/malloc_walk.c \
|
|
src/posix_memalign.c \
|
|
src/rtems_memalign.c src/malloc_deferred.c \
|
|
src/malloc_dirtier.c src/malloc_p.h \
|
|
src/rtems_heap_extend_via_sbrk.c \
|
|
src/rtems_heap_null_extend.c \
|
|
src/rtems_heap_extend.c \
|
|
src/rtems_heap_greedy.c
|
|
MALLOC_C_FILES += src/cachealignedalloc.c
|
|
MALLOC_C_FILES += src/cachecoherentalloc.c
|
|
|
|
PASSWORD_GROUP_C_FILES = src/pwdgrp.c
|
|
PASSWORD_GROUP_C_FILES += src/getgrent.c
|
|
PASSWORD_GROUP_C_FILES += src/getgrnam.c
|
|
PASSWORD_GROUP_C_FILES += src/getpwent.c
|
|
|
|
TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c
|
|
## 20 Nov 2008: Now using these from newlib's posix directory
|
|
TERMINAL_IDENTIFICATION_C_FILES += src/isatty.c src/isatty_r.c
|
|
## Comment out when using these from newlib's unix directory
|
|
TERMINAL_IDENTIFICATION_C_FILES += src/ttyname.c
|
|
|
|
LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
|
|
src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
|
|
src/newlibc_reent.c src/newlibc_exit.c \
|
|
src/kill_noposix.c src/utsname.c src/realpath.c \
|
|
src/arc4random_getentropy_fail.c
|
|
|
|
BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c
|
|
|
|
libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
|
|
src/printk_plugin.c src/putk.c src/vprintk.c \
|
|
src/rtems_putc.c \
|
|
src/print_fprintf.c \
|
|
src/print_printf.c \
|
|
src/printf_plugin.c \
|
|
src/sup_fs_location.c \
|
|
src/sup_fs_eval_path.c \
|
|
src/sup_fs_eval_path_generic.c \
|
|
src/sup_fs_check_permissions.c \
|
|
src/sup_fs_next_token.c \
|
|
src/sup_fs_exist_in_same_instance.c \
|
|
src/sup_fs_mount_iterate.c \
|
|
src/sup_fs_deviceio.c \
|
|
src/clonenode.c \
|
|
src/freenode.c \
|
|
src/resource_snapshot.c \
|
|
$(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
|
|
$(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
|
|
libcsupport_a_SOURCES += src/consolesimple.c
|
|
libcsupport_a_SOURCES += src/consolesimpleread.c
|
|
libcsupport_a_SOURCES += src/consolesimpletask.c
|
|
libcsupport_a_SOURCES += src/printertask.c
|
|
libcsupport_a_SOURCES += src/printerfprintfputc.c
|
|
|
|
libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
|
|
$(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
|
|
$(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) \
|
|
$(TERMIOS_C_FILES) src/getpagesize.c src/getrusage.c src/posix_devctl.c
|
|
|
|
|
|
libcsupport_a_SOURCES += src/flockfile.c src/funlockfile.c src/ftrylockfile.c
|
|
|
|
libcalloc_a_SOURCES = src/calloc.c
|
|
libcalloc_a_CFLAGS = -fno-builtin
|
|
|
|
|
|
include $(top_srcdir)/automake/local.am
|