1998-02-27 07:54:42 +03:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
rootdir = $(srcdir)/..
|
|
|
|
@MCFG@@MCF@
|
|
|
|
|
1998-12-03 02:44:06 +03:00
|
|
|
GNOMEDEFS = -DHAVE_X -DHAVE_GNOME @GNOME_INCLUDEDIR@
|
1998-12-06 00:54:25 +03:00
|
|
|
CFLAGS = -g $(XCFLAGS) @X_CFLAGS@
|
1998-12-03 02:44:06 +03:00
|
|
|
CPPFLAGS = $(XCPPFLAGS) -I$(vfsdir) -I$(slangdir) $(GNOMEDEFS)
|
|
|
|
LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEUI_LIBS@
|
|
|
|
CORBA_LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEGNORBA_LIBS@
|
1998-02-27 07:54:42 +03:00
|
|
|
DEFS = $(XDEFS)
|
1998-12-03 02:44:06 +03:00
|
|
|
LIBS = $(XLIBS) @TERMNET@
|
1998-12-02 08:18:20 +03:00
|
|
|
EXTRALIBS = @LVFS@ -lgtkedit @LINTL@
|
1998-02-27 07:54:42 +03:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
1998-12-03 19:10:25 +03:00
|
|
|
PIXMAPS = \
|
|
|
|
dev.xpm \
|
|
|
|
link.xpm \
|
|
|
|
directory.xpm \
|
|
|
|
listing-list.xpm \
|
|
|
|
listing-iconic.xpm \
|
|
|
|
dir-close.xpm \
|
|
|
|
dir-open.xpm
|
|
|
|
|
1998-03-05 07:53:47 +03:00
|
|
|
GNOMESRCS = \
|
1998-12-11 04:57:01 +03:00
|
|
|
gaction.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
gblist.c \
|
|
|
|
gcache.c \
|
|
|
|
gcliplabel.c \
|
|
|
|
gcmd.c \
|
1998-12-03 19:10:25 +03:00
|
|
|
gcorba.c \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
gdesktop.c \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
ghelp.c \
|
1998-12-06 00:54:25 +03:00
|
|
|
gicon.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
ginfo.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gkey.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
glayout.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gmain.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
gmc-chargrid.c \
|
|
|
|
gmenu.c \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
gpageprop.c \
|
|
|
|
gpopup.c \
|
|
|
|
gprop.c \
|
1998-12-02 07:33:26 +03:00
|
|
|
gdialogs.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gscreen.c \
|
|
|
|
gtools.c \
|
1998-12-02 08:18:20 +03:00
|
|
|
gtkdtree.c \
|
1998-11-29 10:50:44 +03:00
|
|
|
gtree.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gutil.c \
|
1998-03-12 06:29:45 +03:00
|
|
|
gview.c \
|
1998-11-25 06:29:23 +03:00
|
|
|
gwidget.c
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-05 07:53:47 +03:00
|
|
|
GNOMEHDRS = \
|
1998-11-25 06:29:23 +03:00
|
|
|
gblist.h \
|
|
|
|
gcache.h \
|
|
|
|
gcliplabel.h \
|
|
|
|
gcmd.h \
|
|
|
|
gconf.h \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.h \
|
1998-11-25 06:29:23 +03:00
|
|
|
gdesktop.h \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.h \
|
1998-12-06 00:54:25 +03:00
|
|
|
gicon.h \
|
1998-03-05 07:53:47 +03:00
|
|
|
gmain.h \
|
1998-11-25 06:29:23 +03:00
|
|
|
gmc-chargrid.h \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.h \
|
1998-03-19 07:51:17 +03:00
|
|
|
gpageprop.h \
|
1998-11-25 06:29:23 +03:00
|
|
|
gpopup.h \
|
|
|
|
gprop.h \
|
1998-12-02 07:33:26 +03:00
|
|
|
gdialogs.h \
|
1998-11-25 06:29:23 +03:00
|
|
|
gscreen.h \
|
1998-12-02 08:18:20 +03:00
|
|
|
gtkree.h \
|
1998-11-29 10:50:44 +03:00
|
|
|
gtree.h \
|
1998-11-25 06:29:23 +03:00
|
|
|
gwidget.h
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-11-25 06:29:23 +03:00
|
|
|
ICONS = \
|
1998-06-18 11:37:15 +04:00
|
|
|
directory.xpm \
|
1998-12-11 04:57:01 +03:00
|
|
|
i-dirclosed.png \
|
1998-11-25 06:29:23 +03:00
|
|
|
i-directory.png \
|
1998-06-18 11:37:15 +04:00
|
|
|
i-executable.png \
|
|
|
|
i-symlink.png \
|
|
|
|
i-regular.png \
|
|
|
|
i-core.png \
|
1998-12-06 00:54:25 +03:00
|
|
|
i-sock.png \
|
|
|
|
i-chardev.png \
|
|
|
|
i-blockdev.png \
|
|
|
|
i-stalled.png
|
1998-03-18 09:24:20 +03:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
#
|
|
|
|
# These objects from ../src do not depend on HAVE_X / HAVE_GNOME??
|
|
|
|
#
|
1998-11-04 22:03:44 +03:00
|
|
|
LOBJS = mad.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# These objects from ../src do depend on HAVE_GNOME
|
|
|
|
#
|
1998-12-03 02:44:06 +03:00
|
|
|
OOBJS = dlg.o screen.o widget.o wtools.o info.o boxes.o \
|
1998-12-02 08:18:20 +03:00
|
|
|
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 \
|
1998-02-27 07:54:42 +03:00
|
|
|
subshell.o terms.o achown.o fsusage.o mountlist.o \
|
1998-06-09 17:09:19 +04:00
|
|
|
@XCURSES@ @REGEX_O@ complete.o command.o \
|
1998-12-04 00:11:36 +03:00
|
|
|
option.o cmd.o utilunix.o xslint.o gdialogs.o filenot.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-12-03 19:10:25 +03:00
|
|
|
CORBAOBJS = \
|
|
|
|
main-corba.o \
|
|
|
|
gcorba.o \
|
|
|
|
FileManager-impl.o \
|
|
|
|
FileManager-skels.o
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
$(LOBJS) \
|
|
|
|
$(OOBJS) \
|
1998-11-25 06:29:23 +03:00
|
|
|
gblist.o \
|
|
|
|
gcache.o \
|
|
|
|
gcliplabel.o \
|
|
|
|
gcmd.o \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
gdesktop.o \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
ghelp.o \
|
1998-12-06 00:54:25 +03:00
|
|
|
gicon.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
ginfo.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gkey.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
glayout.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gmain.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
gmc-chargrid.o \
|
|
|
|
gmenu.o \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
gpageprop.o \
|
|
|
|
gpopup.o \
|
|
|
|
gprop.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gscreen.o \
|
|
|
|
gtools.o \
|
1998-11-29 10:50:44 +03:00
|
|
|
gtree.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gutil.o \
|
1998-03-19 04:22:32 +03:00
|
|
|
gview.o \
|
1998-12-02 08:18:20 +03:00
|
|
|
gtkdtree.o \
|
1998-11-25 06:29:23 +03:00
|
|
|
gwidget.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-12-03 02:44:06 +03:00
|
|
|
NORMALOBJS = \
|
|
|
|
main.o
|
|
|
|
|
|
|
|
CORBA_GENERATED = \
|
|
|
|
FileManager.h \
|
|
|
|
FileManager-stubs.c \
|
|
|
|
FileManager-skels.c \
|
|
|
|
FileManager-common.c
|
|
|
|
|
1998-12-03 19:10:25 +03:00
|
|
|
CORBA_SOURCES = \
|
|
|
|
gcorba.c \
|
|
|
|
FileManager-impl.c
|
1998-12-03 02:44:06 +03:00
|
|
|
|
|
|
|
$(CORBA_GENERATED): $(rootdir)/idl/FileManager.idl
|
1998-12-03 19:10:25 +03:00
|
|
|
orbit-idl `gnome-config --cflags idl` $(rootdir)/idl/FileManager.idl
|
1998-12-03 02:44:06 +03:00
|
|
|
|
|
|
|
FileManager-impl.c: FileManager.h
|
|
|
|
|
|
|
|
DISTGNOME = \
|
|
|
|
Makefile.in gnome.TODO layout gmc.gnorba \
|
|
|
|
$(PIXMAPS) $(ICONS) $(GNOMESRCS) $(GNOMEHDRS) \
|
|
|
|
$(CORBA_SOURCES)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
|
|
|
|
|
1998-12-03 02:44:06 +03:00
|
|
|
main-corba.o: main.c
|
|
|
|
$(CC) -c -DHAVE_CORBA $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o main-corba.o
|
|
|
|
|
1998-12-12 03:55:54 +03:00
|
|
|
all: @gmc@ Makefile mc.metadata mc.keys image.metadata
|
1998-03-18 09:24:20 +03:00
|
|
|
|
|
|
|
Makefile: Makefile.in ../config.status
|
|
|
|
(cd ..; CONFIG_FILES=gnome/Makefile CONFIG_HEADERS= ./config.status)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
gmc: checklinks
|
|
|
|
$(MAKE) mx
|
|
|
|
|
1998-12-03 02:44:06 +03:00
|
|
|
mx: @LIBVFS@ $(OBJS) $(NORMALOBJS) @LIBSLANG@ libgtkedit.a
|
|
|
|
$(CC) $(LDFLAGS) -o gmc $(NORMALOBJS) $(OBJS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
|
1998-02-27 07:54:42 +03:00
|
|
|
touch mx
|
|
|
|
|
1998-12-03 02:44:06 +03:00
|
|
|
corba-gmc: @LIBVFS@ $(OBJS) $(CORBAOBJS) @LIBSLANG@ libgtkedit.a
|
|
|
|
$(CC) $(CORBA_LDFLAGS) -o gmc $(CORBAOBJS) $(OBJS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
|
|
|
|
|
1998-12-07 20:08:59 +03:00
|
|
|
mc.metadata: mc.metadata.in Makefile
|
|
|
|
sed -e 's^\@icondir\@^$(icondir)^g' < $(srcdir)/mc.metadata.in > mc.metadata.tmp \
|
|
|
|
&& mv mc.metadata.tmp mc.metadata
|
|
|
|
|
1998-12-09 02:30:45 +03:00
|
|
|
image.metadata: image.metadata.in Makefile
|
|
|
|
sed -e 's^\@icondir\@^$(icondir)^g' < $(srcdir)/image.metadata.in > image.metadata.tmp \
|
|
|
|
&& mv image.metadata.tmp image.metadata
|
|
|
|
|
1998-12-12 03:55:54 +03:00
|
|
|
mc.keys: mc.keys.in Makefile
|
|
|
|
sed -e 's^\@icondir\@^$(icondir)^g' < $(srcdir)/mc.keys.in > mc.keys.tmp \
|
|
|
|
&& mv mc.keys.tmp mc.keys
|
|
|
|
|
1998-05-26 23:41:44 +04:00
|
|
|
@LIBVFS@:
|
|
|
|
cd ../vfs; $(MAKE) @LIBVFS@
|
|
|
|
@PCENTRULE@ -$(RMF) @LIBVFS@
|
|
|
|
@PCENTRULE@ $(LN_S) ../vfs/@LIBVFS@ .
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
libmcslang.a:
|
|
|
|
cd ../slang; $(MAKE) libmcslang.a
|
|
|
|
@PCENTRULE@ -$(RMF) libmcslang.a
|
|
|
|
@PCENTRULE@ $(LN_S) ../slang/libmcslang.a .
|
|
|
|
|
1998-09-15 00:35:21 +04:00
|
|
|
libgtkedit.a:
|
|
|
|
cd ../gtkedit; $(MAKE) libgtkedit.a
|
|
|
|
@PCENTRULE@ -$(RMF) libgtkedit.a
|
1998-09-18 16:55:02 +04:00
|
|
|
@PCENTRULE@ $(LN_S) ../gtkedit/libgtkedit.a .
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
checklinks:
|
|
|
|
@if test -f $(gnomedir)/regex.c; then echo ok; \
|
1998-12-09 09:00:11 +03:00
|
|
|
else $(MAKE) sourcelinks; fi
|
1998-02-27 07:54:42 +03:00
|
|
|
@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
|
|
|
|
|
1998-12-09 03:59:23 +03:00
|
|
|
sourcelinks:
|
1998-02-27 07:54:42 +03:00
|
|
|
-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:
|
1998-09-18 22:30:44 +04:00
|
|
|
$(RMF) @gmc@ *.o core a.out mx @LIBVFS@ libgtkedit.a libmcslang.a
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
$(RMF) .depend
|
|
|
|
$(RMF) TAGS
|
|
|
|
$(RMF) *~
|
|
|
|
|
|
|
|
distclean: cleansourcelinks
|
1998-09-18 22:30:44 +04:00
|
|
|
-$(RMF) $(srcdir)/*~ $(srcdir)/*.o $(srcdir)/gmc $(srcdir)/core
|
1998-02-27 07:54:42 +03:00
|
|
|
-$(RMF) $(srcdir)/a.out
|
|
|
|
-if test $(srcdir) = .; then $(MAKE) realclean; fi
|
1998-10-01 20:17:28 +04:00
|
|
|
-$(RMF) $(srcdir)/Makefile
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
distcopy:
|
|
|
|
$(CP) $(DISTGNOME) ../../mc-$(VERSION)/gnome
|
|
|
|
|
|
|
|
install: install_@gmc@
|
|
|
|
|
|
|
|
install_:
|
|
|
|
|
|
|
|
install_gmc: all
|
1998-03-18 09:24:20 +03:00
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(bindir)
|
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(icondir)
|
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(libdir)
|
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(bindir)
|
1998-02-27 07:54:42 +03:00
|
|
|
$(INSTALL_PROGRAM) gmc $(DESTDIR)$(bindir)/$(binprefix)gmc
|
1998-06-18 11:37:15 +04:00
|
|
|
for I in $(ICONS); \
|
|
|
|
do $(INSTALL_DATA) $(srcdir)/$$I $(DESTDIR)$(icondir)/$$I; done
|
1998-06-26 13:41:17 +04:00
|
|
|
$(INSTALL_DATA) $(srcdir)/layout $(DESTDIR)$(libdir)/layout
|
1998-12-09 05:08:40 +03:00
|
|
|
if [ -f $(DESTDIR)$(datadir)/metadata ]; then rm $(DESTDIR)$(datadir)/metadata; fi
|
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(datadir)/metadata
|
1998-12-12 04:35:46 +03:00
|
|
|
$(mcsrcdir)/xmkdir $(DESTDIR)$(datadir)/mime-info
|
1998-12-08 00:22:52 +03:00
|
|
|
$(INSTALL_DATA) mc.metadata $(DESTDIR)$(datadir)/metadata
|
1998-12-09 02:32:36 +03:00
|
|
|
$(INSTALL_DATA) image.metadata $(DESTDIR)$(datadir)/metadata
|
1998-12-12 04:35:46 +03:00
|
|
|
$(INSTALL_DATA) mc.keys $(DESTDIR)$(datadir)/mime-info
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)gmc
|
1998-06-26 13:41:17 +04:00
|
|
|
for I in $(ICONS); \
|
|
|
|
do $(RMF) $(DESTDIR)$(icondir)/$$I; done
|
1998-06-18 11:37:15 +04:00
|
|
|
-rmdir $(DESTDIR)$(icondir)
|
1998-06-26 13:41:17 +04:00
|
|
|
-$(RMF) $(DESTDIR)$(libdir)/layout
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
depend dep: @gmcdep@
|
|
|
|
|
|
|
|
gmcdep: checklinks mcdep
|
|
|
|
|
|
|
|
fastdeploc: @fastdepslang@ @fastdepvfs@
|
|
|
|
|
|
|
|
# ***Dependencies***Do not edit***
|
|
|
|
@DOTDEPEND@
|
|
|
|
# ***End of dependencies***
|