view dlfcn/Makefile.in @ 6796:59c0c3637633

[project @ 2007-07-25 15:45:04 by jwe]
author jwe
date Wed, 25 Jul 2007 15:45:06 +0000
parents a84de7048629
children 5b00586ccd27
line wrap: on
line source

#
# Makefile for octave's dlfcn directory
#
# John W. Eaton
# jwe@bevo.che.wisc.edu
# University of Wisconsin-Madison
# Department of Chemical Engineering

TOPDIR = ..

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@

include $(TOPDIR)/Makeconf

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

INCLUDES := dlfcn.h

SOURCES := dlfcn.c

OBJECTS := $(SOURCES:.c=.o)

MAKEDEPS := $(SOURCES:.c=.d)

DISTFILES := $(addprefix $srcdir)/,$(SOURCES) $(INCLUDES) README dl.exp Makefile.in ftp-site)

all: libdlfcn.a
.PHONY: all

libdlfcn.a: $(OBJECTS)
	$(AR) $(ARFLAGS) $@ $(OBJECTS)
	$(RANLIB) $@

check: all
.PHONY: check

install install-strip: all
.PHONY: install install-strip

uninstall:
.PHONY: uninstall

tags: $(SOURCES)
	ctags $(SOURCES)

TAGS: $(SOURCES)
	etags $(SOURCES)

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

mostlyclean:
	rm -f *.o
.PHONY: mostlyclean

distclean: clean
	rm -f Makefile
.PHONY: distclean

maintainer-clean: distclean
	rm -f tags TAGS
.PHONY: maintainer-clean

dist:
	ln $(DISTFILES) ../`cat ../.fname`/dlfcn
.PHONY: dist

conf-dist:
	ln $(addprefix $(srcdir)/,octave.cc Makefile.in) ../`cat ../.fname`/dlfcn
.PHONY: conf-dist

ifndef omit_deps
-include $(MAKEDEPS)
endif