diff options
Diffstat (limited to 'cpukit/score/cpu/unix/Makefile.am')
-rw-r--r-- | cpukit/score/cpu/unix/Makefile.am | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/cpukit/score/cpu/unix/Makefile.am b/cpukit/score/cpu/unix/Makefile.am index 7d358443c2..12fb64edff 100644 --- a/cpukit/score/cpu/unix/Makefile.am +++ b/cpukit/score/cpu/unix/Makefile.am @@ -10,26 +10,9 @@ include $(top_srcdir)/../../../automake/lib.am AM_CPPFLAGS += -DCPU_SYNC_IO $(LIBC_DEFINES) -$(PROJECT_INCLUDE)/%.h: %.h - $(INSTALL_DATA) $< $@ - -$(PROJECT_INCLUDE): - $(mkinstalldirs) $@ - -$(PROJECT_INCLUDE)/rtems: - $(mkinstalldirs) $@ - -$(PROJECT_INCLUDE)/rtems/score: - $(mkinstalldirs) $@ - include_rtems_scoredir = $(includedir)/rtems/score -include_rtems_score_HEADERS = \ - rtems/score/types.h \ - rtems/score/cpu.h \ - rtems/score/unix.h \ - rtems/score/unixsize.h -PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems/score \ - $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) +include_rtems_score_HEADERS = rtems/score/types.h rtems/score/cpu.h \ + rtems/score/unix.h rtems/score/unixsize.h C_FILES = cpu.c OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) @@ -44,4 +27,26 @@ all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB) \ EXTRA_DIST = cpu.c +PREINSTALL_FILES = + +$(PROJECT_INCLUDE)/rtems/score: + @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems/score +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score + +$(PROJECT_INCLUDE)/rtems/score/types.h: rtems/score/types.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/types.h + +$(PROJECT_INCLUDE)/rtems/score/cpu.h: rtems/score/cpu.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/cpu.h + +$(PROJECT_INCLUDE)/rtems/score/unix.h: rtems/score/unix.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/unix.h + +$(PROJECT_INCLUDE)/rtems/score/unixsize.h: rtems/score/unixsize.h + $(INSTALL_DATA) $< $@ +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/unixsize.h + include $(top_srcdir)/../../../automake/local.am |