The R Project SVN R

Rev

Rev 7002 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

##
## ${R_HOME}/src/appl/Makefile

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

top_builddir = ../..
subdir = src/appl

include $(top_builddir)/Makeconf

## All functions/subroutines to be called via .C() or .Fortran() must
## also have an entry in `./ROUTINES' in order to be ``pre-dyn.loaded'';
## see `../unix/dynload.c'.

SOURCES_C = \
    Rsock.c \
    S_compat.c \
    approx.c \
    bakslv.c \
    binning.c \
    chisqsim.c \
    chull.c \
    cpoly.c \
    cumsum.c \
    distance.c \
    fft.c \
    fortran.c \
    loglin.c \
    lowess.c \
    machar.c \
    massdist.c \
    pretty.c \
    pythag.c \
    rowsum.c \
    sock.c \
    splines.c \
    stem.c \
    strsignif.c \
    tabulate.c \
    uncmin.c \
    zeroin.c
SOURCES_F = \
    ch2inv.f \
    chol.f \
    dpbfa.f \
    dpbsl.f \
    dpoco.f \
    dpodi.f \
    dpofa.f \
    dposl.f \
    dqrdc.f \
    dqrdc2.f \
        dqrls.f \
    dqrsl.f \
    dqrutl.f \
    dsvdc.f \
    dtrco.f \
    dtrsl.f \
    eigen.f \
    fmin.f \
    lminfl.f
DEPENDS = $(SOURCES_C:.c=.d)
OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_F:.f=.o) $(BLAS)
HEADERS = Rsock.h sock.h

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = COPYRIGHT COPYRIGHT.ftn Makefile.in README ROUTINES \
    $(SOURCES_C) $(SOURCES_F) blas.f $(HEADERS)

LIB = libappl.a

all: Makefile Makedeps R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(SOURCES_C)
    @cd $(top_builddir) && \
      CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
      $(SHELL) ./config.status

Makedeps: Makefile $(DEPENDS)
    @cat $(DEPENDS) >> Makefile
    @touch $@

R: Makefile
    @$(MAKE) Makedeps
    @$(MAKE) $(LIB)

$(LIB): $(OBJECTS)
    $(AR) cr $(LIB) $(OBJECTS)
    $(RANLIB) $(LIB)

mostlyclean: clean
clean:
    @echo "Cleaning in $(subdir)"
    @-rm -f Makedeps *.d *.o *.a
distclean: clean
    @-rm -f Makefile
maintainer-clean: distclean

distdir: $(DISTFILES)
    @for f in $(DISTFILES); do \
      test -f $(distdir)/$${f} \
        || ln $(srcdir)/$${f} $(distdir)/$${f} 2>/dev/null \
        || cp -p $(srcdir)/$${f} $(distdir)/$${f}; \
    done

## Automagically generated dependencies: