]> git.marmaro.de Git - mmh/blobdiff - sbr/Makefile.in
changes to allow building under Mac OS X/Rhapsody
[mmh] / sbr / Makefile.in
index 9aad677b4d1494e0fc03a325192cb7005c9b3854..3eba53feabcf9cdaec71f14b1e4a7f603323a304 100644 (file)
@@ -19,6 +19,7 @@ AWK    = @AWK@
 LORDER = @LORDER@
 TSORT  = @TSORT@
 RANLIB = @RANLIB@
+LIBTOOL = @LIBTOOL@
 
 LIBOBJS = @LIBOBJS@
 
@@ -91,9 +92,13 @@ sigmsg.h: sigmsg.awk
 pidstatus.o: sigmsg.h
 
 libmh.a: $(OBJS)
-       rm -f libmh.a
-       ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)`
-       $(RANLIB) libmh.a
+       rm -f $@
+       if test x$(LIBTOOL) != xno ; then \
+         $(LIBTOOL) -static -c $(OBJS) -o libmh.a  ; \
+       else \
+         ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)`  ; \
+         $(RANLIB) libmh.a  ; \
+       fi 
 
 install: