diff options
Diffstat (limited to 'cpukit/ftpd/Makefile.am')
-rw-r--r-- | cpukit/ftpd/Makefile.am | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/cpukit/ftpd/Makefile.am b/cpukit/ftpd/Makefile.am index 92e730ff10..5e88bd8296 100644 --- a/cpukit/ftpd/Makefile.am +++ b/cpukit/ftpd/Makefile.am @@ -4,12 +4,11 @@ include $(top_srcdir)/automake/compile.am -noinst_LIBRARIES = - if HAS_NETWORKING -include_HEADERS = ftpd.h +include_rtemsdir = $(includedir)/rtems +include_rtems_HEADERS = ftpd.h -noinst_LIBRARIES += libftpd.a +project_lib_LIBRARIES = libftpd.a libftpd_a_SOURCES = ftpd.c ftpd.h libftpd_a_CPPFLAGS = $(AM_CPPFLAGS) endif @@ -18,19 +17,30 @@ all-local: $(PREINSTALL_FILES) PREINSTALL_DIRS = PREINSTALL_FILES = +TMPINSTALL_FILES = -$(PROJECT_INCLUDE)/$(dirstamp): - @$(mkdir_p) $(PROJECT_INCLUDE) - @: > $(PROJECT_INCLUDE)/$(dirstamp) -PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) +$(PROJECT_LIB)/$(dirstamp): + @$(mkdir_p) $(PROJECT_LIB) + @: > $(PROJECT_LIB)/$(dirstamp) +TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) if HAS_NETWORKING -$(PROJECT_INCLUDE)/ftpd.h: ftpd.h $(PROJECT_INCLUDE)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ftpd.h -PREINSTALL_FILES += $(PROJECT_INCLUDE)/ftpd.h +$(PROJECT_INCLUDE)/rtems/$(dirstamp): + @$(mkdir_p) $(PROJECT_INCLUDE)/rtems + @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) +PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/$(dirstamp) + +$(PROJECT_INCLUDE)/rtems/ftpd.h: ftpd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/ftpd.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/ftpd.h + +$(PROJECT_LIB)/libftpd.a: libftpd.a $(PROJECT_LIB)/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_LIB)/libftpd.a +TMPINSTALL_FILES += $(PROJECT_LIB)/libftpd.a endif CLEANFILES = $(PREINSTALL_FILES) DISTCLEANFILES = $(PREINSTALL_DIRS) +CLEANFILES += $(TMPINSTALL_FILES) include $(top_srcdir)/automake/local.am |