X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2FMakefile.in;h=9178debd637534c72921b6d267da24b5385d2ec8;hb=888b0b63ab66bfa99505cb9817e6fe49cb1f2f70;hp=7391814ba183e615680eecb59b34d119ba051e48;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/zotnet/Makefile.in b/zotnet/Makefile.in index 7391814..9178deb 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)' \ @@ -24,8 +26,7 @@ default_editor='$(default_editor)' default_pager='$(default_pager)' # object files in libzot.a OBJS = mts/mts.o mts/client.o \ tws/dtime.o tws/dtimep.o tws/lexstring.o \ - mf/mf.o \ - bboards/getbbent.o + mf/mf.o # auxiliary files AUX = Makefile.in @@ -34,16 +35,20 @@ AUX = Makefile.in DIST = $(AUX) # subdirectories -SUBDIRS = mts tws mf bboards +SUBDIRS = mts tws mf # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ========== 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 \