57 lines
1.5 KiB
Text
57 lines
1.5 KiB
Text
$NetBSD: patch-ak,v 1.4 2001/03/02 16:52:29 skrll Exp $
|
|
|
|
--- lib/makefile.src.orig Wed Mar 4 19:32:53 1992
|
|
+++ lib/makefile.src
|
|
@@ -26,6 +26,9 @@
|
|
vaxshort.o \
|
|
$(OPT_OBJS)
|
|
|
|
+.c.o:
|
|
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} ${CPPFLAGS} -c ${.IMPSRC}
|
|
+
|
|
LIBNAME = librle.a
|
|
|
|
# Just rebuild the object files.
|
|
@@ -36,40 +39,13 @@
|
|
# is more useful to have a non-debug version than nothing at all.)
|
|
# Do nothing if $(DEST) is empty (or not defined)
|
|
install: buildlib
|
|
- @sh -c "if test '$(DEST)x' != x ; then \
|
|
- echo cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
|
|
- cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
|
|
- if test x$(RANLIB) != x ; then \
|
|
- echo ranlib $(DEST)/$(LIBNAME) ; \
|
|
- ranlib $(DEST)/$(LIBNAME) ; \
|
|
- else \
|
|
- true ; \
|
|
- fi ; \
|
|
- if test -d $(DEST)/debug ; then \
|
|
- echo cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
|
|
- if test x$(RANLIB) != x ; then \
|
|
- cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
|
|
- echo ranlib $(DEST)/debug/$(LIBNAME) ; \
|
|
- else \
|
|
- true ; \
|
|
- fi ; \
|
|
- ranlib $(DEST)/debug/$(LIBNAME) ; \
|
|
- else \
|
|
- true ; \
|
|
- fi ; \
|
|
- else \
|
|
- true ; \
|
|
- fi"
|
|
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBNAME:.a=.la} ${PREFIX}/lib
|
|
touch install
|
|
|
|
# Rebuild the library from all the .o files.
|
|
buildlib: $(OBJS)
|
|
-rm -f $(LIBNAME)
|
|
- ar rc $(LIBNAME)
|
|
- ar q $(LIBNAME) $(OBJS)
|
|
-#ifndef NO_RANLIB
|
|
- ranlib $(LIBNAME)
|
|
-#endif
|
|
+ ${LIBTOOL} --mode=link ${CC} -o ${LIBNAME:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:0
|
|
touch buildlib
|
|
|
|
# Clean up installed stuff and binaries
|