# Generated automatically from Makefile.in by configure.
include $(BLDDIR)/Make.conf

lib: library
library: $(LIBRARY)

# After building just one library we could leave the $(LIBOBJS) in place
# but we don't (*), just to make sure because VALUE might have changed.


$(LIBRARY): $(LIBOBJS) 
	- $(AR) $(ARFLAGS) $@ $?
	@- $(ECHO) Failure of $(RANLIB) does not necesarily mean a problem here.
	@- $(ECHO) It may be that it is not needed on your system.
	- $(RANLIB) $@
	# - $(RM) $(LIBOBJS)  # (*)

install: library
	- $(INSTALL_DIR) $(LIBDIR)
	- $(INSTALL_DATA) $(LIBRARY) $(LIBDIR)

install-lib: install

almostclean: dummy
	- $(RM) $(LIBOBJS) core *~ *.bak *.sw?

clean: almostclean
	- $(RM) $(LIBRARY) 

realclean: dummy
	- for i in $(BLDDIR)/lib/* ; do [ -f $$i ] && $(RM) $$i; done

ci: dummy
	ci -f -l -m"$(MESSAGE)" *.[chy]      


%.c: $(SRCDIR)/lib/%.c 
        cwd=`pwd`; libdir=`cd $(SRCDIR)/lib ; pwd 2>/dev/null` ;\
	if [ $$cwd != $$libdir ]; then $(CP) $< $@ ; fi

include $(TOPDIR)/src/rules.mk
