diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-16 13:30:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-16 13:30:52 +0000 |
commit | ff61414ac86ec7097a1c39a6904dacddf6f90599 (patch) | |
tree | f25ec3c1da4003d604a0b1a5fe90b87dc4cd7f1a /cpukit/score/include/Makefile.am | |
parent | 2001-10-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-ff61414ac86ec7097a1c39a6904dacddf6f90599.tar.bz2 |
2001-10-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/Makefile.am: Remove.
* include/rtems/Makefile.am: Remove.
* include/Makefile.am: Handle subdirs, require automake-1.5.
* macros/rtems/Makefile.am: Remove.
* macros/rtems/score/Makefile.am: Remove.
* macros/Makefile.am: Handle subdirs, require automake-1.5.
* inline/rtems/Makefile.am: Remove.
* inline/rtems/score/Makefile.am: Remove.
* inline/Makefile.am: Handle subdirs, require automake-1.5.
* Makefile.am: require automake-1.5
Diffstat (limited to 'cpukit/score/include/Makefile.am')
-rw-r--r-- | cpukit/score/include/Makefile.am | 61 |
1 files changed, 58 insertions, 3 deletions
diff --git a/cpukit/score/include/Makefile.am b/cpukit/score/include/Makefile.am index 0c97211587..f8b9edd4e1 100644 --- a/cpukit/score/include/Makefile.am +++ b/cpukit/score/include/Makefile.am @@ -2,9 +2,64 @@ ## $Id$ ## -AUTOMAKE_OPTIONS = foreign 1.4 +AUTOMAKE_OPTIONS = foreign 1.5 -SUBDIRS = rtems +$(PROJECT_INCLUDE)/%: % + $(INSTALL_DATA) $< $@ + +include_rtemsdir = $(includedir)/rtems + +$(PROJECT_INCLUDE)/rtems: + @$(mkinstalldirs) $@ + +include_rtems_HEADERS = rtems/debug.h rtems/system.h rtems/seterr.h + +PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \ + $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/%) + +include_rtems_scoredir = $(includedir)/rtems/score + +$(PROJECT_INCLUDE)/rtems/score: + @$(mkinstalldirs) $@ + +# We only build multiprocessing related files if HAS_MP was defined +MP_H_FILES = rtems/score/mpci.h rtems/score/mppkt.h rtems/score/objectmp.h \ + rtems/score/threadmp.h + +# H_FILES that get installed in the rtems/score subdirectoy +STD_H_FILES = rtems/score/address.h rtems/score/apiext.h \ + rtems/score/bitfield.h rtems/score/chain.h rtems/score/context.h \ + rtems/score/copyrt.h rtems/score/coremsg.h rtems/score/coremutex.h \ + rtems/score/coresem.h rtems/score/heap.h rtems/score/interr.h \ + rtems/score/isr.h rtems/score/object.h rtems/score/priority.h \ + rtems/score/stack.h rtems/score/states.h rtems/score/sysstate.h \ + rtems/score/thread.h rtems/score/threadq.h rtems/score/tod.h \ + rtems/score/tqdata.h rtems/score/userext.h rtems/score/watchdog.h \ + rtems/score/wkspace.h + +if HAS_MP +include_rtems_score_HEADERS = $(STD_H_FILES) $(MP_H_FILES) rtems/score/cpuopts.h +else +include_rtems_score_HEADERS = $(STD_H_FILES) rtems/score/cpuopts.h +endif + +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \ + $(include_rtems_score_HEADERS:%=$(PROJECT_INCLUDE)/%) + +# make the cpu dependent options file +# FIXME: We are exporting a config-header here, which is a bad idea in +# general +rtems/score/cpuopts.h: rtems/score/cpuopts-tmp.h + @echo "/* target cpu dependent options file */" >$@ + @echo "/* automatically generated -- DO NOT EDIT!! */" >>$@ + @echo >>$@ + @echo "#ifndef __CPU_OPTIONS_h" >>$@ + @echo "#define __CPU_OPTIONS_h" >>$@ + @echo >>$@ + @cat cpuopts-tmp.h >>$@ + @echo >>$@ + @echo "#endif" >>$@ + +all-local: $(PREINSTALL_FILES) -include $(top_srcdir)/../../../automake/subdirs.am include $(top_srcdir)/../../../automake/local.am |