From deb66d121b3f4d5b54f5cf7867dc33283e10b536 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 14 May 2002 18:46:05 +0000 Subject: 2002-05-03 Ralf Corsepius * include/Makefile.am: Remove. * include/sys/utsname.h: Added, removed times (now in newlib). * Makefile.am: Merge include/Makefile.am * libc/utsname.c: Relocated from posix/src. * libc/Makefile.am: Reflect changes above. * configure.ac: Remove include/Makefile --- c/src/lib/Makefile.am | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) (limited to 'c/src/lib/Makefile.am') diff --git a/c/src/lib/Makefile.am b/c/src/lib/Makefile.am index 35f812633f..93e28ebdee 100644 --- a/c/src/lib/Makefile.am +++ b/c/src/lib/Makefile.am @@ -4,7 +4,87 @@ ACLOCAL_AMFLAGS = -I ../../../aclocal -SUBDIRS = include libc +include $(top_srcdir)/../../../automake/multilib.am + +SUBDIRS = . libc + +include_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 + +LIBC_HFILES = include/stdint.h include/inttypes.h +include_HEADERS += $(LIBC_HFILES) + +PREINSTALL_FILES = $(PROJECT_INCLUDE) \ + $(include_HEADERS:include/%=$(PROJECT_INCLUDE)/%) + +$(PROJECT_INCLUDE): + @$(mkinstalldirs) $@ +$(PROJECT_INCLUDE)/motorola: + @$(mkinstalldirs) $@ +$(PROJECT_INCLUDE)/rtems: + @$(mkinstalldirs) $@ +$(PROJECT_INCLUDE)/sys: + @$(mkinstalldirs) $@ +$(PROJECT_INCLUDE)/zilog: + @$(mkinstalldirs) $@ + +$(PROJECT_INCLUDE)/%.h: include/%.h + $(INSTALL_DATA) $< $@ + +## motorola + +include_motoroladir = $(includedir)/motorola + +include_motorola_HEADERS = include/motorola/mc68230.h include/motorola/mc68681.h + +PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola \ + $(include_motorola_HEADERS:include/%=$(PROJECT_INCLUDE)/%) + +## rtems +include_rtemsdir = $(includedir)/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/termiostypes.h + +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems \ + $(include_rtems_HEADERS:include/%=$(PROJECT_INCLUDE)/%) + +## sys + +include_sysdir = $(includedir)/sys + +if !HAS_NETWORKING +NETWORKING_H_FILES = include/sys/ioctl.h +endif + +if NEWLIB +NEWLIB_H_FILES = include/sys/termios.h include/sys/cdefs.h include/sys/utsname.h +endif + +include_sys_HEADERS = \ +include/sys/ioccom.h \ +include/sys/ttycom.h \ +include/sys/utime.h \ +$(NEWLIB_H_FILES) $(NETWORKING_H_FILES) + +PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \ + $(include_sys_HEADERS:include/%=$(PROJECT_INCLUDE)/%) + +## zilog + +include_zilogdir = $(includedir)/zilog + +include_zilog_HEADERS = include/zilog/z8036.h include/zilog/z8530.h \ + include/zilog/z8536.h + +PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog \ + $(include_zilog_HEADERS:include/%=$(PROJECT_INCLUDE)/%) + +## General stuff +all-local: $(PREINSTALL_FILES) include $(top_srcdir)/../../../automake/subdirs.am include $(top_srcdir)/../../../automake/local.am -- cgit v1.2.3