Fix shared library stuff for other platforms than Linux.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@179 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-10-26 11:54:37 +00:00
parent 4eac32e222
commit b6939a1739
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,6 @@
#
# $Header$
#
SHELL = /bin/sh
@@ -24,7 +27,7 @@ PICFLAGS = @PICFLAGS@
LIBNAME = libkafs
LIBEXT = @LIBEXT@
MAJORVER = @MAJORVER@
SHLIBEXT = @SHLIBEXT@
LIB = $(LIBNAME).$(LIBEXT)
SOURCES = afssys.c
@@ -51,7 +54,7 @@ TAGS: $(SOURCES)
check:
clean:
rm -f $(LIB) *.o
rm -f $(LIB) *.o *.a
mostlyclean: clean
@@ -73,8 +76,8 @@ $(LIBNAME).a: $(OBJECTS)
-if [ "$(AIX_SYSCALL_MAGIC)" = yes ] ; then $(AR) cr $@ $(srcdir)/afsl.exp ; fi
-$(RANLIB) $@
$(LIBNAME).so.$(MAJORVER): $(OBJECTS)
$(LIBNAME).$(SHLIBEXT): $(OBJECTS)
rm -f $@
$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJECTS)
$(CC) $(CFLAGS) $(PICFLAGS) -shared -o $@ $(OBJECTS)
$(OBJECTS): ../../config.h