# Generated automatically from Makefile.in by configure.
#
# Makefile for octave's dld directory
#
# John W. Eaton
# jwe@che.utexas.edu
# Department of Chemical Engineering
# The University of Texas at Austin

TOPDIR = ..

srcdir = .
top_srcdir = ..

include $(TOPDIR)/Makeconf

INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

SOURCES = define.c dld.c error.c find_exec.c get_func.c get_symbol.c \
	list_undef.c mk_dummy.c ref.c remove.c ul_file.c ul_symbol.c

OBJECTS = define.o dld.o error.o find_exec.o get_func.o get_symbol.o \
	list_undef.o mk_dummy.o ref.o remove.o ul_file.o ul_symbol.o

INCLUDES = dld.h defs.h

DISTFILES = COPYING ChangeLog Makefile.in README TAGS TODO \
	$(SOURCES) $(INCLUDES)

# Complete directory trees to distribute.
DISTDIRS = doc test

all: libdld.a
.PHONY: all

libdld.a: $(OBJECTS)
	$(AR) $(ARFLAGS) libdld.a $(OBJECTS)
	$(RANLIB) libdld.a

all: libdld.a

check: all
.PHONY: check

install: all
	if test -d $(libdir) ; then true ; else mkdir $(libdir) ; fi
	rm -f $(libdir)/libdld.a
	$(INSTALL_DATA) libdld.a $(libdir)/libdld.a
	if test -d $(includedir) ; then true ; else mkdir $(includedir) ; fi
	$(INSTALL_DATA) $(srcdir)/dld.h $(includedir)/dld.h
.PHONY: install

uninstall:
	rm -f $(libdir)/libdld.a
	for f in $(INCLUDES) ; do rm -f $(includedir)/$$f ; done
.PHONY: uninstall

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

clean:
	rm -f *.a *.o
.PHONY: clean

mostlyclean: clean
.PHONY: mostlyclean

distclean: clean
	rm -f Makefile  *.a
.PHONY: distclean

realclean: distclean
	rm -f tags TAGS
.PHONY: realclean

local-dist:
	for dir in $(DISTDIRS); do ln -s ../../dld/$$dir ../`cat ../.fname`/dld; done
	ln $(DISTFILES) ../`cat ../.fname`/dld
.PHONY: local-dist

dist:
	for dir in $(DISTDIRS); do ln -s ../../dld/$$dir ../`cat ../.fname`/dld; done
	ln $(DISTFILES) ../`cat ../.fname`/dld
.PHONY: dist

