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)' \
# 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
+ tws/dtime.o tws/dtimep.o tws/lexstring.o
# auxiliary files
AUX = Makefile.in
DIST = $(AUX)
# subdirectories
-SUBDIRS = mts tws mf bboards
+SUBDIRS = mts tws
# ========= 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 \