diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/telnetd/Makefile.am | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/cpukit/telnetd/Makefile.am b/cpukit/telnetd/Makefile.am index f433106a60..29dbfdc99e 100644 --- a/cpukit/telnetd/Makefile.am +++ b/cpukit/telnetd/Makefile.am @@ -2,22 +2,15 @@ ## $Id$ ## - LIBNAME = libtelnetd-tmp LIB = $(ARCH)/$(LIBNAME).a C_FILES = pty.c telnetd.c icmds.c OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) - include $(top_srcdir)/automake/compile.am include $(top_srcdir)/automake/lib.am -$(PROJECT_INCLUDE)/rtems: - @$(mkinstalldirs) $@ -$(PROJECT_INCLUDE)/rtems/%.h: %.h - $(INSTALL_DATA) $< $@ - # # (OPTIONAL) Add local stuff here using += # @@ -29,9 +22,6 @@ include_rtems_HEADERS = pty.h telnetd.h $(LIB): $(OBJS) $(make-library) -PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \ - $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/rtems/%) - all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) endif @@ -39,4 +29,21 @@ endif EXTRA_DIST = README pty.c telnetd.c pty.h icmds.c telnetd.h +PREINSTALL_FILES = + +if HAS_NETWORKING +$(PROJECT_INCLUDE)/rtems/$(dirstamp): + @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems + @: > $(PROJECT_INCLUDE)/rtems/$(dirstamp) +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/$(dirstamp) + +$(PROJECT_INCLUDE)/rtems/pty.h: pty.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/pty.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/pty.h + +$(PROJECT_INCLUDE)/rtems/telnetd.h: telnetd.h $(PROJECT_INCLUDE)/rtems/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/telnetd.h +PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/telnetd.h +endif + include $(top_srcdir)/automake/local.am |