LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
+LIBTOOL = @LIBTOOL@
+GNU_LIBTOOL = @GNU_LIBTOOL@
LIBOBJS = @LIBOBJS@
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) != x -a x$(GNU_LIBTOOL) = x ; then \
+ $(LIBTOOL) -static -c -o libmh.a $(OBJS) ; \
+ else \
+ ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)` ; \
+ $(RANLIB) libmh.a ; \
+ fi
install: