changes to allow building under Mac OS X/Rhapsody
[mmh] / sbr / Makefile.in
index 9aad677..3eba53f 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: