mc/gnome/Makefile.in
Norbert Warmuth f75a6470ca Rerun configure when you have problems with missing slang.h.
Sun Jan 31 20:04:13 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
occurance of 0 with NULL should stop this stupidy. And replacing '\0'
with NULL is plain wrong!!. Reverted this replacement.

* vfs/ftpfs.c (load_no_proxy_list): ditto


Fri Jan 29 22:55:56 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/slang.h: renamed to slang-mc.h

* slang/Makefile.in: delete slang.h on "make clean"

* configure.in: link slang/slang-mc.h to slang/slang.h when the
included slang is used. Problem was that MC's slang.h was used
when we compiled with an already installed SLang and the systems
header file were included with <slang/slang.h>.
Unfortunatly I can't use AC_LINK_FILES to make the links because
if we needn't make any links AC_LINK_FILES makes a link from
srcdir to top_builddir (builddir != srcdir).

Temporary add $LGPM to $LIBS when checking for the resizeterm
and keyok functions (ncurses might be linked against GPM).

Substitude PACKAGE (intl/Makefile makes use of it)


Sun Jan 31 19:42:47 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/Makefile.in (install_mx): make it work with srcdir != builddir
(gmc.gnorba is located in $srcdir)

* src/hotlist.c (add_new_entry_input, add_new_group_input): Make the
quick_widget arrays static and various changes needed because they
are now static. add_widgets_i18n recalculates button positions
which get lost when the quick_widget arrays are non static.

* src/screen.c (to_buffer): nul terminate string when using strncpy

* src/setup.c: Save and restore new option ftpfs_first_cd_then_ls.


Sun Jan 31 19:57:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (insert_dot): New function. Insert a "." into the linked
list. Stat'ing the root directory of a ftpfs fails if the dot is
missing.

(retrieve_dir): insert "." into the linked list if the ftp server
haven't send it.

Sun Jan 31 19:50:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* The following changes make ftpfs work with a remote AmiTCP
server are the result of somehow longish EMail debugging session. I
don't know any public server of this kind but I was told the
combination Unix/Amiga boxes are often used in intranets.

* vfs/ftpfs.c (translate_path): New function. Translate a Unix path,
i.e. MC's internal path representation (e.g. /somedir/somefile) to
a path valid for the remote server. Every path transfered to the
remote server has to be mangled by this function right prior to
sending it. Currently only Amiga ftp servers are handled in a
special manner.

* vfs/ftpfs.c (various places): use translate_path

* vfs/ftpfs.c (login_server): Assume we have to mangle pathnames if
the greatings string from the server contains the word Amiga. If
this assumption is wrong I have to find another way to turn on
path translation.

* vfs/ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
if it is missing. MC needs it as seperator between hostname and
path in its internal url representation.
1999-01-31 20:28:13 +00:00

309 lines
7.0 KiB
Makefile

srcdir = @srcdir@
VPATH = @srcdir@
rootdir = $(srcdir)/..
@MCFG@@MCF@
GNOMEDEFS = -DHAVE_X -DHAVE_GNOME @GNOME_INCLUDEDIR@
CFLAGS = -g $(XCFLAGS) @X_CFLAGS@ -I. -I$(rootdir)/src
CPPFLAGS = $(XCPPFLAGS) -I$(vfsdir) -I$(slangdir) $(GNOMEDEFS)
LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEUI_LIBS@
CORBA_LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEGNORBA_LIBS@
DEFS = $(XDEFS)
LIBS = $(XLIBS) @TERMNET@
EXTRALIBS = @LVFS@ -lgtkedit @LINTL@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PIXMAPS = \
dev.xpm \
link.xpm \
directory.xpm \
listing-list.xpm \
listing-iconic.xpm \
listing-custom.xpm \
listing-brief-list.xpm \
dir-close.xpm \
dir-open.xpm
GNOMESRCS = \
gaction.c \
gcache.c \
gcliplabel.c \
gcmd.c \
gcorba.c \
gdesktop-icon.c \
gdesktop.c \
gdialogs.c \
gdnd.c \
ghelp.c \
gicon.c \
ginfo.c \
gkey.c \
glayout.c \
gmain.c \
gmc-chargrid.c \
gmenu.c \
gmetadata.c \
gpageprop.c \
gpopup.c \
gprefs.c \
gprop.c \
gnome-file-property-dialog.c \
gscreen.c \
gtools.c \
gtkdtree.c \
gtree.c \
gutil.c \
gview.c \
gwidget.c
GNOMEHDRS = \
gcache.h \
gcliplabel.h \
gcmd.h \
gconf.h \
gcorba.h \
gdesktop-icon.h \
gdesktop.h \
gdnd.h \
gicon.h \
gmain.h \
gmc-chargrid.h \
gmetadata.h \
gpageprop.h \
gpopup.h \
gprefs.h \
gprop.h \
gnome-file-property-dialog.h \
gscreen.h \
gtkdtree.h \
gtree.h \
gwidget.h
ICONS = \
directory.xpm \
i-dirclosed.png \
i-directory.png \
i-executable.png \
i-symlink.png \
i-regular.png \
i-core.png \
i-sock.png \
i-chardev.png \
i-blockdev.png \
i-stalled.png
#
# These objects from ../src do not depend on HAVE_X / HAVE_GNOME??
#
LOBJS = mad.o
#
# These objects from ../src do depend on HAVE_GNOME
#
OOBJS = dlg.o screen.o widget.o wtools.o info.o boxes.o \
file.o find.o dialog.o key.o chmod.o chown.o view.o \
panelize.o hotlist.o background.o dir.o util.o \
win.o color.o profile.o user.o ext.o setup.o \
subshell.o terms.o achown.o fsusage.o mountlist.o \
@XCURSES@ @REGEX_O@ complete.o command.o \
option.o cmd.o utilunix.o xslint.o gdialogs.o filenot.o \
fileopctx.o treestore.o
CORBAOBJS = \
main-corba.o \
gcorba.o \
FileManager-skels.o \
FileManager-stubs.o \
FileManager-common.o
OBJS = \
$(LOBJS) \
$(OOBJS) \
gaction.o \
gcache.o \
gcliplabel.o \
gcmd.o \
gdesktop-icon.o \
gdesktop.o \
gdnd.o \
ghelp.o \
gicon.o \
ginfo.o \
gkey.o \
glayout.o \
gmain.o \
gmc-chargrid.o \
gmenu.o \
gmetadata.o \
gpageprop.o \
gpopup.o \
gprefs.o \
gprop.o \
gnome-file-property-dialog.o \
gscreen.o \
gtools.o \
gtree.o \
gutil.o \
gview.o \
gtkdtree.o \
gwidget.o
NORMALOBJS = \
main.o
CORBA_GENERATED = \
FileManager.h \
FileManager-stubs.c \
FileManager-skels.c \
FileManager-common.c
CORBA_SOURCES = \
gcorba.c
$(CORBA_GENERATED): $(rootdir)/idl/FileManager.idl
orbit-idl `gnome-config --cflags idl` $(rootdir)/idl/FileManager.idl
$(CORBA_SOURCES): $(CORBA_GENERATED)
FileManager-impl.c: FileManager.h
EXTRA_DIST = gnome.TODO layout gmc.gnorba mc.keys.in.in gimp.image.desktop
DISTGNOME = \
Makefile.in ChangeLog $(EXTRA_DIST) $(CORBA_SOURCES) \
$(PIXMAPS) $(ICONS) $(GNOMESRCS) $(GNOMEHDRS) $(DISTGNOME_NEW)
DISTGNOME_NEW = \
gimp.image.desktop application.x-gnumeric.desktop
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
main-corba.o: main.c
$(CC) -c -DHAVE_CORBA $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o main-corba.o
all: @mx@ Makefile mc.keys
Makefile: Makefile.in ../config.status
(cd ..; CONFIG_FILES=gnome/Makefile CONFIG_HEADERS= ./config.status)
mx: checklinks
$(MAKE) plain-gmc
$(MAKE) corba-gmc
@echo ----------------------------------------------------------
@echo -
@echo - GMC no longer exists here. Use plain-gmc or corba-gmc
@echo - if you are debugging/working on this.
@echo -
@echo -----------------------------------------------------------
@touch mx
plain-gmc: @LIBVFS@ $(OBJS) $(NORMALOBJS) @LIBSLANG@ libgtkedit.a
$(CC) -o plain-gmc $(NORMALOBJS) $(OBJS) $(LDFLAGS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
corba-gmc: @LIBVFS@ $(OBJS) $(CORBAOBJS) @LIBSLANG@ libgtkedit.a
$(CC) -o corba-gmc $(CORBAOBJS) $(OBJS) $(CORBA_LDFLAGS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
mc.keys: mc.keys.in Makefile
sed -e 's^\@icondir\@^$(icondir)^g' < mc.keys.in > mc.keys.tmp \
&& mv mc.keys.tmp mc.keys
mc.keys.in: mc.keys.in.in Makefile.in ../config.status
(cd ..; CONFIG_FILES=gnome/mc.keys.in CONFIG_HEADERS= ./config.status)
@LIBVFS@:
cd ../vfs; $(MAKE) @LIBVFS@
@PCENTRULE@ -$(RMF) @LIBVFS@
@PCENTRULE@ $(LN_S) ../vfs/@LIBVFS@ .
libmcslang.a:
cd ../slang; $(MAKE) libmcslang.a
@PCENTRULE@ -$(RMF) libmcslang.a
@PCENTRULE@ $(LN_S) ../slang/libmcslang.a .
libgtkedit.a:
cd ../gtkedit; $(MAKE) libgtkedit.a
@PCENTRULE@ -$(RMF) libgtkedit.a
@PCENTRULE@ $(LN_S) ../gtkedit/libgtkedit.a .
checklinks:
@if test -f $(gnomedir)/regex.c; then echo ok; \
else $(MAKE) sourcelinks; fi
@if test -f regex.o; then echo ok; else $(MAKE) links; fi
links:
for I in $(LOBJS); do $(RMF) $$I; $(LN_S) ../src/$$I $$I >/dev/null 2>&1; done; true
sourcelinks:
-cd $(gnomedir); $(LN_S) ../src/*.[ch] . >/dev/null 2>&1; $(LN_S) ../src/*.inc .; true
cleansourcelinks:
-if test -f $(gnomedir)/regex.c; then \
cd $(gnomedir); find . \( -lname '*.[ch]' -o -lname '*.inc' \) | xargs $(RM); \
fi
check:
@echo no tests are supplied.
TAGS: $(GNOMESRCS)
etags $(GNOMESRCS)
clean:
$(RMF) plain-gmc corba-gmc *.o core a.out mx @LIBVFS@ libgtkedit.a libmcslang.a
realclean: clean
$(RMF) .depend
$(RMF) TAGS
$(RMF) *~
distclean: cleansourcelinks
-$(RMF) $(srcdir)/*~ $(srcdir)/*.o $(srcdir)/gmc $(srcdir)/core
-$(RMF) $(srcdir)/a.out
-if test $(srcdir) = .; then $(MAKE) realclean; fi
-$(RMF) $(srcdir)/Makefile
distcopy:
$(CP) $(DISTGNOME) ../../mc-$(VERSION)/gnome
install: install_@mx@
install_:
install_mx: all
$(mcsrcdir)/xmkdir $(DESTDIR)$(bindir)
$(mcsrcdir)/xmkdir $(DESTDIR)$(icondir)
$(mcsrcdir)/xmkdir $(DESTDIR)$(libdir)
$(mcsrcdir)/xmkdir $(DESTDIR)$(bindir)
$(mcsrcdir)/xmkdir $(gnewdir)
$(INSTALL_PROGRAM) plain-gmc $(DESTDIR)$(bindir)/$(binprefix)plain-gmc
$(INSTALL_PROGRAM) corba-gmc $(DESTDIR)$(bindir)/$(binprefix)gmc
for I in $(ICONS); \
do $(INSTALL_DATA) $(srcdir)/$$I $(DESTDIR)$(icondir)/$$I; done
$(INSTALL_DATA) $(srcdir)/layout $(DESTDIR)$(libdir)/layout
$(mcsrcdir)/xmkdir $(DESTDIR)$(datadir)/mime-info
$(INSTALL_DATA) mc.keys $(DESTDIR)$(datadir)/mime-info
$(mcsrcdir)/xmkdir $(DESTDIR)$(corbadir)
$(INSTALL_DATA) $(srcdir)/gmc.gnorba $(DESTDIR)$(corbadir)
uninstall:
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)gmc
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)corba-gmc
for I in $(ICONS); \
do $(RMF) $(DESTDIR)$(icondir)/$$I; done
-rmdir $(DESTDIR)$(icondir)
-$(RMF) $(DESTDIR)$(libdir)/layout
-$(RMF) $(DESTDIR)$(datadir)/mime-info/mc.keys
-rmdir $(DESTDIR)$(datadir)/mime-info
-$(RMF) $(gnewdir)
depend dep: @gmcdep@
gmcdep: checklinks mcdep
fastdeploc: @fastdepslang@ @fastdepvfs@
# ***Dependencies***Do not edit***
@DOTDEPEND@
# ***End of dependencies***