# # ${R_HOME}/src/unix/gnome/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../../.. subdir = src/unix/gnome R_HOME = $(top_builddir) include $(top_builddir)/Makeconf ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(GNOME_INCLUDEDIR) $(LIBGLADE_CFLAGS) $(X_CFLAGS) $(CPPFLAGS) $(DEFS) ## FIXME: ## Make this ALL_CFLAGS_LO when using libtool for shlibs. ALL_CFLAGS = $(R_XTRA_CFLAGS) $(CPICFLAGS) $(SHLIB_CFLAGS) $(CFLAGS) ## ALL_GNOME_LIBS = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(LIBGLADE_LIBS) ALL_X_LIBS = $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) SOURCES = \ command-grep.c \ devGNOME.c devGTK.c \ gdkrotated.c gnome-find-dialog.c gtkconsole.c \ savehistory.c \ system-choosefile.c system-console.c system-showfiles.c \ system.c \ terminal-find.c terminal-functions.c terminal-menu.c \ terminal-prefs.c terminal-toolbar.c terminal.c DEPENDS = $(SOURCES:.c=.d) OBJECTS = $(SOURCES:.c=.o) HEADERS = \ command-grep.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) ## FIXME: ## Change to `R_gnome.la' when using libtool for shlibs. ## Remove when using automake ... also fix install then. R_gnome_la = R_gnome.$(SHLIB_EXT) ## ## FIXME: ## This should really be Rexeclibdir. ## Currently, R_load_gnome_shlib() in `../dynload.c' assumes that we ## install to `R_HOME/gnome'. Rexecgnomedir = $(rhome)/gnome Rexecgnomedir_LTLIBRARIES = $(R_gnome_la) ## R_gnome_la_SOURCES = $(SOURCES) R_gnome_la_OBJECTS = $(OBJECTS) @USE_LIBTOOL_TRUE@R_gnome_la_LDFLAGS = -avoid-version -rpath $(Rexecgnomedir) -module ## FIXME: ## This used to have `-lm' hard-wired, but note that we test for it at ## configure time. The default automake rule would add $(LIBS) anyway, ## so hopefully we can remove the `-lm' ... R_gnome_la_LIBADD = $(ALL_GNOME_LIBS) $(ALL_X_LIBS) $(R_XTRA_LIBS) ## all: Makefile Makedeps R Makefile: $(srcdir)/Makefile.in \ $(top_builddir)/config.status \ $(SOURCES) @cd $(top_builddir) && \ CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \ $(SHELL) ./config.status Makedeps: Makefile $(DEPENDS) @cat $(DEPENDS) >> Makefile @touch $@ R DLLs: Makefile @$(MAKE) Makedeps @$(MAKE) $(Rexecgnomedir_LTLIBRARIES) $(R_gnome_la): $(R_gnome_la_OBJECTS) $(R_gnome_la_DEPENDENCIES) $(SHLIB_LINK) -o $@ $(R_gnome_la_LDFLAGS) $(R_gnome_la_OBJECTS) $(R_gnome_la_LIBADD) $(LIBS) ## FIXME: Not sure of we want to do this ... @$(MAKE) rhome=`cd $(top_builddir); pwd` install ## install: installdirs @USE_LIBTOOL_FALSE@ @$(top_srcdir)/tools/copy-if-change $(R_gnome_la) $(Rexecgnomedir)/R_gnome.$(SHLIB_EXT) @USE_LIBTOOL_TRUE@ @$(LIBTOOL) --mode=install $(INSTALL) $(R_gnome_la) $(Rexecgnomedir) installdirs: @$(MKINSTALLDIRS) $(Rexecgnomedir) mostlyclean: clean clean: @-rm -rf .libs _libs @-rm -f Makedeps *.d *.o *.a *.lo *.la *.$(SHLIB_EXT) 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: