The R Project SVN R

Rev

Blame | Last modification | View Log | Download | RSS feed

#
# ${R_HOME}/src/gnuwin32/getline/Makefile

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

top_builddir = ../../..
subdir = src/gnuwin32/getline

include $(top_builddir)/Makeconf

SOURCES = getline.c
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)

DEFS=-DWin32
all: Makefile R

Makefile: $(srcdir)/Makefile.in \
  $(top_builddir)/config.status \
  ../../include/Rversion.h \
  $(SOURCES)
    @cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

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

R: Makefile
    @$(MAKE) Makedeps
    $(MAKE) --no-print-directory gl.a

gl.a: $(OBJECTS)
    rm -f $@
    $(AR) cr $@ $^
    $(RANLIB) $@

mostlyclean: clean
clean:
    @-rm -f Makedeps *.d *.o *.a
distclean: clean
    @-rm -f Makefile
maintainer-clean: distclean

## Automagically generated dependencies: