diff options
Diffstat (limited to 'c/src/librtems++/include')
-rw-r--r-- | c/src/librtems++/include/Makefile.am | 24 | ||||
-rw-r--r-- | c/src/librtems++/include/rtems++/Makefile.am | 23 |
2 files changed, 21 insertions, 26 deletions
diff --git a/c/src/librtems++/include/Makefile.am b/c/src/librtems++/include/Makefile.am index 540e68ec55..1230c5b701 100644 --- a/c/src/librtems++/include/Makefile.am +++ b/c/src/librtems++/include/Makefile.am @@ -2,9 +2,27 @@ ## $Id$ ## -AUTOMAKE_OPTIONS = foreign 1.4 +AUTOMAKE_OPTIONS = foreign 1.5 -SUBDIRS = rtems++ +include_rtems__dir = $(includedir)/rtems++ + +$(PROJECT_INCLUDE)/%.h: %.h + $(INSTALL_DATA) $< $@ + +$(PROJECT_INCLUDE)/rtems++: + @$(mkinstalldirs) $@ + +if HAS_CXX +include_rtems___HEADERS = rtems++/rtemsEvent.h \ + rtems++/rtemsInterrupt.h rtems++/rtemsMessageQueue.h rtems++/rtemsSemaphore.h \ + rtems++/rtemsStatusCode.h rtems++/rtemsTask.h rtems++/rtemsTaskMode.h \ + rtems++/rtemsTimer.h + +PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems++ \ + $(include_rtems___HEADERS:%=$(PROJECT_INCLUDE)/%) + +endif + +all-local: $(PREINSTALL_FILES) -include $(top_srcdir)/../../../automake/subdirs.am include $(top_srcdir)/../../../automake/local.am diff --git a/c/src/librtems++/include/rtems++/Makefile.am b/c/src/librtems++/include/rtems++/Makefile.am deleted file mode 100644 index 06bfdba6a9..0000000000 --- a/c/src/librtems++/include/rtems++/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -## -## $Id$ -## - -AUTOMAKE_OPTIONS = foreign 1.4 - -if HAS_CXX -include_rtems__dir = $(includedir)/rtems++ -include_rtems___HEADERS = rtemsEvent.h rtemsInterrupt.h rtemsMessageQueue.h rtemsSemaphore.h \ - rtemsStatusCode.h rtemsTask.h rtemsTaskMode.h rtemsTimer.h - -PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems++ \ - $(include_rtems___HEADERS:%=$(PROJECT_INCLUDE)/rtems++/%) - -$(PROJECT_INCLUDE)/rtems++: - @$(mkinstalldirs) $@ -$(PROJECT_INCLUDE)/rtems++/%.h: %.h - $(INSTALL_DATA) $< $@ -endif - -all-local: $(PREINSTALL_FILES) - -include $(top_srcdir)/../../../automake/local.am |