1998-02-27 07:54:42 +03:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
rootdir = $(srcdir)/..
|
|
|
|
@MCFG@@MCF@
|
|
|
|
|
|
|
|
CFLAGS = $(XCFLAGS) @X_CFLAGS@
|
1998-03-20 05:54:06 +03:00
|
|
|
CPPFLAGS = $(XCPPFLAGS) -I$(vfsdir) -I$(slangdir) -DHAVE_X -DHAVE_GNOME @GNOME_INCLUDEDIR@
|
1998-09-29 21:52:59 +04:00
|
|
|
LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEUI_LIBS@
|
1998-02-27 07:54:42 +03:00
|
|
|
DEFS = $(XDEFS)
|
1998-05-10 02:36:59 +04:00
|
|
|
LIBS = @X_EXTRA_LIBS@ -lX11 @X_PRE_LIBS@ $(XLIBS) $(XLIB) @TERMNET@
|
1998-09-18 16:55:02 +04:00
|
|
|
EXTRALIBS = @LVFS@ @LSLANG@ -lgtkedit @LINTL@
|
1998-02-27 07:54:42 +03:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
1998-03-05 07:53:47 +03:00
|
|
|
GNOMESRCS = \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.c \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gkey.c \
|
|
|
|
gmain.c \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.c \
|
1998-03-05 07:53:47 +03:00
|
|
|
gscreen.c \
|
|
|
|
gwidget.c \
|
|
|
|
gmenu.c \
|
|
|
|
ginfo.c \
|
|
|
|
ghelp.c \
|
|
|
|
glayout.c \
|
|
|
|
gtools.c \
|
|
|
|
gdesktop.c \
|
|
|
|
gutil.c \
|
1998-03-12 06:29:45 +03:00
|
|
|
gview.c \
|
1998-03-13 06:44:54 +03:00
|
|
|
gcmd.c \
|
1998-03-19 04:22:32 +03:00
|
|
|
gprop.c \
|
1998-03-19 07:51:17 +03:00
|
|
|
gmc-chargrid.c \
|
1998-03-24 08:25:56 +03:00
|
|
|
gpageprop.c \
|
1998-04-01 04:52:33 +04:00
|
|
|
gcliplabel.c \
|
1998-05-08 06:25:00 +04:00
|
|
|
gcache.c \
|
|
|
|
gblist.c
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-05 07:53:47 +03:00
|
|
|
GNOMEHDRS = \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.h \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.h \
|
1998-03-05 07:53:47 +03:00
|
|
|
gmain.h \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.h \
|
1998-03-05 07:53:47 +03:00
|
|
|
gscreen.h \
|
|
|
|
gwidget.h \
|
1998-03-18 00:29:22 +03:00
|
|
|
gdesktop.h \
|
1998-03-12 01:50:29 +03:00
|
|
|
gconf.h \
|
1998-03-13 06:44:54 +03:00
|
|
|
gcmd.h \
|
1998-03-19 04:22:32 +03:00
|
|
|
gprop.h \
|
1998-03-19 07:51:17 +03:00
|
|
|
gpageprop.h \
|
1998-03-24 08:25:56 +03:00
|
|
|
gmc-chargrid.h \
|
1998-04-01 04:52:33 +04:00
|
|
|
gcliplabel.h \
|
1998-05-08 06:25:00 +04:00
|
|
|
gcache.h \
|
|
|
|
gblist.h
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-23 10:12:13 +03:00
|
|
|
ICONS = \
|
1998-06-18 11:37:15 +04:00
|
|
|
directory.xpm \
|
|
|
|
i-directory.png \
|
|
|
|
i-executable.png \
|
|
|
|
i-symlink.png \
|
|
|
|
i-device.png \
|
|
|
|
i-regular.png \
|
|
|
|
i-core.png \
|
|
|
|
i-sock.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
|
|
|
|
# popt.o poptconfig.o \
|
|
|
|
# popthelp.o poptparse.o findme.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# These objects from ../src do depend on HAVE_GNOME
|
|
|
|
#
|
|
|
|
OOBJS = main.o dlg.o screen.o widget.o wtools.o info.o boxes.o \
|
1998-06-09 17:09:19 +04:00
|
|
|
file.o find.o dialog.o help.o key.o chmod.o chown.o view.o \
|
1998-02-27 07:54:42 +03:00
|
|
|
panelize.o hotlist.o listmode.o background.o dir.o util.o \
|
|
|
|
win.o color.o profile.o user.o ext.o setup.o tree.o \
|
|
|
|
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-11-04 22:03:44 +03:00
|
|
|
option.o cmd.o utilunix.o xslint.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
OBJS = $(LOBJS) $(OOBJS) \
|
1998-10-28 22:23:51 +03:00
|
|
|
gdesktop-icon.o \
|
1998-11-10 05:28:34 +03:00
|
|
|
gdnd.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gkey.o \
|
|
|
|
gmain.o \
|
1998-10-30 03:47:54 +03:00
|
|
|
gmetadata.o \
|
1998-03-13 06:44:54 +03:00
|
|
|
gscreen.o \
|
|
|
|
gwidget.o \
|
|
|
|
gmenu.o \
|
|
|
|
ghelp.o \
|
|
|
|
ginfo.o \
|
|
|
|
glayout.o \
|
|
|
|
gtools.o \
|
|
|
|
gdesktop.o \
|
|
|
|
gutil.o \
|
|
|
|
gcmd.o \
|
|
|
|
gmc-chargrid.o \
|
1998-03-19 04:22:32 +03:00
|
|
|
gview.o \
|
1998-03-19 07:51:17 +03:00
|
|
|
gprop.o \
|
1998-03-24 08:25:56 +03:00
|
|
|
gpageprop.o \
|
1998-04-01 04:52:33 +04:00
|
|
|
gcliplabel.o \
|
1998-05-08 06:25:00 +04:00
|
|
|
gcache.o \
|
|
|
|
gblist.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Distribution variables
|
|
|
|
#
|
|
|
|
|
1998-05-12 08:26:21 +04:00
|
|
|
PIXMAPS = \
|
|
|
|
dev.xpm \
|
|
|
|
link.xpm \
|
|
|
|
directory.xpm \
|
|
|
|
listing-list.xpm \
|
|
|
|
listing-iconic.xpm
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-03-18 09:24:20 +03:00
|
|
|
DISTGNOME = Makefile.in gnome.TODO layout $(PIXMAPS) $(ICONS) $(GNOMESRCS) $(GNOMEHDRS)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
|
|
|
|
|
1998-03-18 09:24:20 +03:00
|
|
|
all: @gmc@ Makefile
|
|
|
|
|
|
|
|
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-09-15 00:35:21 +04:00
|
|
|
mx: @LIBVFS@ $(OBJS) @LIBSLANG@ libgtkedit.a
|
|
|
|
$(CC) $(LDFLAGS) -o gmc $(OBJS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
|
1998-02-27 07:54:42 +03:00
|
|
|
touch mx
|
|
|
|
|
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; \
|
|
|
|
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.
|
|
|
|
|
|
|
|
cross:
|
|
|
|
$(MAKE) CC=gcc-linux CPP="gcc-linux -E" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS) -I/usr/local/lib/gcc-lib/i386-linux-linux/include/ncurses "
|
|
|
|
|
|
|
|
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-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***
|