X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=zotnet%2FMakefile.in;h=4f43ffbc4e2d398f5ba9f70f2b5e46543a12e57f;hp=7391814ba183e615680eecb59b34d119ba051e48;hb=d02ec5835693084c86f676b35dd96f44a22ff534;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/zotnet/Makefile.in b/zotnet/Makefile.in index 7391814..4f43ffb 100644 --- a/zotnet/Makefile.in +++ b/zotnet/Makefile.in @@ -12,6 +12,8 @@ VPATH = @srcdir@ LORDER = @LORDER@ TSORT = @TSORT@ RANLIB = @RANLIB@ +LIBTOOL = @LIBTOOL@ +GNU_LIBTOOL = @GNU_LIBTOOL@ # flags passed to recursive makes in subdirectories MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \ @@ -41,9 +43,13 @@ SUBDIRS = mts tws mf bboards all: all-recursive libzot.a libzot.a: $(OBJS) - rm -f libzot.a - ar cr libzot.a `$(LORDER) $(OBJS) | $(TSORT)` - $(RANLIB) libzot.a + rm -f $@ + if test x$(LIBTOOL) != x -a x$(GNU_LIBTOOL) = x ; then \ + $(LIBTOOL) -static -c $(OBJS) -o $@ ; \ + else \ + ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \ + $(RANLIB) $@ ; \ + fi all-recursive: for subdir in $(SUBDIRS); do \