source: rtems/cpukit/libcsupport/Makefile.am @ 337a186

Last change on this file since 337a186 was 337a186, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 21, 2018 at 11:40:18 AM

Add a simple task console driver

Close #3320.

  • Property mode set to 100644
File size: 5.5 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4noinst_LIBRARIES = libcsupport.a libcalloc.a
5libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS)
6libcalloc_a_CPPFLAGS = $(AM_CPPFLAGS)
7
8## rtems
9##  General stuff
10ERROR_C_FILES = src/error.c src/__assert.c
11
12ASSOCIATION_C_FILES = src/assoclocalbyname.c \
13    src/assoclocalbyremotebitfield.c src/assoclocalbyremote.c \
14    src/assocnamebad.c src/assocnamebylocalbitfield.c \
15    src/assocnamebylocal.c src/assocnamebyremotebitfield.c \
16    src/assocnamebyremote.c src/assocptrbylocal.c src/assocptrbyname.c \
17    src/assocptrbyremote.c src/assocremotebylocalbitfield.c \
18    src/assocremotebylocal.c src/assocremotebyname.c
19ASSOCIATION_C_FILES += src/assoc32tostring.c
20ASSOCIATION_C_FILES += src/assocthreadstatestostring.c
21
22BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
23    src/mount-mgr.c src/mount-mktgt.c src/libio_init.c \
24    src/privateenv.c \
25    src/libio_exit.c \
26    src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c
27BASE_FS_C_FILES += src/uenvgetgroups.c
28
29TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \
30    src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \
31    src/tcflow.c src/tcflush.c src/tcgetpgrp.c src/tcsendbreak.c \
32    src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
33    src/termios_baud2index.c src/termios_baud2num.c src/termios_num2baud.c \
34    src/termios_setinitialbaud.c src/termios_baudtable.c src/cfsetspeed.c \
35    src/cfmakeraw.c src/cfmakesane.c src/termios_setbestbaud.c
36
37SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c \
38    src/write_r.c \
39    src/lseek.c src/ioctl.c src/mkdir.c src/mknod.c src/mkfifo.c src/rmdir.c \
40    src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/fchown.c src/chown.c \
41    src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c \
42    src/fcntl.c src/fpathconf.c src/getdents.c src/fsync.c src/fdatasync.c \
43    src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
44    src/chroot.c src/sync.c src/_rename_r.c src/statvfs.c src/utimes.c src/lchown.c
45SYSTEM_CALL_C_FILES += src/clock.c
46
47## Until sys/uio.h is moved to libcsupport, we have to have networking
48## enabled to compile these.  Hopefully this is a temporary situation.
49if NEWLIB
50SYSTEM_CALL_C_FILES += src/readv.c src/writev.c
51endif
52
53DIRECTORY_SCAN_C_FILES =
54## Newlib SHOULD have provided this one
55DIRECTORY_SCAN_C_FILES += src/readdir_r.c
56## Comment out when using these from newlib's unix directory
57DIRECTORY_SCAN_C_FILES += src/getcwd.c
58
59ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
60    src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
61    src/seteuid.c src/setgid.c src/setuid.c src/setegid.c src/setpgid.c \
62    src/setsid.c src/setgroups.c
63
64MALLOC_C_FILES = src/malloc_initialize.c src/malloc.c \
65    src/realloc.c src/_calloc_r.c src/_malloc_r.c \
66    src/free.c src/_free_r.c \
67    src/_realloc_r.c src/mallocfreespace.c \
68    src/mallocgetheapptr.c src/mallocsetheapptr.c \
69    src/mallocinfo.c src/malloc_walk.c \
70    src/posix_memalign.c \
71    src/rtems_memalign.c src/malloc_deferred.c \
72    src/malloc_dirtier.c src/malloc_p.h \
73    src/rtems_heap_extend_via_sbrk.c \
74    src/rtems_heap_null_extend.c \
75    src/rtems_heap_extend.c \
76    src/rtems_heap_greedy.c
77MALLOC_C_FILES += src/cachealignedalloc.c
78MALLOC_C_FILES += src/cachecoherentalloc.c
79
80PASSWORD_GROUP_C_FILES = src/pwdgrp.c
81PASSWORD_GROUP_C_FILES += src/getgrent.c
82PASSWORD_GROUP_C_FILES += src/getgrnam.c
83PASSWORD_GROUP_C_FILES += src/getpwent.c
84
85TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c
86## 20 Nov 2008: Now using these from newlib's posix directory
87TERMINAL_IDENTIFICATION_C_FILES += src/isatty.c src/isatty_r.c
88## Comment out when using these from newlib's unix directory
89TERMINAL_IDENTIFICATION_C_FILES += src/ttyname.c
90
91LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
92    src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
93    src/newlibc_reent.c src/newlibc_exit.c \
94    src/kill_noposix.c src/utsname.c src/realpath.c \
95    src/arc4random_getentropy_fail.c
96
97BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c
98
99libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
100    src/printk_plugin.c src/putk.c src/vprintk.c \
101    src/rtems_putc.c \
102    src/print_fprintf.c \
103    src/print_printf.c \
104    src/printf_plugin.c \
105    src/sup_fs_location.c \
106    src/sup_fs_eval_path.c \
107    src/sup_fs_eval_path_generic.c \
108    src/sup_fs_check_permissions.c \
109    src/sup_fs_next_token.c \
110    src/sup_fs_exist_in_same_instance.c \
111    src/sup_fs_mount_iterate.c \
112    src/sup_fs_deviceio.c \
113    src/clonenode.c \
114    src/freenode.c \
115    src/resource_snapshot.c \
116    $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
117    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
118libcsupport_a_SOURCES += src/consolesimple.c
119libcsupport_a_SOURCES += src/consolesimpleread.c
120libcsupport_a_SOURCES += src/consolesimpletask.c
121libcsupport_a_SOURCES += src/printertask.c
122libcsupport_a_SOURCES += src/printerfprintfputc.c
123
124libcsupport_a_SOURCES += $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
125    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
126    $(DIRECTORY_SCAN_C_FILES) $(ID_C_FILES) \
127    $(TERMIOS_C_FILES) src/getpagesize.c src/getrusage.c src/posix_devctl.c
128
129
130libcsupport_a_SOURCES += src/flockfile.c src/funlockfile.c src/ftrylockfile.c
131
132libcalloc_a_SOURCES = src/calloc.c
133libcalloc_a_CFLAGS = -fno-builtin
134
135EXTRA_DIST = src/TODO src/CASES src/README
136
137include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.