1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/automake/multilib.am |
---|
6 | include $(top_srcdir)/automake/compile.am |
---|
7 | |
---|
8 | noinst_LIBRARIES = libcsupport.a |
---|
9 | libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS) |
---|
10 | |
---|
11 | include_rtemsdir = $(includedir)/rtems |
---|
12 | include_rtems_HEADERS = include/console.h include/clockdrv.h \ |
---|
13 | include/rtems/framebuffer.h include/iosupp.h include/ringbuf.h \ |
---|
14 | include/rtc.h include/spurious.h include/timerdrv.h include/vmeintr.h |
---|
15 | |
---|
16 | ## motorola |
---|
17 | |
---|
18 | include_rtems_motoroladir = $(includedir)/rtems/motorola |
---|
19 | |
---|
20 | include_rtems_motorola_HEADERS = include/motorola/mc68230.h \ |
---|
21 | include/motorola/mc68681.h |
---|
22 | |
---|
23 | ## rtems |
---|
24 | include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \ |
---|
25 | include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \ |
---|
26 | include/rtems/malloc.h include/rtems/termiostypes.h |
---|
27 | |
---|
28 | ## zilog |
---|
29 | |
---|
30 | include_rtems_zilogdir = $(includedir)/rtems/zilog |
---|
31 | |
---|
32 | include_rtems_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \ |
---|
33 | include/zilog/z8536.h |
---|
34 | |
---|
35 | ## General stuff |
---|
36 | ERROR_C_FILES = src/error.c src/__assert.c |
---|
37 | |
---|
38 | ASSOCIATION_C_FILES = src/assoclocalbyname.c \ |
---|
39 | src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \ |
---|
40 | src/assocnamebad.c src/assocnamebylocalbitfield.c \ |
---|
41 | src/assocnamebylocal.c src/assocnamebyremotebitfield.c \ |
---|
42 | src/assocnamebyremote.c src/assocptrbylocal.c src/assocptrbyname.c \ |
---|
43 | src/assocptrbyremote.c src/assocremotebylocalbitfield.c \ |
---|
44 | src/assocremotebylocal.c src/assocremotebyname.c |
---|
45 | |
---|
46 | BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \ |
---|
47 | src/mount-mgr.c src/mount-mktgt.c src/libio_init.c \ |
---|
48 | src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c \ |
---|
49 | src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c |
---|
50 | |
---|
51 | TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \ |
---|
52 | src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \ |
---|
53 | src/tcflow.c src/tcflush.c src/tcgetpgrp.c src/tcsendbreak.c \ |
---|
54 | src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \ |
---|
55 | src/termios_baud2index.c src/termios_baud2num.c src/termios_num2baud.c \ |
---|
56 | src/termios_setinitialbaud.c |
---|
57 | |
---|
58 | SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \ |
---|
59 | src/write_r.c \ |
---|
60 | src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \ |
---|
61 | src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/fchown.c src/chown.c \ |
---|
62 | src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \ |
---|
63 | src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \ |
---|
64 | src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c src/creat.c \ |
---|
65 | src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c |
---|
66 | |
---|
67 | ## Until sys/uio.h is moved to libcsupport, we have to have networking |
---|
68 | ## enabled to compile these. Hopefully this is a temporary situation. |
---|
69 | if NEWLIB |
---|
70 | SYSTEM_CALL_C_FILES += src/readv.c src/writev.c |
---|
71 | endif |
---|
72 | |
---|
73 | DIRECTORY_SCAN_C_FILES = |
---|
74 | ## 20 Nov 2008: Now using these from newlib's posix directory |
---|
75 | DIRECTORY_SCAN_C_FILES += src/opendir.c src/closedir.c src/readdir.c \ |
---|
76 | src/rewinddir.c src/scandir.c src/seekdir.c src/telldir.c |
---|
77 | ## Newlib SHOULD have provided this one |
---|
78 | DIRECTORY_SCAN_C_FILES += src/readdir_r.c |
---|
79 | ## Comment out when using these from newlib's unix directory |
---|
80 | DIRECTORY_SCAN_C_FILES += src/getcwd.c |
---|
81 | |
---|
82 | ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \ |
---|
83 | src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \ |
---|
84 | src/setpgid.c src/setsid.c |
---|
85 | |
---|
86 | MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \ |
---|
87 | src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \ |
---|
88 | src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \ |
---|
89 | src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \ |
---|
90 | src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \ |
---|
91 | src/malloc_statistics_helpers.c src/malloc_boundary.c \ |
---|
92 | src/posix_memalign.c src/rtems_memalign.c src/malloc_deferred.c \ |
---|
93 | src/malloc_sbrk_helpers.c src/malloc_dirtier.c src/malloc_p.h \ |
---|
94 | src/rtems_malloc.c |
---|
95 | |
---|
96 | PASSWORD_GROUP_C_FILES = src/getpwent.c |
---|
97 | |
---|
98 | TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c |
---|
99 | ## 20 Nov 2008: Now using these from newlib's posix directory |
---|
100 | TERMINAL_IDENTIFICATION_C_FILES += src/isatty.c src/isatty_r.c |
---|
101 | ## Comment out when using these from newlib's unix directory |
---|
102 | TERMINAL_IDENTIFICATION_C_FILES += src/ttyname.c |
---|
103 | |
---|
104 | LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \ |
---|
105 | src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \ |
---|
106 | src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c \ |
---|
107 | src/kill_noposix.c src/sleep_noposix.c src/utsname.c |
---|
108 | |
---|
109 | BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c |
---|
110 | |
---|
111 | libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \ |
---|
112 | src/printk_plugin.c src/putk.c src/vprintk.c \ |
---|
113 | src/sup_fs_is_separator.c src/sup_fs_get_start_loc.c \ |
---|
114 | src/sup_fs_get_sym_start_loc.c \ |
---|
115 | $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \ |
---|
116 | $(ERROR_C_FILES) $(ASSOCIATION_C_FILES) |
---|
117 | |
---|
118 | libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \ |
---|
119 | $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \ |
---|
120 | $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) src/envlock.c \ |
---|
121 | $(TERMIOS_C_FILES) src/getpagesize.c src/getrusage.c |
---|
122 | |
---|
123 | libcsupport_a_SOURCES += src/flockfile.c src/funlockfile.c src/ftrylockfile.c |
---|
124 | |
---|
125 | EXTRA_DIST = src/TODO src/CASES src/README |
---|
126 | |
---|
127 | include $(srcdir)/preinstall.am |
---|
128 | include $(top_srcdir)/automake/local.am |
---|