From b37df09419662b6540fae98cdb6c8e7a8cc1ff97 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 19 Apr 1998 08:00:22 +0000 Subject: [PATCH] add symlink magic for linux git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4784 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/com_err/Makefile.in | 5 ++++- lib/des/Makefile.in | 5 +++++ lib/editline/Makefile.in | 5 +++++ lib/kafs/Makefile.in | 5 +++++ lib/otp/Makefile.in | 5 +++++ lib/sl/Makefile.in | 5 +++++ 6 files changed, 29 insertions(+), 1 deletion(-) diff --git a/lib/com_err/Makefile.in b/lib/com_err/Makefile.in index edbd1b249..044497dfb 100644 --- a/lib/com_err/Makefile.in +++ b/lib/com_err/Makefile.in @@ -32,6 +32,8 @@ includedir = @includedir@ PICFLAGS = @PICFLAGS@ LIB_DEPS = -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ LIBNAME = $(LIBPREFIX)com_err LIBEXT = @LIBEXT@ @@ -67,6 +69,7 @@ install: all @for i in $(lib_LIBRARIES); do \ echo "$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i" ;\ $(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i ; done + @install_symlink_command@ $(MKINSTALLDIRS) $(DESTDIR)$(bindir) @for i in $(bin_PROGRAMS); do \ @@ -115,7 +118,7 @@ $(LIBNAME).a: $(OBJECTS) $(LIBNAME).$(SHLIBEXT): $(OBJECTS) $(LDOBJ) rm -f $@ $(LDSHARED) -o $@ $(OBJECTS) $(LDOBJ) $(LIB_DEPS) - + @build_symlink_command@ COBJ = compile_et.o parse.o lex.o diff --git a/lib/des/Makefile.in b/lib/des/Makefile.in index 4a64081cb..10e955531 100644 --- a/lib/des/Makefile.in +++ b/lib/des/Makefile.in @@ -10,6 +10,7 @@ VPATH = @srcdir@ CC = @CC@ AR = ar RANLIB = @RANLIB@ +LN_S = @LN_S@ DEFS = @DEFS@ CFLAGS = @CFLAGS@ LD_FLAGS = @LD_FLAGS@ @@ -30,6 +31,8 @@ EXECSUFFIX=@EXECSUFFIX@ PICFLAGS = @PICFLAGS@ LIB_DEPS = -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ PROGS = destest$(EXECSUFFIX) \ mdtest$(EXECSUFFIX) \ @@ -78,6 +81,7 @@ des_enc.o: des_enc.c install: all $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) + @install_symlink_command@ $(MKINSTALLDIRS) $(DESTDIR)$(bindir) for x in $(PROGS2INSTALL); do \ $(INSTALL_PROGRAM) $$x $(DESTDIR)$(bindir)/`echo $$x | sed '$(transform)'`; \ @@ -121,6 +125,7 @@ $(LIBNAME).a: $(LIBOBJ) $(LIBNAME).$(SHLIBEXT): $(LIBOBJ) rm -f $@ $(LDSHARED) -o $@ $(LIBOBJ) $(LIB_DEPS) + @build_symlink_command@ # To make psoriaris make happy we have to mention these files in some # rule, so we might as well put them here. diff --git a/lib/editline/Makefile.in b/lib/editline/Makefile.in index 44e139206..f4d50317e 100644 --- a/lib/editline/Makefile.in +++ b/lib/editline/Makefile.in @@ -9,6 +9,7 @@ VPATH = @srcdir@ CC = @CC@ AR = ar +LN_S = @LN_S@ RANLIB = @RANLIB@ DEFS = @DEFS@ CFLAGS = @CFLAGS@ @@ -31,6 +32,8 @@ LDSHARED = @LDSHARED@ LIB = $(LIBNAME).$(LIBEXT) LIB_DEPS = -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ SOURCES = edit_compat.c editline.c complete.c sysunix.c @@ -47,6 +50,7 @@ Wall: install: all $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) + @install_symlink_command@ uninstall: rm -f $(DESTDIR)$(libdir)/$(LIB) @@ -82,6 +86,7 @@ $(LIBNAME).a: $(OBJECTS) $(LIBNAME).$(SHLIBEXT): $(OBJECTS) rm -f $@ $(LDSHARED) -o $@ $(OBJECTS) $(LIB_DEPS) + @build_symlink_command@ $(OBJECTS): ../../include/config.h diff --git a/lib/kafs/Makefile.in b/lib/kafs/Makefile.in index fd483fd21..f34195c63 100644 --- a/lib/kafs/Makefile.in +++ b/lib/kafs/Makefile.in @@ -10,6 +10,7 @@ VPATH = @srcdir@ CC = @CC@ AR = ar RANLIB = @RANLIB@ +LN_S = @LN_S@ DEFS = @DEFS@ -DLIBDIR='"$(libdir)"' @AFS_EXTRA_DEFS@ CFLAGS = @CFLAGS@ @@ -24,6 +25,8 @@ libdir = @libdir@ PICFLAGS = @PICFLAGS@ LIB_DEPS = -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ LIBNAME = $(LIBPREFIX)kafs LIBEXT = @LIBEXT@ @@ -51,6 +54,7 @@ install: all @for i in $(LIB); do \ echo "$(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i" ;\ $(INSTALL) -m 0555 $$i $(DESTDIR)$(libdir)/$$i ; done + @install_symlink_command@ uninstall: @for i in $(LIB); do \ @@ -88,6 +92,7 @@ $(LIBNAME).a: $(OBJECTS) $(LIBNAME).$(SHLIBEXT): $(OBJECTS) rm -f $@ $(LDSHARED) -o $@ $(OBJECTS) $(LIB_DEPS) + @build_symlink_command@ # AIX: this almost works with gcc, but somehow it fails to use the # correct ld, use ld instead diff --git a/lib/otp/Makefile.in b/lib/otp/Makefile.in index 14302c7ac..990eedc32 100644 --- a/lib/otp/Makefile.in +++ b/lib/otp/Makefile.in @@ -10,6 +10,7 @@ VPATH = @srcdir@ CC = @CC@ AR = ar RANLIB = @RANLIB@ +LN_S = @LN_S@ DEFS = @DEFS@ CFLAGS = @CFLAGS@ LIBS = @LIBS@ @@ -26,6 +27,8 @@ libdir = @libdir@ PICFLAGS = @PICFLAGS@ LIB_DEPS = $(LIB_DBM) -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ LIBNAME = $(LIBPREFIX)otp LIBEXT = @LIBEXT@ @@ -62,6 +65,7 @@ Wall: install: all $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(INSTALL_DATA) -m 0555 $(LIB) $(DESTDIR)$(libdir)/$(LIB) + @install_symlink_command@ uninstall: rm -f $(DESTDIR)$(libdir)/$(LIB) @@ -94,6 +98,7 @@ $(LIBNAME).a: $(LIB_OBJECTS) $(LIBNAME).$(SHLIBEXT): $(LIB_OBJECTS) rm -f $@ $(LDSHARED) -o $@ $(LIB_OBJECTS) $(LIB_DEPS) + @build_symlink_command@ $(OBJECTS): ../../include/config.h diff --git a/lib/sl/Makefile.in b/lib/sl/Makefile.in index a9b3e3b1d..6a27608d4 100644 --- a/lib/sl/Makefile.in +++ b/lib/sl/Makefile.in @@ -12,6 +12,7 @@ top_builddir=../.. CC = @CC@ AR = ar RANLIB = @RANLIB@ +LN_S = @LN_S@ DEFS = @DEFS@ CFLAGS = @CFLAGS@ YACC = @YACC@ @@ -28,6 +29,8 @@ bindir = @bindir@ includedir = @includedir@ LIB_DEPS = @LIB_readline@ -lc +build_symlink_command = @build_symlink_command@ +install_symlink_command = @install_symlink_command@ PICFLAGS = @PICFLAGS@ EXECSUFFIX = @EXECSUFFIX@ @@ -65,6 +68,7 @@ install: all $(MKINSTALLDIRS) $(DESTDIR)$(libdir) $(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(sl_LIB) $(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(ss_LIB) + @install_symlink_command@ $(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(INSTALL) -m 0555 $(PROGS) $(DESTDIR)$(bindir)/$(PROGS) @@ -97,6 +101,7 @@ $(LIBNAME).a: $(LIB_OBJECTS) $(LIBNAME).$(SHLIBEXT): $(LIB_OBJECTS) rm -f $@ $(LDSHARED) -o $@ $(LIB_OBJECTS) $(LIB_DEPS) + @build_symlink_command@ $(OBJECTS): ../../include/config.h