[811804fe] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
[e1d8abb] | 4 | |
---|
[44c889a] | 5 | include $(top_srcdir)/automake/multilib.am |
---|
[dfbb492] | 6 | include $(top_srcdir)/automake/compile.am |
---|
[deb66d1] | 7 | |
---|
[0a23c714] | 8 | project_lib_LIBRARIES = libcsupport.a |
---|
[846a4af] | 9 | noinst_LIBRARIES = libcsupport.a |
---|
[a369ade] | 10 | libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
[cd9ce153] | 11 | |
---|
[30f66299] | 12 | include_rtemsdir = $(includedir)/rtems |
---|
[72d2ec4d] | 13 | include_rtems_HEADERS = include/console.h include/clockdrv.h \ |
---|
[6cb5bcd] | 14 | include/iosupp.h include/ringbuf.h include/rtc.h include/spurious.h \ |
---|
| 15 | include/timerdrv.h include/vmeintr.h |
---|
[deb66d1] | 16 | |
---|
| 17 | ## motorola |
---|
| 18 | |
---|
[6ed3a16] | 19 | include_rtems_motoroladir = $(includedir)/rtems/motorola |
---|
[deb66d1] | 20 | |
---|
[3279145] | 21 | include_rtems_motorola_HEADERS = include/motorola/mc68230.h \ |
---|
[6cb5bcd] | 22 | include/motorola/mc68681.h |
---|
[deb66d1] | 23 | |
---|
| 24 | ## rtems |
---|
[30f66299] | 25 | include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \ |
---|
[6cb5bcd] | 26 | include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \ |
---|
[543fe820] | 27 | include/rtems/malloc.h include/rtems/termiostypes.h |
---|
[deb66d1] | 28 | |
---|
| 29 | ## zilog |
---|
| 30 | |
---|
[6ed3a16] | 31 | include_rtems_zilogdir = $(includedir)/rtems/zilog |
---|
[deb66d1] | 32 | |
---|
[6ed3a16] | 33 | include_rtems_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \ |
---|
[deb66d1] | 34 | include/zilog/z8536.h |
---|
| 35 | |
---|
| 36 | ## General stuff |
---|
[4fbd8f7] | 37 | ERROR_C_FILES = src/error.c src/__assert.c |
---|
[b8ad66c] | 38 | |
---|
[0a23c714] | 39 | ASSOCIATION_C_FILES = src/assoclocalbyname.c \ |
---|
[359322a] | 40 | src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \ |
---|
| 41 | src/assocnamebad.c src/assocnamebylocalbitfield.c \ |
---|
| 42 | src/assocnamebylocal.c src/assocnamebyremotebitfield.c \ |
---|
| 43 | src/assocnamebyremote.c src/assocptrbylocal.c src/assocptrbyname.c \ |
---|
| 44 | src/assocptrbyremote.c src/assocremotebylocalbitfield.c \ |
---|
| 45 | src/assocremotebylocal.c src/assocremotebyname.c |
---|
[b8ad66c] | 46 | |
---|
| 47 | BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \ |
---|
[359322a] | 48 | src/libio_init.c \ |
---|
[442e430d] | 49 | src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c \ |
---|
[d40da79b] | 50 | src/open_dev_console.c src/__usrenv.c |
---|
[b8ad66c] | 51 | |
---|
[193fe690] | 52 | TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \ |
---|
| 53 | src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \ |
---|
| 54 | src/tcflow.c src/tcflush.c src/tcgetprgrp.c src/tcsendbreak.c \ |
---|
[b6be4217] | 55 | src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \ |
---|
| 56 | src/termios_baud2index.c src/termios_baud2num.c src/termios_num2baud.c \ |
---|
| 57 | src/termios_setinitialbaud.c |
---|
[b8ad66c] | 58 | |
---|
[193fe690] | 59 | SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \ |
---|
[359322a] | 60 | src/write_r.c \ |
---|
[193fe690] | 61 | src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \ |
---|
[55c64fc9] | 62 | src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/fchown.c src/chown.c \ |
---|
| 63 | src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \ |
---|
[193fe690] | 64 | src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \ |
---|
| 65 | src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \ |
---|
[4779963] | 66 | src/chroot.c src/sync.c src/_rename_r.c |
---|
[b8ad66c] | 67 | |
---|
[b5bf8cd1] | 68 | ## Until sys/uio.h is moved to libcsupport, we have to have networking |
---|
| 69 | ## enabled to compile these. Hopefully this is a temporary situation. |
---|
| 70 | if LIBNETWORKING |
---|
| 71 | SYSTEM_CALL_C_FILES += src/readv.c src/writev.c |
---|
| 72 | endif |
---|
| 73 | |
---|
[193fe690] | 74 | DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c \ |
---|
| 75 | src/readdir_r.c src/rewinddir.c src/scandir.c src/seekdir.c \ |
---|
| 76 | src/telldir.c src/getcwd.c |
---|
[b8ad66c] | 77 | |
---|
[c5f52e9] | 78 | ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \ |
---|
[6cb5bcd] | 79 | src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \ |
---|
| 80 | src/setpgid.c src/setsid.c |
---|
[c5f52e9] | 81 | |
---|
[543fe820] | 82 | MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \ |
---|
[e0a66c15] | 83 | src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \ |
---|
| 84 | src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \ |
---|
| 85 | src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \ |
---|
| 86 | src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \ |
---|
| 87 | src/malloc_statistics_helpers.c src/malloc_boundary.c \ |
---|
| 88 | src/posix_memalign.c src/rtems_memalign.c src/malloc_deferred.c \ |
---|
| 89 | src/malloc_sbrk_helpers.c src/malloc_dirtier.c |
---|
[b8ad66c] | 90 | |
---|
[ed8c513] | 91 | PASSWORD_GROUP_C_FILES = src/getpwent.c |
---|
[b8ad66c] | 92 | |
---|
[182c101e] | 93 | TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c |
---|
[b8ad66c] | 94 | |
---|
[193fe690] | 95 | LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \ |
---|
| 96 | src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \ |
---|
[d40da79b] | 97 | src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c src/no_posix.c \ |
---|
[e49bb542] | 98 | src/no_libc.c src/utsname.c |
---|
[b8ad66c] | 99 | |
---|
[34b5bdb6] | 100 | BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c |
---|
| 101 | |
---|
[23c3f72e] | 102 | libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \ |
---|
| 103 | src/printk_plugin.c \ |
---|
[90a5d194] | 104 | $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \ |
---|
| 105 | $(ERROR_C_FILES) $(ASSOCIATION_C_FILES) |
---|
[b8ad66c] | 106 | |
---|
| 107 | if UNIX |
---|
[8a5186d5] | 108 | libcsupport_a_SOURCES += src/unixlibc.c src/unixlibc_io.c src/hosterr.c |
---|
[b8ad66c] | 109 | else |
---|
[cd9ce153] | 110 | libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \ |
---|
| 111 | $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \ |
---|
[bceb652f] | 112 | $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) src/envlock.c \ |
---|
[f06e5a8] | 113 | $(TERMIOS_C_FILES) src/getpagesize.c src/getrusage.c |
---|
[b8ad66c] | 114 | endif |
---|
| 115 | |
---|
[543fe820] | 116 | EXTRA_DIST = src/TODO src/CASES src/README src/malloc_p.h |
---|
[b8ad66c] | 117 | |
---|
[6265b83] | 118 | include $(srcdir)/preinstall.am |
---|
[44c889a] | 119 | include $(top_srcdir)/automake/local.am |
---|