mc/gnome/Makefile.in

299 lines
6.6 KiB
Makefile
Raw Normal View History

1998-02-27 07:54:42 +03:00
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@
1998-12-31 04:18:31 +03:00
CORBA_LDFLAGS = $(XLDFLAGS) @GNOME_LIBDIR@ @GNOMEGNORBA_LIBS@
1998-02-27 07:54:42 +03:00
DEFS = $(XDEFS)
LIBS = $(XLIBS) @TERMNET@
EXTRALIBS = @LVFS@ -lgtkedit @LINTL@
1998-02-27 07:54:42 +03:00
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PIXMAPS = \
dev.xpm \
link.xpm \
directory.xpm \
listing-list.xpm \
listing-iconic.xpm \
1999-01-05 04:27:45 +03:00
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 \
gscreen.c \
gtools.c \
gtkdtree.c \
1998-11-29 10:50:44 +03:00
gtree.c \
gutil.c \
gview.c \
1999-01-13 06:35:26 +03:00
gwidget.c
1998-02-27 07:54:42 +03:00
GNOMEHDRS = \
gcache.h \
gcliplabel.h \
gcmd.h \
gconf.h \
1999-01-05 04:27:45 +03:00
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 \
gscreen.h \
1998-12-16 05:52:20 +03:00
gtkdtree.h \
1998-11-29 10:50:44 +03:00
gtree.h \
gwidget.h
1998-02-27 07:54:42 +03:00
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
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??
#
LOBJS = mad.o
1998-02-27 07:54:42 +03:00
#
# 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
1998-02-27 07:54:42 +03:00
CORBAOBJS = \
main-corba.o \
gcorba.o \
1998-12-14 09:45:07 +03:00
FileManager-skels.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 \
gscreen.o \
gtools.o \
1998-11-29 10:50:44 +03:00
gtree.o \
gutil.o \
gview.o \
gtkdtree.o \
gwidget.o
1998-02-27 07:54:42 +03:00
NORMALOBJS = \
main.o
CORBA_GENERATED = \
FileManager.h \
FileManager-stubs.c \
FileManager-skels.c \
FileManager-common.c
CORBA_SOURCES = \
1998-12-16 05:59:18 +03:00
gcorba.c
$(CORBA_GENERATED): $(rootdir)/idl/FileManager.idl
orbit-idl `gnome-config --cflags idl` $(rootdir)/idl/FileManager.idl
1998-12-14 09:45:07 +03:00
$(CORBA_SOURCES): $(CORBA_GENERATED)
FileManager-impl.c: FileManager.h
EXTRA_DIST = gnome.TODO layout gmc.gnorba mc.keys.in.in gimp.image.desktop
DISTGNOME = \
1998-12-30 22:56:51 +03:00
Makefile.in ChangeLog $(EXTRA_DIST) $(CORBA_SOURCES) \
$(PIXMAPS) $(ICONS) $(GNOMESRCS) $(GNOMEHDRS) $(DISTGNOME_NEW)
DISTGNOME_NEW = \
gimp.image.desktop application.x-gnumeric.desktop
1998-02-27 07:54:42 +03:00
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
main-corba.o: main.c
$(CC) -c -DHAVE_CORBA $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o main-corba.o
1998-12-31 04:18:31 +03:00
all: @mx@ Makefile mc.keys
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
1998-12-31 04:18:31 +03:00
mx: checklinks
$(MAKE) gmc
$(MAKE) corba-gmc
touch mx
1998-02-27 07:54:42 +03:00
1998-12-31 04:18:31 +03:00
gmc: @LIBVFS@ $(OBJS) $(NORMALOBJS) @LIBSLANG@ libgtkedit.a
$(CC) -o gmc $(NORMALOBJS) $(OBJS) $(LDFLAGS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
1998-02-27 07:54:42 +03:00
corba-gmc: @LIBVFS@ $(OBJS) $(CORBAOBJS) @LIBSLANG@ libgtkedit.a
$(CC) -o corba-gmc $(CORBAOBJS) $(OBJS) $(CORBA_LDFLAGS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LIBS)
1998-12-12 03:55:54 +03:00
mc.keys: mc.keys.in Makefile
1998-12-16 06:44:31 +03:00
sed -e 's^\@icondir\@^$(icondir)^g' < mc.keys.in > mc.keys.tmp \
1998-12-12 03:55:54 +03:00
&& 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@ .
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 .
libgtkedit.a:
cd ../gtkedit; $(MAKE) libgtkedit.a
@PCENTRULE@ -$(RMF) libgtkedit.a
@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
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
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:
$(RMF) gmc corba-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
-$(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
-$(RMF) $(srcdir)/Makefile
1998-02-27 07:54:42 +03:00
distcopy:
$(CP) $(DISTGNOME) ../../mc-$(VERSION)/gnome
1998-12-31 04:18:31 +03:00
install: install_@mx@
1998-02-27 07:54:42 +03:00
install_:
1998-12-31 04:18:31 +03:00
install_mx: 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)
$(mcsrcdir)/xmkdir $(gnewdir)
1998-02-27 07:54:42 +03:00
$(INSTALL_PROGRAM) gmc $(DESTDIR)$(bindir)/$(binprefix)gmc
1998-12-31 04:18:31 +03:00
$(INSTALL_PROGRAM) corba-gmc $(DESTDIR)$(bindir)/$(binprefix)corba-gmc
for I in $(ICONS); \
do $(INSTALL_DATA) $(srcdir)/$$I $(DESTDIR)$(icondir)/$$I; done
$(INSTALL_DATA) $(srcdir)/layout $(DESTDIR)$(libdir)/layout
1998-12-12 04:35:46 +03:00
$(mcsrcdir)/xmkdir $(DESTDIR)$(datadir)/mime-info
$(INSTALL_DATA) mc.keys $(DESTDIR)$(datadir)/mime-info
1998-12-31 04:18:31 +03:00
$(mcsrcdir)/xmkdir $(DESTDIR)$(corbadir)
$(INSTALL_DATA) gmc.gnorba $(DESTDIR)$(corbadir)
1998-02-27 07:54:42 +03:00
uninstall:
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)gmc
1998-12-31 04:18:31 +03:00
-$(RMF) $(DESTDIR)$(bindir)/$(binprefix)corba-gmc
for I in $(ICONS); \
do $(RMF) $(DESTDIR)$(icondir)/$$I; done
-rmdir $(DESTDIR)$(icondir)
-$(RMF) $(DESTDIR)$(libdir)/layout
1998-12-31 04:18:31 +03:00
-$(RMF) $(DESTDIR)$(datadir)/mime-info/mc.keys
-rmdir $(DESTDIR)$(datadir)/mime-info
-$(RMF) $(gnewdir)
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***