Ignore:
Timestamp:
Jun 17, 2002, 3:05:53 PM (18 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7001a48
Parents:
ba2df911
Message:

2002-06-17 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge src/Makefile.am.
  • configure.ac: Reflect changes above.
  • src/Makefile.am: Remove.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/Makefile.am

    rba2df911 rb8ad66c  
    66
    77include $(top_srcdir)/../automake/multilib.am
    8 
    9 SUBDIRS = . src
     8include $(top_srcdir)/../automake/compile.am
     9include $(top_srcdir)/../automake/lib.am
    1010
    1111include_HEADERS = include/chain.h include/console.h include/clockdrv.h \
     
    8888all-local: $(PREINSTALL_FILES)
    8989
    90 include $(top_srcdir)/../automake/subdirs.am
     90LIBNAME = libcsupport
     91LIB = ${ARCH}/${LIBNAME}.a
     92
     93INCLUDES = -Isrc
     94
     95ERROR_C_FILES = src/error.c
     96
     97ASSOCIATION_C_FILES = src/assoc.c src/assocnamebad.c
     98
     99BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \
     100    src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c
     101
     102TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c src/cfsetospeed.c \
     103    src/tcgetattr.c src/tcsetattr.c src/tcdrain.c src/tcflow.c src/tcflush.c src/tcgetprgrp.c \
     104    src/tcsendbreak.c src/tcsetpgrp.c src/termios.c src/termiosinitialize.c \
     105    src/termiosreserveresources.c
     106
     107SYSTEM_CALL_C_FILES = src/open.c src/close.c src/read.c src/write.c src/lseek.c src/ioctl.c src/mkdir.c \
     108    src/mknod.c src/mkfifo.c src/rmdir.c src/chdir.c src/chmod.c src/fchdir.c src/fchmod.c src/chown.c \
     109    src/link.c src/unlink.c src/umask.c src/ftruncate.c src/utime.c src/fstat.c src/fcntl.c src/fpathconf.c \
     110    src/getdents.c src/fsync.c src/fdatasync.c src/pipe.c src/dup.c src/dup2.c src/symlink.c src/readlink.c \
     111    src/creat.c src/chroot.c
     112
     113DIRECTORY_SCAN_C_FILES = src/opendir.c src/closedir.c src/readdir.c src/rewinddir.c \
     114    src/scandir.c src/seekdir.c src/telldir.c src/getcwd.c
     115
     116MALLOC_C_FILES = src/malloc.c src/mallocfreespace.c src/__brk.c src/__sbrk.c
     117
     118PASSWORD_GROUP_C_FILES = src/getpwent.c src/getgrent.c
     119
     120TERMINAL_IDENTIFICATION_C_FILES = src/ctermid.c src/isatty.c src/ttyname.c src/ttyname_r.c
     121
     122LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c src/truncate.c src/access.c \
     123    src/stat.c src/lstat.c src/pathconf.c src/newlibc.c src/no_posix.c src/no_libc.c src/utsname.c
     124
     125UNIX_LIBC_C_FILES = src/unixlibc.c src/hosterr.c
     126
     127COMMON_C_FILES = src/gxx_wrappers.c src/printk.c $(BASE_FS_C_FILES) \
     128    $(MALLOC_C_FILES) $(TERMIOS_C_FILES) $(ERROR_C_FILES) \
     129    $(ASSOCIATION_C_FILES)
     130
     131UNIX_C_FILES = $(UNIX_LIBC_C_FILES)
     132
     133EMBEDDED_C_FILES = $(LIBC_GLUE_C_FILES) $(PASSWORD_GROUP_C_FILES) \
     134    $(TERMINAL_IDENTIFICATION_C_FILES) $(SYSTEM_CALL_C_FILES) \
     135    $(DIRECTORY_SCAN_C_FILES)
     136
     137if UNIX
     138C_FILES = $(COMMON_C_FILES) $(UNIX_C_FILES)
     139else
     140C_FILES = $(COMMON_C_FILES) $(EMBEDDED_C_FILES)
     141endif
     142
     143C_O_FILES = $(C_FILES:src/%.c=${ARCH}/%.o)
     144OBJS = $(C_O_FILES)
     145
     146#
     147# Add local stuff here using +=
     148#
     149
     150AM_CFLAGS += $(LIBC_DEFINES)
     151
     152all-local: ${ARCH} ${LIB}
     153
     154${ARCH}/%.o: src/%.c
     155        ${COMPILE} -o $@ -c $<
     156
     157$(LIB): ${OBJS}
     158        $(make-library)
     159
     160DOC_FILES = TODO CASES
     161
     162EXTRA_DIST = $(DOC_FILES) $(COMMON_C_FILES) $(EMBEDDED_C_FILES) \
     163    $(UNIX_C_FILES)
     164
    91165include $(top_srcdir)/../automake/local.am
Note: See TracChangeset for help on using the changeset viewer.