source: rtems/cpukit/libcsupport/Makefile.am @ 68e1ccc

5
Last change on this file since 68e1ccc was 68e1ccc, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 11, 2018 at 4:30:20 AM

build: Remove specialized CPPFLAGS

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