X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2FMakefile.in;fp=zotnet%2FMakefile.in;h=de661262d1c3f813024cc5554836f6545fedecd0;hb=d3a67123c9d05b6d639adb0e6b4a874807602a6b;hp=7391814ba183e615680eecb59b34d119ba051e48;hpb=1e6e0b5cc1bd2d49ffcef4ea7bb1bb6c256d07b7;p=mmh diff --git a/zotnet/Makefile.in b/zotnet/Makefile.in index 7391814..de66126 100644 --- a/zotnet/Makefile.in +++ b/zotnet/Makefile.in @@ -12,6 +12,7 @@ VPATH = @srcdir@ LORDER = @LORDER@ TSORT = @TSORT@ RANLIB = @RANLIB@ +LIBTOOL = @LIBTOOL@ # flags passed to recursive makes in subdirectories MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \ @@ -41,9 +42,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) != xno ; then \ + $(LIBTOOL) -static -c $(OBJS) -o $@ ; \ + else \ + ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)` ; \ + $(RANLIB) $@ ; \ + fi all-recursive: for subdir in $(SUBDIRS); do \