#
# include files installed when using libtool
#
-INCLUDE_FILES = bfile.h find.h protos.h savecwd.h
+INCLUDE_FILES = bfile.h find.h protos.h
#
-LIBSRCS = find.c match.c find_one.c attribs.c create_file.c \
- bfile.c drivetype.c enable_priv.c fstype.c mkpath.c \
- savecwd.c
-LIBOBJS = $(LIBSRCS:.c=$(DEFAULT_OBJECT_TYPE))
+LIBBACFIND_SRCS = find.c match.c find_one.c attribs.c create_file.c \
+ bfile.c drivetype.c enable_priv.c fstype.c mkpath.c \
+ savecwd.c
+LIBBACFIND_OBJS = $(LIBBACFIND_SRCS:.c=.o)
+LIBBACFIND_LOBJS = $(LIBBACFIND_SRCS:.c=.lo)
-LIBBACFIND_LT_CURRENT = 1
-LIBBACFIND_LT_REVISION = 0
-LIBBACFIND_LT_AGE = 0
+LIBBACFIND_LT_RELEASE = @LIBBACFIND_LT_RELEASE@
.SUFFIXES: .c .o .lo
.PHONY:
@echo "Compiling $<"
$(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
#-------------------------------------------------------------------------
-all: Makefile libbacfind$(DEFAULT_ARCHIVE_TYPE) libbacfind.a ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
+all: Makefile libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
@echo "==== Make of findlib is good ===="
@echo " "
-libbacfind.a: $(LIBOBJS)
+libbacfind.a: $(LIBBACFIND_OBJS)
@echo "Making $@ ..."
- $(AR) rc $@ $(LIBOBJS)
+ $(AR) rc $@ $(LIBBACFIND_OBJS)
$(RANLIB) $@
-libbacfind.la: Makefile $(LIBOBJS)
+libbacfind.la: Makefile $(LIBBACFIND_LOBJS)
@echo "Making $@ ..."
- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACFIND_LT_CURRENT):$(LIBBACFIND_LT_REVISION):$(LIBBACFIND_LT_AGE)
+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE)
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
cd $(topdir) \
libtool-install: all
$(MKDIR) $(DESTDIR)$(libdir)
- $(LIBTOOL_INSTALL_FINISH) $(INSTALL_PROGRAM) libbacfind$(DEFAULT_ARCHIVE_TYPE) $(DESTDIR)$(libdir)
+ $(RMF) $(DESTDIR)$(libdir)/libbacfind-*.so $(DESTDIR)$(libdir)/libbacfind.la
+ $(LIBTOOL_INSTALL_FINISH) $(INSTALL_LIB) libbacfind$(DEFAULT_ARCHIVE_TYPE) $(DESTDIR)$(libdir)
libtool-uninstall:
$(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(libdir)/libbacfind.la
@$(RMF) *.la
@$(RMF) -r .libs _libs
-clean: @LIBTOOL_CLEAN_TARGET@
+clean: libtool-clean
@$(RMF) find core a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
realclean: clean
@$(MV) Makefile Makefile.bak
@$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
@$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
- @for src in $(LIBSRCS); do \
- $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) $$src >> Makefile; \
+ @for src in $(LIBBACFIND_SRCS); do \
+ $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $$src >> Makefile; \
done
@if test -f Makefile ; then \
$(RMF) Makefile.bak; \