From 6265b8306047c800ac84514601ffd05322db79d4 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 8 Feb 2005 15:02:25 +0000 Subject: Split preinstallation rules in to separate files (preinstall.am). --- cpukit/Makefile.am | 318 ++------------------------------------- cpukit/itron/Makefile.am | 245 +----------------------------- cpukit/libcsupport/Makefile.am | 140 +---------------- cpukit/posix/Makefile.am | 186 +---------------------- cpukit/rtems/Makefile.am | 280 +--------------------------------- cpukit/sapi/Makefile.am | 57 +------ cpukit/score/Makefile.am | 330 +---------------------------------------- cpukit/wrapup/Makefile.am | 14 +- 8 files changed, 42 insertions(+), 1528 deletions(-) (limited to 'cpukit') diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 6f7b2e15b2..8c4d202c6c 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefile.am @@ -15,15 +15,23 @@ SUBDIRS += httpd SUBDIRS += ftpd SUBDIRS += wrapup -noinst_DATA = preinstall-stamp +CLEANFILES = +DISTCLEANFILES = +noinst_DATA = preinstall-stamp preinstall-stamp: $(MAKE) $(AM_MAKEFLAGS) preinstall touch preinstall-stamp -CLEANFILES = preinstall-stamp +CLEANFILES += preinstall-stamp include_HEADERS = +include_rtemsdir = $(includedir)/rtems +include_rtems_HEADERS = + +include_rtems_rtemsdir = $(includedir)/rtems/rtems +include_rtems_rtems_HEADERS = + if DEPRECATED include_HEADERS += backward/asm.h backward/chain.h backward/clockdrv.h \ backward/confdefs.h backward/console.h backward/imfs.h backward/iosupp.h \ @@ -66,8 +74,7 @@ include_sys_HEADERS += libcsupport/include/sys/ioccom.h \ libcsupport/include/sys/cdefs.h endif -include_rtemsdir = $(includedir)/rtems -include_rtems_HEADERS = include/rtems/bspIo.h include/rtems/userenv.h \ +include_rtems_HEADERS += include/rtems/bspIo.h include/rtems/userenv.h \ include/rtems/fs.h include/rtems/pci.h include/rtems/stdint.h \ include/rtems/concat.h include/rtems/tar.h @@ -134,308 +141,9 @@ include_rtems_HEADERS += libmisc/untar/untar.h ## fsmount include_rtems_HEADERS += libmisc/fsmount/fsmount.h -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE) - @: > $(PROJECT_INCLUDE)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) - -if DEPRECATED -$(PROJECT_INCLUDE)/asm.h: backward/asm.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/asm.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/asm.h - -$(PROJECT_INCLUDE)/chain.h: backward/chain.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/chain.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/chain.h - -$(PROJECT_INCLUDE)/clockdrv.h: backward/clockdrv.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/clockdrv.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/clockdrv.h - -$(PROJECT_INCLUDE)/confdefs.h: backward/confdefs.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/confdefs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/confdefs.h - -$(PROJECT_INCLUDE)/console.h: backward/console.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/console.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/console.h - -$(PROJECT_INCLUDE)/imfs.h: backward/imfs.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/imfs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/imfs.h - -$(PROJECT_INCLUDE)/iosupp.h: backward/iosupp.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/iosupp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/iosupp.h - -$(PROJECT_INCLUDE)/ringbuf.h: backward/ringbuf.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ringbuf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/ringbuf.h - -$(PROJECT_INCLUDE)/rtc.h: backward/rtc.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtc.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtc.h - -$(PROJECT_INCLUDE)/spurious.h: backward/spurious.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/spurious.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/spurious.h - -$(PROJECT_INCLUDE)/timerdrv.h: backward/timerdrv.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/timerdrv.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/timerdrv.h - -$(PROJECT_INCLUDE)/vmeintr.h: backward/vmeintr.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/vmeintr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/vmeintr.h - -if HAS_NETWORKING -$(PROJECT_INCLUDE)/ftpd.h: backward/ftpd.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ftpd.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/ftpd.h -endif - -$(PROJECT_INCLUDE)/motorola/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/motorola - @: > $(PROJECT_INCLUDE)/motorola/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/motorola/$(dirstamp) - -$(PROJECT_INCLUDE)/motorola/mc68681.h: backward/motorola/mc68681.h $(PROJECT_INCLUDE)/motorola/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68681.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68681.h - -$(PROJECT_INCLUDE)/motorola/mc68230.h: backward/motorola/mc68230.h $(PROJECT_INCLUDE)/motorola/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/motorola/mc68230.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/motorola/mc68230.h - -$(PROJECT_INCLUDE)/zilog/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/zilog - @: > $(PROJECT_INCLUDE)/zilog/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/zilog/$(dirstamp) - -$(PROJECT_INCLUDE)/zilog/z8536.h: backward/zilog/z8536.h $(PROJECT_INCLUDE)/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8536.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8536.h - -$(PROJECT_INCLUDE)/zilog/z8036.h: backward/zilog/z8036.h $(PROJECT_INCLUDE)/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8036.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8036.h - -$(PROJECT_INCLUDE)/zilog/z8030.h: backward/zilog/z8030.h $(PROJECT_INCLUDE)/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/zilog/z8030.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/zilog/z8030.h - -if !UNIX -$(PROJECT_INCLUDE)/dosfs.h: backward/dosfs.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/dosfs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/dosfs.h -endif - -if HAS_ITRON -$(PROJECT_INCLUDE)/itron.h: backward/itron.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itron.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itron.h -endif -endif - -if NEWLIB -$(PROJECT_INCLUDE)/sys/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/sys - @: > $(PROJECT_INCLUDE)/sys/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sys/$(dirstamp) - -$(PROJECT_INCLUDE)/stdint.h: libcsupport/include/stdint.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/stdint.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/stdint.h - -$(PROJECT_INCLUDE)/inttypes.h: libcsupport/include/inttypes.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/inttypes.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/inttypes.h - -$(PROJECT_INCLUDE)/tar.h: libcsupport/include/tar.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tar.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/tar.h - -$(PROJECT_INCLUDE)/sys/ioccom.h: libcsupport/include/sys/ioccom.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioccom.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioccom.h - -$(PROJECT_INCLUDE)/sys/filio.h: libcsupport/include/sys/filio.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/filio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/filio.h - -$(PROJECT_INCLUDE)/sys/ioctl.h: libcsupport/include/sys/ioctl.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ioctl.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioctl.h - -$(PROJECT_INCLUDE)/sys/sockio.h: libcsupport/include/sys/sockio.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/sockio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/sockio.h - -$(PROJECT_INCLUDE)/sys/ttycom.h: libcsupport/include/sys/ttycom.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/ttycom.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ttycom.h - -$(PROJECT_INCLUDE)/sys/termios.h: libcsupport/include/sys/termios.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/termios.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/termios.h - -$(PROJECT_INCLUDE)/sys/utsname.h: libcsupport/include/sys/utsname.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/utsname.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/utsname.h - -$(PROJECT_INCLUDE)/sys/cdefs.h: libcsupport/include/sys/cdefs.h $(PROJECT_INCLUDE)/sys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/cdefs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/cdefs.h -endif - -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/bspIo.h: include/rtems/bspIo.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bspIo.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/bspIo.h - -$(PROJECT_INCLUDE)/rtems/userenv.h: include/rtems/userenv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/userenv.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/userenv.h - -$(PROJECT_INCLUDE)/rtems/fs.h: include/rtems/fs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fs.h - -$(PROJECT_INCLUDE)/rtems/pci.h: include/rtems/pci.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/pci.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/pci.h - -$(PROJECT_INCLUDE)/rtems/stdint.h: include/rtems/stdint.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stdint.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stdint.h - -$(PROJECT_INCLUDE)/rtems/concat.h: include/rtems/concat.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/concat.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/concat.h - -$(PROJECT_INCLUDE)/rtems/tar.h: include/rtems/tar.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/tar.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/tar.h - -$(PROJECT_INCLUDE)/rtems/imfs.h: libfs/src/imfs/imfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/imfs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/imfs.h - -if !UNIX -$(PROJECT_INCLUDE)/rtems/dosfs.h: libfs/src/dosfs/dosfs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dosfs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dosfs.h -endif - -if !UNIX -$(PROJECT_INCLUDE)/rtems/bdbuf.h: libblock/include/rtems/bdbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bdbuf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/bdbuf.h - -$(PROJECT_INCLUDE)/rtems/blkdev.h: libblock/include/rtems/blkdev.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/blkdev.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/blkdev.h - -$(PROJECT_INCLUDE)/rtems/diskdevs.h: libblock/include/rtems/diskdevs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/diskdevs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/diskdevs.h - -$(PROJECT_INCLUDE)/rtems/ramdisk.h: libblock/include/rtems/ramdisk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ramdisk.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ramdisk.h - -$(PROJECT_INCLUDE)/rtems/ide_part_table.h: libblock/include/rtems/ide_part_table.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ide_part_table.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ide_part_table.h -endif - -if HAS_NETWORKING -$(PROJECT_INCLUDE)/rtems/ftpd.h: ftpd/ftpd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ftpd.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ftpd.h -endif - -$(PROJECT_INCLUDE)/rtems/capture.h: libmisc/capture/capture.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture.h - -$(PROJECT_INCLUDE)/rtems/capture-cli.h: libmisc/capture/capture-cli.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/capture-cli.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/capture-cli.h - -$(PROJECT_INCLUDE)/rtems/cpuuse.h: libmisc/cpuuse/cpuuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cpuuse.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cpuuse.h - -$(PROJECT_INCLUDE)/rtems/devnull.h: libmisc/devnull/devnull.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/devnull.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/devnull.h - -$(PROJECT_INCLUDE)/rtems/dumpbuf.h: libmisc/dumpbuf/dumpbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/dumpbuf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/dumpbuf.h - -$(PROJECT_INCLUDE)/rtems/monitor.h: libmisc/monitor/monitor.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/monitor.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/monitor.h - -$(PROJECT_INCLUDE)/rtems/mw_fb.h: libmisc/mw-fb/mw_fb.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_fb.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_fb.h - -$(PROJECT_INCLUDE)/rtems/mw_uid.h: libmisc/mw-fb/mw_uid.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mw_uid.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mw_uid.h - -if LIBSHELL -$(PROJECT_INCLUDE)/rtems/shell.h: libmisc/shell/shell.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/shell.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/shell.h -endif - -$(PROJECT_INCLUDE)/rtems/rtmonuse.h: libmisc/rtmonuse/rtmonuse.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtmonuse.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtmonuse.h - -if LIBSERDBG -$(PROJECT_INCLUDE)/rtems/serdbgcnf.h: libmisc/serdbg/serdbgcnf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/serdbgcnf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/serdbgcnf.h - -$(PROJECT_INCLUDE)/rtems/serdbg.h: libmisc/serdbg/serdbg.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/serdbg.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/serdbg.h - -$(PROJECT_INCLUDE)/rtems/termios_printk_cnf.h: libmisc/serdbg/termios_printk_cnf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termios_printk_cnf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termios_printk_cnf.h - -$(PROJECT_INCLUDE)/rtems/termios_printk.h: libmisc/serdbg/termios_printk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termios_printk.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termios_printk.h -endif - -$(PROJECT_INCLUDE)/rtems/stackchk.h: libmisc/stackchk/stackchk.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/stackchk.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/stackchk.h - -$(PROJECT_INCLUDE)/rtems/untar.h: libmisc/untar/untar.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/untar.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/untar.h - -$(PROJECT_INCLUDE)/rtems/fsmount.h: libmisc/fsmount/fsmount.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fsmount.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fsmount.h +all-local: $(PREINSTALL_FILES) -CLEANFILES += $(PREINSTALL_FILES) -DISTCLEANFILES = $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/subdirs.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/itron/Makefile.am b/cpukit/itron/Makefile.am index 3618cc6907..948a5604ed 100644 --- a/cpukit/itron/Makefile.am +++ b/cpukit/itron/Makefile.am @@ -7,6 +7,7 @@ include $(top_srcdir)/automake/compile.am EXTRA_DIST = CLEANFILES = +DISTCLEANFILES = if HAS_ITRON ## include @@ -108,8 +109,6 @@ AM_CPPFLAGS += -D__RTEMS_INSIDE__ noinst_LIBRARIES = libitron.a libitron_a_SOURCES = $(C_FILES) libitron_a_CPPFLAGS = $(AM_CPPFLAGS) - -all-local: $(PREINSTALL_FILES) endif UNUSED_C_FILES = src/cre_mbx.c src/del_mbx.c src/mboxtranslatereturncode.c \ @@ -118,246 +117,10 @@ UNUSED_C_FILES = src/cre_mbx.c src/del_mbx.c src/mboxtranslatereturncode.c \ EXTRA_DIST += $(UNUSED_C_FILES) src/TODO -PREINSTALL_DIRS = -PREINSTALL_FILES = - -if HAS_ITRON -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/itron.h: include/itron.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron.h - -$(PROJECT_INCLUDE)/itronsys/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/itronsys - @: > $(PROJECT_INCLUDE)/itronsys/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - -$(PROJECT_INCLUDE)/itronsys/eventflags.h: include/itronsys/eventflags.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/eventflags.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/eventflags.h - -$(PROJECT_INCLUDE)/itronsys/fmempool.h: include/itronsys/fmempool.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/fmempool.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/fmempool.h - -$(PROJECT_INCLUDE)/itronsys/intr.h: include/itronsys/intr.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/intr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/intr.h - -$(PROJECT_INCLUDE)/itronsys/mbox.h: include/itronsys/mbox.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/mbox.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/mbox.h - -$(PROJECT_INCLUDE)/itronsys/msgbuffer.h: include/itronsys/msgbuffer.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/msgbuffer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/msgbuffer.h - -$(PROJECT_INCLUDE)/itronsys/network.h: include/itronsys/network.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/network.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/network.h - -$(PROJECT_INCLUDE)/itronsys/port.h: include/itronsys/port.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/port.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/port.h - -$(PROJECT_INCLUDE)/itronsys/semaphore.h: include/itronsys/semaphore.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/semaphore.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/semaphore.h - -$(PROJECT_INCLUDE)/itronsys/status.h: include/itronsys/status.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/status.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/status.h - -$(PROJECT_INCLUDE)/itronsys/sysmgmt.h: include/itronsys/sysmgmt.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/sysmgmt.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/sysmgmt.h - -$(PROJECT_INCLUDE)/itronsys/task.h: include/itronsys/task.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/task.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/task.h - -$(PROJECT_INCLUDE)/itronsys/time.h: include/itronsys/time.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/time.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/time.h - -$(PROJECT_INCLUDE)/itronsys/types.h: include/itronsys/types.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/types.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/types.h - -$(PROJECT_INCLUDE)/itronsys/vmempool.h: include/itronsys/vmempool.h $(PROJECT_INCLUDE)/itronsys/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/itronsys/vmempool.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/itronsys/vmempool.h - -$(PROJECT_INCLUDE)/rtems/itron/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/itron - @: > $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/itron/config.h: include/rtems/itron/config.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/config.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/config.h - -$(PROJECT_INCLUDE)/rtems/itron/eventflags.h: include/rtems/itron/eventflags.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/eventflags.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/eventflags.h - -$(PROJECT_INCLUDE)/rtems/itron/fmempool.h: include/rtems/itron/fmempool.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/fmempool.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/fmempool.h - -$(PROJECT_INCLUDE)/rtems/itron/intr.h: include/rtems/itron/intr.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/intr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/intr.h - -$(PROJECT_INCLUDE)/rtems/itron/itronapi.h: include/rtems/itron/itronapi.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/itronapi.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/itronapi.h - -$(PROJECT_INCLUDE)/rtems/itron/mbox.h: include/rtems/itron/mbox.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/mbox.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/mbox.h - -$(PROJECT_INCLUDE)/rtems/itron/msgbuffer.h: include/rtems/itron/msgbuffer.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.h - -$(PROJECT_INCLUDE)/rtems/itron/network.h: include/rtems/itron/network.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/network.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/network.h - -$(PROJECT_INCLUDE)/rtems/itron/object.h: include/rtems/itron/object.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/object.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/object.h - -$(PROJECT_INCLUDE)/rtems/itron/port.h: include/rtems/itron/port.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/port.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/port.h - -$(PROJECT_INCLUDE)/rtems/itron/semaphore.h: include/rtems/itron/semaphore.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/semaphore.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/semaphore.h - -$(PROJECT_INCLUDE)/rtems/itron/sysmgmt.h: include/rtems/itron/sysmgmt.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.h - -$(PROJECT_INCLUDE)/rtems/itron/task.h: include/rtems/itron/task.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/task.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/task.h - -$(PROJECT_INCLUDE)/rtems/itron/time.h: include/rtems/itron/time.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/time.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/time.h - -$(PROJECT_INCLUDE)/rtems/itron/vmempool.h: include/rtems/itron/vmempool.h $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/vmempool.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/vmempool.h +## PREINSTALLATION STUFF - Do not edit below -if INLINE -$(PROJECT_INCLUDE)/rtems/itron/eventflags.inl: inline/rtems/itron/eventflags.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/eventflags.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/eventflags.inl - -$(PROJECT_INCLUDE)/rtems/itron/fmempool.inl: inline/rtems/itron/fmempool.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/fmempool.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/fmempool.inl - -$(PROJECT_INCLUDE)/rtems/itron/intr.inl: inline/rtems/itron/intr.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/intr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/intr.inl - -$(PROJECT_INCLUDE)/rtems/itron/mbox.inl: inline/rtems/itron/mbox.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/mbox.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/mbox.inl - -$(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl: inline/rtems/itron/msgbuffer.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl - -$(PROJECT_INCLUDE)/rtems/itron/network.inl: inline/rtems/itron/network.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/network.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/network.inl - -$(PROJECT_INCLUDE)/rtems/itron/port.inl: inline/rtems/itron/port.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/port.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/port.inl - -$(PROJECT_INCLUDE)/rtems/itron/semaphore.inl: inline/rtems/itron/semaphore.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/semaphore.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/semaphore.inl - -$(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl: inline/rtems/itron/sysmgmt.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl - -$(PROJECT_INCLUDE)/rtems/itron/task.inl: inline/rtems/itron/task.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/task.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/task.inl - -$(PROJECT_INCLUDE)/rtems/itron/time.inl: inline/rtems/itron/time.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/time.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/time.inl - -$(PROJECT_INCLUDE)/rtems/itron/vmempool.inl: inline/rtems/itron/vmempool.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/vmempool.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/vmempool.inl - -else -$(PROJECT_INCLUDE)/rtems/itron/eventflags.inl: macros/rtems/itron/eventflags.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/eventflags.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/eventflags.inl - -$(PROJECT_INCLUDE)/rtems/itron/fmempool.inl: macros/rtems/itron/fmempool.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/fmempool.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/fmempool.inl - -$(PROJECT_INCLUDE)/rtems/itron/intr.inl: macros/rtems/itron/intr.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/intr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/intr.inl - -$(PROJECT_INCLUDE)/rtems/itron/mbox.inl: macros/rtems/itron/mbox.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/mbox.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/mbox.inl - -$(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl: macros/rtems/itron/msgbuffer.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/msgbuffer.inl - -$(PROJECT_INCLUDE)/rtems/itron/network.inl: macros/rtems/itron/network.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/network.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/network.inl - -$(PROJECT_INCLUDE)/rtems/itron/port.inl: macros/rtems/itron/port.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/port.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/port.inl - -$(PROJECT_INCLUDE)/rtems/itron/semaphore.inl: macros/rtems/itron/semaphore.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/semaphore.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/semaphore.inl - -$(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl: macros/rtems/itron/sysmgmt.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/sysmgmt.inl - -$(PROJECT_INCLUDE)/rtems/itron/task.inl: macros/rtems/itron/task.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/task.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/task.inl - -$(PROJECT_INCLUDE)/rtems/itron/time.inl: macros/rtems/itron/time.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/time.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/time.inl - -$(PROJECT_INCLUDE)/rtems/itron/vmempool.inl: macros/rtems/itron/vmempool.inl $(PROJECT_INCLUDE)/rtems/itron/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/itron/vmempool.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/itron/vmempool.inl -endif -endif +all-local: $(PREINSTALL_FILES) -CLEANFILES += $(PREINSTALL_FILES) -DISTCLEANFILES = $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 875aee7385..ecbfe96183 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -5,6 +5,9 @@ include $(top_srcdir)/automake/multilib.am include $(top_srcdir)/automake/compile.am +CLEANFILES = +DISTCLEANFILES = + noinst_LIBRARIES = libcsupport.a libcsupport_a_CPPFLAGS = $(AM_CPPFLAGS) @@ -93,141 +96,10 @@ endif EXTRA_DIST = src/TODO src/CASES src/README -DISTCLEANFILES = - -libcsupport/include/sys/$(dirstamp): - @$(mkdir_p) libcsupport/include/sys - @: > libcsupport/include/sys/$(dirstamp) - -if NEWLIB -libcsupport/include/sys/ioccom.h: include/sys/ioccom.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/ioccom.h - -libcsupport/include/sys/filio.h: include/sys/filio.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/filio.h - -libcsupport/include/sys/ioctl.h: include/sys/ioctl.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/ioctl.h - -libcsupport/include/sys/sockio.h: include/sys/sockio.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/sockio.h - -libcsupport/include/sys/ttycom.h: include/sys/ttycom.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/ttycom.h - -libcsupport/include/sys/termios.h: include/sys/termios.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/termios.h - -libcsupport/include/sys/utsname.h: include/sys/utsname.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/utsname.h - -libcsupport/include/sys/cdefs.h: include/sys/cdefs.h libcsupport/include/sys/$(dirstamp) - $(INSTALL_DATA) $< libcsupport/include/sys/cdefs.h -endif - -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/chain.h: include/chain.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/chain.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/chain.h - -$(PROJECT_INCLUDE)/rtems/console.h: include/console.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/console.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/console.h - -$(PROJECT_INCLUDE)/rtems/clockdrv.h: include/clockdrv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/clockdrv.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/clockdrv.h - -$(PROJECT_INCLUDE)/rtems/iosupp.h: include/iosupp.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/iosupp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/iosupp.h +## PREINSTALLATION STUFF - Do not edit below -$(PROJECT_INCLUDE)/rtems/ringbuf.h: include/ringbuf.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ringbuf.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ringbuf.h - -$(PROJECT_INCLUDE)/rtems/rtc.h: include/rtc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtc.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtc.h - -$(PROJECT_INCLUDE)/rtems/spurious.h: include/spurious.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/spurious.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/spurious.h - -$(PROJECT_INCLUDE)/rtems/timerdrv.h: include/timerdrv.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/timerdrv.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/timerdrv.h - -$(PROJECT_INCLUDE)/rtems/vmeintr.h: include/vmeintr.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/vmeintr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/vmeintr.h - -$(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/motorola - @: > $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/motorola/mc68230.h: include/motorola/mc68230.h $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/motorola/mc68230.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/motorola/mc68230.h - -$(PROJECT_INCLUDE)/rtems/motorola/mc68681.h: include/motorola/mc68681.h $(PROJECT_INCLUDE)/rtems/motorola/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/motorola/mc68681.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/motorola/mc68681.h - -$(PROJECT_INCLUDE)/rtems/assoc.h: include/rtems/assoc.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/assoc.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/assoc.h - -$(PROJECT_INCLUDE)/rtems/error.h: include/rtems/error.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/error.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/error.h - -$(PROJECT_INCLUDE)/rtems/libcsupport.h: include/rtems/libcsupport.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libcsupport.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libcsupport.h - -$(PROJECT_INCLUDE)/rtems/libio.h: include/rtems/libio.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio.h - -$(PROJECT_INCLUDE)/rtems/libio_.h: include/rtems/libio_.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/libio_.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/libio_.h - -$(PROJECT_INCLUDE)/rtems/termiostypes.h: include/rtems/termiostypes.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/termiostypes.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/termiostypes.h - -$(PROJECT_INCLUDE)/rtems/cdefs.h: include/rtems/cdefs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/cdefs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/cdefs.h - -$(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/zilog - @: > $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/zilog/z8036.h: include/zilog/z8036.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8036.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8036.h - -$(PROJECT_INCLUDE)/rtems/zilog/z8530.h: include/zilog/z8530.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8530.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8530.h - -$(PROJECT_INCLUDE)/rtems/zilog/z8536.h: include/zilog/z8536.h $(PROJECT_INCLUDE)/rtems/zilog/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/zilog/z8536.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/zilog/z8536.h +all-local: $(PREINSTALL_FILES) -CLEANFILES = $(PREINSTALL_FILES) -DISTCLEANFILES += $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index f7fb44c3d2..bf4cef4992 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/Makefile.am @@ -7,6 +7,7 @@ include $(top_srcdir)/automake/compile.am EXTRA_DIST = CLEANFILES = +DISTCLEANFILES = if HAS_POSIX @@ -152,8 +153,6 @@ AM_CPPFLAGS += -D__RTEMS_INSIDE__ noinst_LIBRARIES = libposix.a libposix_a_SOURCES = $(C_FILES) libposix_a_CPPFLAGS = $(AM_CPPFLAGS) - -all-local: $(PREINSTALL_FILES) endif # temporary so we can see how many things are left to implement @@ -167,187 +166,8 @@ not: EXTRA_DIST += $(C_FILES) $(UNUSED_C_FILES) -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE) - @: > $(PROJECT_INCLUDE)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) - -if HAS_POSIX -$(PROJECT_INCLUDE)/sched.h: include/sched.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sched.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/sched.h - -$(PROJECT_INCLUDE)/aio.h: include/aio.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/aio.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/aio.h - -$(PROJECT_INCLUDE)/mqueue.h: include/mqueue.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mqueue.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/mqueue.h - -$(PROJECT_INCLUDE)/semaphore.h: include/semaphore.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/semaphore.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/semaphore.h - -$(PROJECT_INCLUDE)/rtems/posix/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/posix - @: > $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/posix/cancel.h: include/rtems/posix/cancel.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/cancel.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/cancel.h - -$(PROJECT_INCLUDE)/rtems/posix/cond.h: include/rtems/posix/cond.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/cond.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/cond.h - -$(PROJECT_INCLUDE)/rtems/posix/config.h: include/rtems/posix/config.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/config.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/config.h - -$(PROJECT_INCLUDE)/rtems/posix/key.h: include/rtems/posix/key.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/key.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/key.h - -$(PROJECT_INCLUDE)/rtems/posix/mqueue.h: include/rtems/posix/mqueue.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mqueue.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mqueue.h - -$(PROJECT_INCLUDE)/rtems/posix/mutex.h: include/rtems/posix/mutex.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mutex.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mutex.h - -$(PROJECT_INCLUDE)/rtems/posix/posixapi.h: include/rtems/posix/posixapi.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/posixapi.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/posixapi.h - -$(PROJECT_INCLUDE)/rtems/posix/priority.h: include/rtems/posix/priority.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priority.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priority.h - -$(PROJECT_INCLUDE)/rtems/posix/psignal.h: include/rtems/posix/psignal.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/psignal.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/psignal.h - -$(PROJECT_INCLUDE)/rtems/posix/pthread.h: include/rtems/posix/pthread.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthread.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthread.h - -$(PROJECT_INCLUDE)/rtems/posix/ptimer.h: include/rtems/posix/ptimer.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/ptimer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/ptimer.h - -$(PROJECT_INCLUDE)/rtems/posix/semaphore.h: include/rtems/posix/semaphore.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/semaphore.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/semaphore.h - -$(PROJECT_INCLUDE)/rtems/posix/threadsup.h: include/rtems/posix/threadsup.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/threadsup.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/threadsup.h - -$(PROJECT_INCLUDE)/rtems/posix/time.h: include/rtems/posix/time.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/time.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/time.h - -$(PROJECT_INCLUDE)/rtems/posix/timer.h: include/rtems/posix/timer.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/timer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/timer.h - -if HAS_MP -$(PROJECT_INCLUDE)/rtems/posix/condmp.h: include/rtems/posix/condmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/condmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/condmp.h - -$(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h: include/rtems/posix/mqueuemp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mqueuemp.h - -$(PROJECT_INCLUDE)/rtems/posix/mutexmp.h: include/rtems/posix/mutexmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mutexmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mutexmp.h - -$(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h: include/rtems/posix/pthreadmp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthreadmp.h - -$(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h: include/rtems/posix/semaphoremp.h $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/semaphoremp.h -endif - -if INLINE -$(PROJECT_INCLUDE)/rtems/posix/cond.inl: inline/rtems/posix/cond.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/cond.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/cond.inl - -$(PROJECT_INCLUDE)/rtems/posix/key.inl: inline/rtems/posix/key.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/key.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/key.inl - -$(PROJECT_INCLUDE)/rtems/posix/mqueue.inl: inline/rtems/posix/mqueue.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mqueue.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mqueue.inl - -$(PROJECT_INCLUDE)/rtems/posix/mutex.inl: inline/rtems/posix/mutex.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mutex.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mutex.inl - -$(PROJECT_INCLUDE)/rtems/posix/pthread.inl: inline/rtems/posix/pthread.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthread.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthread.inl - -$(PROJECT_INCLUDE)/rtems/posix/priority.inl: inline/rtems/posix/priority.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priority.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priority.inl - -$(PROJECT_INCLUDE)/rtems/posix/semaphore.inl: inline/rtems/posix/semaphore.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/semaphore.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/semaphore.inl - -$(PROJECT_INCLUDE)/rtems/posix/timer.inl: inline/rtems/posix/timer.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/timer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/timer.inl - -else -$(PROJECT_INCLUDE)/rtems/posix/cond.inl: macros/rtems/posix/cond.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/cond.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/cond.inl - -$(PROJECT_INCLUDE)/rtems/posix/key.inl: macros/rtems/posix/key.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/key.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/key.inl - -$(PROJECT_INCLUDE)/rtems/posix/mqueue.inl: macros/rtems/posix/mqueue.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mqueue.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mqueue.inl - -$(PROJECT_INCLUDE)/rtems/posix/mutex.inl: macros/rtems/posix/mutex.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/mutex.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/mutex.inl - -$(PROJECT_INCLUDE)/rtems/posix/pthread.inl: macros/rtems/posix/pthread.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/pthread.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/pthread.inl - -$(PROJECT_INCLUDE)/rtems/posix/priority.inl: macros/rtems/posix/priority.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/priority.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/priority.inl - -$(PROJECT_INCLUDE)/rtems/posix/semaphore.inl: macros/rtems/posix/semaphore.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/semaphore.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/semaphore.inl - -$(PROJECT_INCLUDE)/rtems/posix/timer.inl: macros/rtems/posix/timer.inl $(PROJECT_INCLUDE)/rtems/posix/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/posix/timer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/posix/timer.inl -endif -endif +all-local: $(PREINSTALL_FILES) -CLEANFILES += $(PREINSTALL_FILES) -DISTCLEANFILES = $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/rtems/Makefile.am b/cpukit/rtems/Makefile.am index 2728935ed1..947cb1a338 100644 --- a/cpukit/rtems/Makefile.am +++ b/cpukit/rtems/Makefile.am @@ -5,6 +5,9 @@ include $(top_srcdir)/automake/multilib.am include $(top_srcdir)/automake/compile.am +CLEANFILES = +DISTCLEANFILES = + AM_CPPFLAGS += -D__RTEMS_INSIDE__ noinst_LIBRARIES = librtems.a @@ -125,281 +128,6 @@ endif all-local: $(PREINSTALL_FILES) -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE) - @: > $(PROJECT_INCLUDE)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems.h: include/rtems.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems.h - -$(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/rtems - @: > $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/rtems/asr.h: include/rtems/rtems/asr.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/asr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/asr.h - -$(PROJECT_INCLUDE)/rtems/rtems/attr.h: include/rtems/rtems/attr.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/attr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/attr.h - -$(PROJECT_INCLUDE)/rtems/rtems/cache.h: include/rtems/rtems/cache.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/cache.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/cache.h - -$(PROJECT_INCLUDE)/rtems/rtems/clock.h: include/rtems/rtems/clock.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/clock.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/clock.h - -$(PROJECT_INCLUDE)/rtems/rtems/config.h: include/rtems/rtems/config.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/config.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/config.h - -$(PROJECT_INCLUDE)/rtems/rtems/dpmem.h: include/rtems/rtems/dpmem.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/dpmem.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/dpmem.h - -$(PROJECT_INCLUDE)/rtems/rtems/event.h: include/rtems/rtems/event.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/event.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/event.h - -$(PROJECT_INCLUDE)/rtems/rtems/eventset.h: include/rtems/rtems/eventset.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/eventset.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/eventset.h - -$(PROJECT_INCLUDE)/rtems/rtems/intr.h: include/rtems/rtems/intr.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/intr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/intr.h - -$(PROJECT_INCLUDE)/rtems/rtems/message.h: include/rtems/rtems/message.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/message.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/message.h - -$(PROJECT_INCLUDE)/rtems/rtems/modes.h: include/rtems/rtems/modes.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/modes.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/modes.h - -$(PROJECT_INCLUDE)/rtems/rtems/options.h: include/rtems/rtems/options.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/options.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/options.h - -$(PROJECT_INCLUDE)/rtems/rtems/part.h: include/rtems/rtems/part.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/part.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/part.h - -$(PROJECT_INCLUDE)/rtems/rtems/ratemon.h: include/rtems/rtems/ratemon.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/ratemon.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/ratemon.h - -$(PROJECT_INCLUDE)/rtems/rtems/region.h: include/rtems/rtems/region.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/region.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/region.h - -$(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h: include/rtems/rtems/rtemsapi.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/rtemsapi.h - -$(PROJECT_INCLUDE)/rtems/rtems/sem.h: include/rtems/rtems/sem.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/sem.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/sem.h - -$(PROJECT_INCLUDE)/rtems/rtems/signal.h: include/rtems/rtems/signal.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/signal.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/signal.h - -$(PROJECT_INCLUDE)/rtems/rtems/status.h: include/rtems/rtems/status.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/status.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/status.h - -$(PROJECT_INCLUDE)/rtems/rtems/support.h: include/rtems/rtems/support.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/support.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/support.h - -$(PROJECT_INCLUDE)/rtems/rtems/tasks.h: include/rtems/rtems/tasks.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/tasks.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/tasks.h - -$(PROJECT_INCLUDE)/rtems/rtems/timer.h: include/rtems/rtems/timer.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/timer.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/timer.h - -$(PROJECT_INCLUDE)/rtems/rtems/types.h: include/rtems/rtems/types.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/types.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/types.h - -if HAS_MP -$(PROJECT_INCLUDE)/rtems/rtems/eventmp.h: include/rtems/rtems/eventmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/eventmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/eventmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/mp.h: include/rtems/rtems/mp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/mp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/mp.h - -$(PROJECT_INCLUDE)/rtems/rtems/msgmp.h: include/rtems/rtems/msgmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/msgmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/msgmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/partmp.h: include/rtems/rtems/partmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/partmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/partmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/regionmp.h: include/rtems/rtems/regionmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/regionmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/regionmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/semmp.h: include/rtems/rtems/semmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/semmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/semmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/signalmp.h: include/rtems/rtems/signalmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/signalmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/signalmp.h - -$(PROJECT_INCLUDE)/rtems/rtems/taskmp.h: include/rtems/rtems/taskmp.h $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/taskmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/taskmp.h -endif - -if INLINE -$(PROJECT_INCLUDE)/rtems/rtems/asr.inl: inline/rtems/rtems/asr.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/asr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/asr.inl - -$(PROJECT_INCLUDE)/rtems/rtems/attr.inl: inline/rtems/rtems/attr.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/attr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/attr.inl - -$(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl: inline/rtems/rtems/dpmem.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl - -$(PROJECT_INCLUDE)/rtems/rtems/event.inl: inline/rtems/rtems/event.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/event.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/event.inl - -$(PROJECT_INCLUDE)/rtems/rtems/eventset.inl: inline/rtems/rtems/eventset.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/eventset.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/eventset.inl - -$(PROJECT_INCLUDE)/rtems/rtems/message.inl: inline/rtems/rtems/message.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/message.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/message.inl - -$(PROJECT_INCLUDE)/rtems/rtems/modes.inl: inline/rtems/rtems/modes.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/modes.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/modes.inl - -$(PROJECT_INCLUDE)/rtems/rtems/options.inl: inline/rtems/rtems/options.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/options.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/options.inl - -$(PROJECT_INCLUDE)/rtems/rtems/part.inl: inline/rtems/rtems/part.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/part.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/part.inl - -$(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl: inline/rtems/rtems/ratemon.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl - -$(PROJECT_INCLUDE)/rtems/rtems/region.inl: inline/rtems/rtems/region.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/region.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/region.inl - -$(PROJECT_INCLUDE)/rtems/rtems/sem.inl: inline/rtems/rtems/sem.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/sem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/sem.inl - -$(PROJECT_INCLUDE)/rtems/rtems/status.inl: inline/rtems/rtems/status.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/status.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/status.inl - -$(PROJECT_INCLUDE)/rtems/rtems/support.inl: inline/rtems/rtems/support.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/support.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/support.inl - -$(PROJECT_INCLUDE)/rtems/rtems/tasks.inl: inline/rtems/rtems/tasks.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/tasks.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/tasks.inl - -$(PROJECT_INCLUDE)/rtems/rtems/timer.inl: inline/rtems/rtems/timer.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/timer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/timer.inl - -else -$(PROJECT_INCLUDE)/rtems/rtems/asr.inl: macros/rtems/rtems/asr.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/asr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/asr.inl - -$(PROJECT_INCLUDE)/rtems/rtems/attr.inl: macros/rtems/rtems/attr.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/attr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/attr.inl - -$(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl: macros/rtems/rtems/dpmem.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/dpmem.inl - -$(PROJECT_INCLUDE)/rtems/rtems/event.inl: macros/rtems/rtems/event.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/event.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/event.inl - -$(PROJECT_INCLUDE)/rtems/rtems/eventset.inl: macros/rtems/rtems/eventset.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/eventset.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/eventset.inl - -$(PROJECT_INCLUDE)/rtems/rtems/message.inl: macros/rtems/rtems/message.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/message.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/message.inl - -$(PROJECT_INCLUDE)/rtems/rtems/modes.inl: macros/rtems/rtems/modes.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/modes.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/modes.inl - -$(PROJECT_INCLUDE)/rtems/rtems/options.inl: macros/rtems/rtems/options.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/options.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/options.inl - -$(PROJECT_INCLUDE)/rtems/rtems/part.inl: macros/rtems/rtems/part.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/part.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/part.inl - -$(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl: macros/rtems/rtems/ratemon.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/ratemon.inl - -$(PROJECT_INCLUDE)/rtems/rtems/region.inl: macros/rtems/rtems/region.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/region.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/region.inl - -$(PROJECT_INCLUDE)/rtems/rtems/sem.inl: macros/rtems/rtems/sem.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/sem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/sem.inl - -$(PROJECT_INCLUDE)/rtems/rtems/status.inl: macros/rtems/rtems/status.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/status.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/status.inl - -$(PROJECT_INCLUDE)/rtems/rtems/support.inl: macros/rtems/rtems/support.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/support.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/support.inl - -$(PROJECT_INCLUDE)/rtems/rtems/tasks.inl: macros/rtems/rtems/tasks.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/tasks.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/tasks.inl - -$(PROJECT_INCLUDE)/rtems/rtems/timer.inl: macros/rtems/rtems/timer.inl $(PROJECT_INCLUDE)/rtems/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems/timer.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems/timer.inl -endif - -CLEANFILES = $(PREINSTALL_FILES) -DISTCLEANFILES = $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/sapi/Makefile.am b/cpukit/sapi/Makefile.am index da5190b043..233d8f3dae 100644 --- a/cpukit/sapi/Makefile.am +++ b/cpukit/sapi/Makefile.am @@ -5,6 +5,9 @@ include $(top_srcdir)/automake/multilib.am include $(top_srcdir)/automake/compile.am +CLEANFILES = +DISTCLEANFILES = + include_rtemsdir = $(includedir)/rtems include_rtems_HEADERS = include/confdefs.h @@ -31,58 +34,6 @@ libsapi_a_CPPFLAGS = $(AM_CPPFLAGS) all-local: $(PREINSTALL_FILES) -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/confdefs.h: include/confdefs.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/confdefs.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/confdefs.h - -$(PROJECT_INCLUDE)/rtems/config.h: include/rtems/config.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/config.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/config.h - -$(PROJECT_INCLUDE)/rtems/extension.h: include/rtems/extension.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.h - -$(PROJECT_INCLUDE)/rtems/fatal.h: include/rtems/fatal.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/fatal.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/fatal.h - -$(PROJECT_INCLUDE)/rtems/init.h: include/rtems/init.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/init.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/init.h - -$(PROJECT_INCLUDE)/rtems/io.h: include/rtems/io.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/io.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/io.h - -$(PROJECT_INCLUDE)/rtems/mptables.h: include/rtems/mptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/mptables.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/mptables.h - -$(PROJECT_INCLUDE)/rtems/sptables.h: include/rtems/sptables.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/sptables.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/sptables.h - -if INLINE -$(PROJECT_INCLUDE)/rtems/extension.inl: inline/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl - -else -$(PROJECT_INCLUDE)/rtems/extension.inl: macros/rtems/extension.inl $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/extension.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/extension.inl -endif - -CLEANFILES = $(PREINSTALL_FILES) -DISTCLEANFILES = $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index d426e2262a..cdd96c5f1c 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -5,6 +5,9 @@ include $(top_srcdir)/automake/multilib.am include $(top_srcdir)/automake/compile.am +CLEANFILES = +DISTCLEANFILES = + SUBDIRS = . cpu ## include @@ -154,332 +157,11 @@ EXTRA_DIST += $(STD_C_FILES) $(MP_C_FILES) src/Unlimited.txt all-local: $(PREINSTALL_FILES) -DISTCLEANFILES = include/rtems/score/cpuopts.h - -PREINSTALL_DIRS = -PREINSTALL_FILES = - -$(PROJECT_INCLUDE)/rtems/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems - @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/debug.h: include/rtems/debug.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/debug.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/debug.h - -$(PROJECT_INCLUDE)/rtems/system.h: include/rtems/system.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/system.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/system.h - -$(PROJECT_INCLUDE)/rtems/seterr.h: include/rtems/seterr.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/seterr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/seterr.h - -$(PROJECT_INCLUDE)/rtems/score/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score - @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - -$(PROJECT_INCLUDE)/rtems/score/address.h: include/rtems/score/address.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/address.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/address.h - -$(PROJECT_INCLUDE)/rtems/score/apiext.h: include/rtems/score/apiext.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/apiext.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/apiext.h - -$(PROJECT_INCLUDE)/rtems/score/apimutex.h: include/rtems/score/apimutex.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/apimutex.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/apimutex.h - -$(PROJECT_INCLUDE)/rtems/score/bitfield.h: include/rtems/score/bitfield.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/bitfield.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/bitfield.h - -$(PROJECT_INCLUDE)/rtems/score/chain.h: include/rtems/score/chain.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/chain.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/chain.h - -$(PROJECT_INCLUDE)/rtems/score/context.h: include/rtems/score/context.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/context.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/context.h - -$(PROJECT_INCLUDE)/rtems/score/copyrt.h: include/rtems/score/copyrt.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/copyrt.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/copyrt.h - -$(PROJECT_INCLUDE)/rtems/score/coremsg.h: include/rtems/score/coremsg.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremsg.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremsg.h - -$(PROJECT_INCLUDE)/rtems/score/coremutex.h: include/rtems/score/coremutex.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremutex.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremutex.h - -$(PROJECT_INCLUDE)/rtems/score/coresem.h: include/rtems/score/coresem.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coresem.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coresem.h - -$(PROJECT_INCLUDE)/rtems/score/heap.h: include/rtems/score/heap.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/heap.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/heap.h - -$(PROJECT_INCLUDE)/rtems/score/interr.h: include/rtems/score/interr.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/interr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/interr.h - -$(PROJECT_INCLUDE)/rtems/score/isr.h: include/rtems/score/isr.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/isr.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/isr.h - -$(PROJECT_INCLUDE)/rtems/score/object.h: include/rtems/score/object.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/object.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/object.h - -$(PROJECT_INCLUDE)/rtems/score/priority.h: include/rtems/score/priority.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/priority.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/priority.h - -$(PROJECT_INCLUDE)/rtems/score/stack.h: include/rtems/score/stack.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/stack.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/stack.h - -$(PROJECT_INCLUDE)/rtems/score/states.h: include/rtems/score/states.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/states.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.h - -$(PROJECT_INCLUDE)/rtems/score/sysstate.h: include/rtems/score/sysstate.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sysstate.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sysstate.h - -$(PROJECT_INCLUDE)/rtems/score/thread.h: include/rtems/score/thread.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/thread.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/thread.h - -$(PROJECT_INCLUDE)/rtems/score/threadq.h: include/rtems/score/threadq.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadq.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadq.h - -$(PROJECT_INCLUDE)/rtems/score/tod.h: include/rtems/score/tod.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tod.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tod.h - -$(PROJECT_INCLUDE)/rtems/score/tqdata.h: include/rtems/score/tqdata.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tqdata.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tqdata.h - -$(PROJECT_INCLUDE)/rtems/score/userext.h: include/rtems/score/userext.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/userext.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/userext.h - -$(PROJECT_INCLUDE)/rtems/score/watchdog.h: include/rtems/score/watchdog.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/watchdog.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/watchdog.h - -$(PROJECT_INCLUDE)/rtems/score/wkspace.h: include/rtems/score/wkspace.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/wkspace.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/wkspace.h - -$(PROJECT_INCLUDE)/rtems/score/cpuopts.h: include/rtems/score/cpuopts.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/cpuopts.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpuopts.h - -if HAS_MP -$(PROJECT_INCLUDE)/rtems/score/mpci.h: include/rtems/score/mpci.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/mpci.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/mpci.h - -$(PROJECT_INCLUDE)/rtems/score/mppkt.h: include/rtems/score/mppkt.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/mppkt.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/mppkt.h - -$(PROJECT_INCLUDE)/rtems/score/objectmp.h: include/rtems/score/objectmp.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/objectmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/objectmp.h - -$(PROJECT_INCLUDE)/rtems/score/threadmp.h: include/rtems/score/threadmp.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadmp.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadmp.h -endif - -if INLINE -$(PROJECT_INCLUDE)/rtems/score/address.inl: inline/rtems/score/address.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/address.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/address.inl - -$(PROJECT_INCLUDE)/rtems/score/chain.inl: inline/rtems/score/chain.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/chain.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/chain.inl - -$(PROJECT_INCLUDE)/rtems/score/coremsg.inl: inline/rtems/score/coremsg.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremsg.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremsg.inl - -$(PROJECT_INCLUDE)/rtems/score/coremutex.inl: inline/rtems/score/coremutex.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremutex.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremutex.inl +DISTCLEANFILES += include/rtems/score/cpuopts.h -$(PROJECT_INCLUDE)/rtems/score/coresem.inl: inline/rtems/score/coresem.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coresem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coresem.inl - -$(PROJECT_INCLUDE)/rtems/score/heap.inl: inline/rtems/score/heap.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/heap.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/heap.inl - -$(PROJECT_INCLUDE)/rtems/score/isr.inl: inline/rtems/score/isr.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/isr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/isr.inl - -$(PROJECT_INCLUDE)/rtems/score/object.inl: inline/rtems/score/object.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/object.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/object.inl - -$(PROJECT_INCLUDE)/rtems/score/priority.inl: inline/rtems/score/priority.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/priority.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/priority.inl - -$(PROJECT_INCLUDE)/rtems/score/stack.inl: inline/rtems/score/stack.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/stack.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/stack.inl - -$(PROJECT_INCLUDE)/rtems/score/states.inl: inline/rtems/score/states.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/states.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.inl - -$(PROJECT_INCLUDE)/rtems/score/sysstate.inl: inline/rtems/score/sysstate.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sysstate.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sysstate.inl - -$(PROJECT_INCLUDE)/rtems/score/thread.inl: inline/rtems/score/thread.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/thread.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/thread.inl - -$(PROJECT_INCLUDE)/rtems/score/tod.inl: inline/rtems/score/tod.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tod.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tod.inl - -$(PROJECT_INCLUDE)/rtems/score/tqdata.inl: inline/rtems/score/tqdata.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tqdata.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tqdata.inl - -$(PROJECT_INCLUDE)/rtems/score/userext.inl: inline/rtems/score/userext.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/userext.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/userext.inl - -$(PROJECT_INCLUDE)/rtems/score/watchdog.inl: inline/rtems/score/watchdog.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/watchdog.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/watchdog.inl - -$(PROJECT_INCLUDE)/rtems/score/wkspace.inl: inline/rtems/score/wkspace.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/wkspace.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/wkspace.inl - -if HAS_MP -$(PROJECT_INCLUDE)/rtems/score/mppkt.inl: inline/rtems/score/mppkt.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/mppkt.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/mppkt.inl - -$(PROJECT_INCLUDE)/rtems/score/objectmp.inl: inline/rtems/score/objectmp.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/objectmp.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/objectmp.inl - -$(PROJECT_INCLUDE)/rtems/score/threadmp.inl: inline/rtems/score/threadmp.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadmp.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadmp.inl -endif - -else -$(PROJECT_INCLUDE)/rtems/score/address.inl: macros/rtems/score/address.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/address.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/address.inl - -$(PROJECT_INCLUDE)/rtems/score/chain.inl: macros/rtems/score/chain.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/chain.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/chain.inl - -$(PROJECT_INCLUDE)/rtems/score/coremsg.inl: macros/rtems/score/coremsg.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremsg.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremsg.inl - -$(PROJECT_INCLUDE)/rtems/score/coremutex.inl: macros/rtems/score/coremutex.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coremutex.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coremutex.inl - -$(PROJECT_INCLUDE)/rtems/score/coresem.inl: macros/rtems/score/coresem.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/coresem.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/coresem.inl - -$(PROJECT_INCLUDE)/rtems/score/heap.inl: macros/rtems/score/heap.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/heap.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/heap.inl - -$(PROJECT_INCLUDE)/rtems/score/isr.inl: macros/rtems/score/isr.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/isr.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/isr.inl - -$(PROJECT_INCLUDE)/rtems/score/object.inl: macros/rtems/score/object.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/object.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/object.inl - -$(PROJECT_INCLUDE)/rtems/score/priority.inl: macros/rtems/score/priority.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/priority.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/priority.inl - -$(PROJECT_INCLUDE)/rtems/score/stack.inl: macros/rtems/score/stack.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/stack.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/stack.inl - -$(PROJECT_INCLUDE)/rtems/score/states.inl: macros/rtems/score/states.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/states.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.inl - -$(PROJECT_INCLUDE)/rtems/score/sysstate.inl: macros/rtems/score/sysstate.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sysstate.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sysstate.inl - -$(PROJECT_INCLUDE)/rtems/score/thread.inl: macros/rtems/score/thread.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/thread.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/thread.inl - -$(PROJECT_INCLUDE)/rtems/score/tod.inl: macros/rtems/score/tod.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tod.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tod.inl - -$(PROJECT_INCLUDE)/rtems/score/tqdata.inl: macros/rtems/score/tqdata.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/tqdata.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/tqdata.inl - -$(PROJECT_INCLUDE)/rtems/score/userext.inl: macros/rtems/score/userext.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/userext.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/userext.inl - -$(PROJECT_INCLUDE)/rtems/score/watchdog.inl: macros/rtems/score/watchdog.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/watchdog.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/watchdog.inl - -$(PROJECT_INCLUDE)/rtems/score/wkspace.inl: macros/rtems/score/wkspace.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/wkspace.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/wkspace.inl - -if HAS_MP -$(PROJECT_INCLUDE)/rtems/score/mppkt.inl: macros/rtems/score/mppkt.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/mppkt.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/mppkt.inl - -$(PROJECT_INCLUDE)/rtems/score/objectmp.inl: macros/rtems/score/objectmp.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/objectmp.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/objectmp.inl - -$(PROJECT_INCLUDE)/rtems/score/threadmp.inl: macros/rtems/score/threadmp.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadmp.inl -PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadmp.inl -endif -endif +all-local: $(PREINSTALL_FILES) -CLEANFILES = $(PREINSTALL_FILES) -DISTCLEANFILES += $(PREINSTALL_DIRS) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/subdirs.am include $(top_srcdir)/automake/local.am diff --git a/cpukit/wrapup/Makefile.am b/cpukit/wrapup/Makefile.am index 67d876d476..2020e07ca5 100644 --- a/cpukit/wrapup/Makefile.am +++ b/cpukit/wrapup/Makefile.am @@ -10,6 +10,7 @@ ARCH = o-optimize project_lib_DATA = librtemscpu.a CLEANFILES = librtemscpu.a +DISTCLEANFILES = TMP_LIBS = if LIBSCORECPU @@ -101,17 +102,6 @@ librtemscpu.a: $(TMP_LIBS) all-local: $(TMPINSTALL_FILES) -TMPINSTALL_FILES = - -$(PROJECT_LIB)/$(dirstamp): - @$(mkdir_p) $(PROJECT_LIB) - @: > $(PROJECT_LIB)/$(dirstamp) -TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) - -$(PROJECT_LIB)/librtemscpu.a: librtemscpu.a $(PROJECT_LIB)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu.a -TMPINSTALL_FILES += $(PROJECT_LIB)/librtemscpu.a - -CLEANFILES += $(TMPINSTALL_FILES) +include $(srcdir)/preinstall.am include $(top_srcdir)/automake/local.am -- cgit v1.2.3