The R Project SVN R

Rev

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

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

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

top_builddir = ../..
subdir = src/gnome

include $(top_builddir)/Makeconf

ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(GNOME_INCLUDEDIR) $(LIBGLADE_CFLAGS) $(X_CFLAGS) $(CPPFLAGS) $(DEFS)

SOURCES = ../unix/dataentry.c \
      ../unix/dynload.c \
      ../unix/sys-unix.c \
      ../unix/sys-common.c \
      system.c \
      system-choosefile.c \
      system-console.c \
      system-showfiles.c \
      devGNOME.c \
      devGTK.c \
      edit.c \
      gdkrotated.c \
      gtkconsole.c \
      gnome-find-dialog.c \
      terminal.c \
      terminal-find.c \
      terminal-functions.c \
      terminal-menu.c \
      terminal-prefs.c \
      terminal-toolbar.c \
      command-grep.c
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)
HEADERS = dataentry.h \
      devGNOME.h \
      devGTK.h \
      gdkrotated.h \
      gnome-find-dialog.h \
      gtkconsole.h \
      terminal-find.h \
      terminal-functions.h \
      terminal-menu.h \
      terminal-prefs.h \
      terminal-toolbar.h \
      terminal.h

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in $(SOURCES) $(HEADERS)

LIB = libRgnome.a

all: Makefile Makedeps R

Makefile: $(srcdir)/Makefile.in \
  $(top_builddir)/config.status \
  ../include/Rversion.h \
  ../include/FFDecl.h \
  ../include/FFTab.h \
  $(DEPENDS)
    @cd $(top_builddir) && \
      CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
      $(SHELL) ./config.status

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

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

../include/Rversion.h:
    (cd ../include; $(MAKE) $(@F))
../include/FFDecl.h ../include/FFTab.h: $(top_srcdir)/src/appl/ROUTINES
    (cd ../include; $(top_srcdir)/tools/GETSYMBOLS)

$(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: