# # ${RHOME}/src/unix/Makefile VPATH = @srcdir@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = ../.. subdir = src/gnome unixdir = $(top_srcdir)/src/unix include $(top_builddir)/Makeconf distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) DISTFILES = $(shell cd $(srcdir) && ls Makefile.in *.[cfh]) OBJS = \ dataentry.o \ devPS.o \ devPicTeX.o \ dynload.o \ edit.o \ system.o \ Rsock.o \ sock.o GNOME_OBJS = \ devGNOME.o \ devGTK.o \ gtkconsole.o \ gnome-find-dialog.o \ terminal.o \ terminal-functions.o \ terminal-menu.o \ terminal-prefs.o \ terminal-toolbar.o LIB = libRgnome.a all: R R: $(LIB) $(LIB): $(OBJS) $(GNOME_OBJS) $(AR) cr $(LIB) $(OBJS) $(GNOME_OBJS) $(RANLIB) $(LIB) dataentry.o: $(srcdir)/dataentry.c $(srcdir)/dataentry.h $(top_srcdir)/src/include/Defn.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< edit.o: $(srcdir)/edit.c $(top_srcdir)/src/include/Defn.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< devPS.o: $(unixdir)/devPS.c $(top_srcdir)/src/include/Graphics.h $(top_srcdir)/src/include/Defn.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< devPicTeX.o: $(unixdir)/devPicTeX.c $(top_srcdir)/src/include/Graphics.h $(top_srcdir)/src/include/Defn.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< dynload.o: $(unixdir)/dynload.c ../include/FFTab.h ../include/FFDecl.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< Rsock.o: $(unixdir)/Rsock.c $(unixdir)/Rsock.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< sock.o: $(unixdir)/sock.c $(unixdir)/sock.h $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $< system.o: $(srcdir)/system.c $(top_srcdir)/src/include/Defn.h ../include/Platform.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< devGNOME.o: $(srcdir)/devGNOME.c $(srcdir)/devGNOME.h $(srcdir)/terminal.h $(top_srcdir)/src/include/Defn.h $(top_srcdir)/src/include/Graphics.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< devGTK.o: $(srcdir)/devGTK.c $(srcdir)/devGTK.h $(srcdir)/terminal.h $(top_srcdir)/src/include/Defn.h $(top_srcdir)/src/include/Graphics.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< gtkconsole.o: $(srcdir)/gtkconsole.c $(srcdir)/gtkconsole.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< gnome-find-dialog.o: $(srcdir)/gnome-find-dialog.c $(srcdir)/gnome-find-dialog.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< terminal.o: $(srcdir)/terminal.c $(srcdir)/terminal.h $(srcdir)/terminal-functions.h $(srcdir)/terminal-menu.h $(srcdir)/terminal-prefs.h $(srcdir)/terminal-toolbar.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< terminal-functions.o: $(srcdir)/terminal-functions.c $(srcdir)/terminal.h $(srcdir)/terminal-functions.h $(srcdir)/terminal-menu.h $(srcdir)/terminal-prefs.h $(srcdir)/terminal-toolbar.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< terminal-menu.o: $(srcdir)/terminal-menu.c $(srcdir)/terminal.h $(srcdir)/terminal-functions.h $(srcdir)/terminal-menu.h $(srcdir)/terminal-prefs.h $(srcdir)/terminal-toolbar.h $(srcdir)/gnome-find-dialog.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< terminal-prefs.o: $(srcdir)/terminal-prefs.c $(srcdir)/terminal.h $(srcdir)/terminal-functions.h $(srcdir)/terminal-menu.h $(srcdir)/terminal-prefs.h $(srcdir)/terminal-toolbar.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< terminal-toolbar.o: $(srcdir)/terminal-toolbar.c $(srcdir)/terminal.h $(srcdir)/terminal-functions.h $(srcdir)/terminal-menu.h $(srcdir)/terminal-prefs.h $(srcdir)/terminal-toolbar.h $(CC) $(CFLAGS) $(CPPFLAGS) $(GNOME_INCLUDEDIR) -c $< ../include/FFTab.h ../include/FFDecl.h:: (cd ../include; $(MAKE) $(@F)) mostlyclean: clean clean: @echo Cleaning in src/gnome @-rm -f *.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