From 7406623261c51b1b013f6f2562ab763f114584a9 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 1 Dec 2003 08:43:12 +0000 Subject: 2003-12-01 Ralf Corsepius * Makefile.am: Reformat. Apply dirstamps to preinstallation. * pppd/Makefile.am: Ditto. * rtems_servers/Makefile.am: Ditto. * rtems_telnetd/Makefile.am: Ditto. * rtems_webserver/Makefile.am: Ditto. * wrapup/Makefile.am: Ditto. --- cpukit/telnetd/Makefile.am | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'cpukit/telnetd/Makefile.am') 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 -- cgit v1.2.3