summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/macros
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/macros')
-rw-r--r--cpukit/posix/macros/Makefile.am23
1 files changed, 20 insertions, 3 deletions
diff --git a/cpukit/posix/macros/Makefile.am b/cpukit/posix/macros/Makefile.am
index 32269fcdcd..0465f3b814 100644
--- a/cpukit/posix/macros/Makefile.am
+++ b/cpukit/posix/macros/Makefile.am
@@ -2,9 +2,26 @@
## $Id$
##
-AUTOMAKE_OPTIONS = foreign 1.4
+AUTOMAKE_OPTIONS = foreign 1.5
-SUBDIRS = rtems
+include_rtems_posixdir = $(includedir)/rtems/posix
+
+$(PROJECT_INCLUDE)/rtems/posix:
+ @$(mkinstalldirs) $@
+$(PROJECT_INCLUDE)/%: %
+ $(INSTALL_DATA) $< $@
+
+if MACROS
+noinst_HEADERS = rtems/posix/intr.inl
+include_rtems_posix_HEADERS = rtems/posix/cond.inl rtems/posix/key.inl \
+ rtems/posix/mqueue.inl rtems/posix/mutex.inl \
+ rtems/posix/pthread.inl rtems/posix/priority.inl \
+ rtems/posix/semaphore.inl rtems/posix/timer.inl
+
+PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems/posix \
+ $(include_rtems_posix_HEADERS:%=$(PROJECT_INCLUDE)/%)
+endif
+
+all-local: $(PREINSTALL_FILES)
-include $(top_srcdir)/../../../../automake/subdirs.am
include $(top_srcdir)/../../../../automake/local.am