mc/edit/Makefile.in
Pavel Roskin 91e7526108 * configure.in, Make.common.in, doc/Makefile.in,
edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: rootdir
changed to top_srcdir for Automake compatability
2000-09-14 15:12:00 +00:00

107 lines
2.2 KiB
Makefile

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@MCFG@@MCF@
CFLAGS = $(XCFLAGS)
CPPFLAGS = $(XCPPFLAGS)
LDFLAGS = $(XLDFLAGS)
DEFS = $(XDEFS)
LIBS = @SHADOWLIB@ $(XLIBS) @TERMNET@ @PAMLIBS@ $(XLIB)
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
AR = @AR@
#
# Distribution variables
#
EDITSRC = edit_key_translator.c
EDITOBJS = edit.o editcmd.o editwidget.o editdraw.o editmenu.o wordproc.o \
syntax.o editoptions.o bookmark.o
DIST = Makefile.in $(EDITSRC)
all: @LIBEDIT_A@
Makefile: $(srcdir)/Makefile.in $(builddir)/config.status
cd $(builddir) && CONFIG_FILES=edit/Makefile CONFIG_HEADERS= $(SHELL) ./config.status
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $<
check:
@echo no tests are supplied.
checklinks:
@if test -f $(top_srcdir)/edit/edit.c; then echo ok; \
else $(MAKE) sourcelinks; fi
@if test -f $(top_srcdir)/edit/bookmark.c; then echo ok; \
else $(MAKE) sourcelinks; fi
sourcelinks:
-cd $(top_srcdir)/edit ; $(LN_S) ../gtkedit/*.[ch] . >/dev/null 2>&1 ; true
cleansourcelinks:
-if test -f $(top_srcdir)/edit/edit.c; then \
cd $(top_srcdir)/edit; find . -lname '*.[ch]' | xargs $(RM); \
fi
libedit.a: checklinks
$(MAKE) mx
touch mx
mx: $(EDITOBJS)
$(RMF) libedit.a
$(AR) cr libedit.a $(EDITOBJS)
-$(RANLIB) libedit.a
mcedit:
$(RMF) $(DESTDIR)$(bindir)/$(binprefix)mcedit
$(LN_S) mc $(DESTDIR)$(bindir)/$(binprefix)mcedit
showlibdep:
@echo 'OBJS="$(EDITOBJS)"'
cross:
$(MAKE) CC=gcc-linux CPP="gcc-linux -E" \
CPPFLAGS="$(CPPFLAGS) -I/usr/local/lib/gcc-lib/i386-linux-linux/include/ncurses "
TAGS: $(EDITSRC)
etags $(EDITSRC)
clean:
$(RMF) *.o core a.out libedit.a mx
realclean: clean
$(RMF) .depend
$(RMF) TAGS
$(RMF) *~
distclean: cleansourcelinks
$(RMF) $(srcdir)/*~ $(srcdir)/*.o $(srcdir)/a.out
$(RMF) $(srcdir)/core $(srcdir)/libedit.a
-if test $(srcdir) = .; then $(MAKE) realclean; fi
$(RMF) $(srcdir)/Makefile
install: @MCEDIT@
uninstall:
$(RMF) $(DESTDIR)$(bindir)/$(binprefix)mcedit
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
distdir:
for I in $(DIST); do $(CP) $(srcdir)/$$I $(distdir); done
depend dep: mcdep
fastdeploc:
# ***Dependencies***Do not edit***
@DOTDEPEND@
# ***End of dependencies***