summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/Makefile.am
blob: 72dfdc264f76c32646a447941dd2867b97fc4ccc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
##
##  $Id$
##

include $(top_srcdir)/automake/multilib.am
include $(top_srcdir)/automake/compile.am

project_lib_LIBRARIES = libcsupport.a
noinst_LIBRARIES = libcsupport.a
libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS)

include_rtemsdir = $(includedir)/rtems
include_rtems_HEADERS = include/chain.h include/console.h include/clockdrv.h \
    include/iosupp.h include/ringbuf.h include/rtc.h include/spurious.h \
    include/timerdrv.h include/vmeintr.h

## motorola

include_rtems_motoroladir = $(includedir)/rtems/motorola

include_rtems_motorola_HEADERS = include/motorola/mc68230.h \
    include/motorola/mc68681.h

## rtems
include_rtems_HEADERS += include/rtems/assoc.h include/rtems/error.h \
    include/rtems/libcsupport.h include/rtems/libio.h include/rtems/libio_.h \
    include/rtems/malloc.h include/rtems/termiostypes.h

## zilog

include_rtems_zilogdir = $(includedir)/rtems/zilog

include_rtems_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \
    include/zilog/z8536.h

##  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

BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
    src/libio_init.c \
    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c \
    src/open_dev_console.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/tcgetprgrp.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

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/creat.c \
    src/chroot.c src/sync.c src/_rename_r.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 LIBNETWORKING
SYSTEM_CALL_C_FILES += src/readv.c src/writev.c
endif

DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c \
    src/readdir_r.c src/rewinddir.c src/scandir.c src/seekdir.c \
    src/telldir.c 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/setpgid.c src/setsid.c

MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
    src/realloc.c src/_calloc_r.c src/free.c src/_free_r.c src/_malloc_r.c \
    src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \
    src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \
    src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \
    src/malloc_statistics_helpers.c src/malloc_boundary.c \
    src/posix_memalign.c src/rtems_memalign.c src/malloc_deferred.c \
    src/malloc_sbrk_helpers.c src/malloc_dirtier.c

PASSWORD_GROUP_C_FILES = src/getpwent.c

TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c 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.c src/newlibc_exit.c src/no_posix.c src/no_libc.c src/utsname.c

BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c

libcsupport_a_SOURCES = src/gxx_wrappers.c src/printk.c src/printk_plugin.c \
    $(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
    $(ERROR_C_FILES) $(ASSOCIATION_C_FILES)

if UNIX
libcsupport_a_SOURCES += src/unixlibc.c src/unixlibc_io.c src/hosterr.c
else
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) src/envlock.c \
    $(TERMIOS_C_FILES) src/getpagesize.c
endif

EXTRA_DIST = src/TODO src/CASES src/README src/malloc_p.h

include $(srcdir)/preinstall.am
include $(top_srcdir)/automake/local.am