1998-02-27 07:54:42 +03:00
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
rootdir = $(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
|
|
|
|
#
|
|
|
|
|
1998-12-16 08:04:13 +03:00
|
|
|
EDITSRC = edit_key_translator.c
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
EDITOBJS = edit.o editcmd.o editwidget.o editdraw.o editmenu.o wordproc.o \
|
1999-03-21 04:57:34 +03:00
|
|
|
syntax.o editoptions.o bookmark.o
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-09-18 23:45:27 +04:00
|
|
|
DIST = Makefile.in $(EDITSRC)
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1998-09-17 09:44:03 +04:00
|
|
|
all: @LIBEDIT_A@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $<
|
|
|
|
|
|
|
|
check:
|
|
|
|
@echo no tests are supplied.
|
|
|
|
|
1998-09-16 01:30:31 +04:00
|
|
|
checklinks:
|
1999-03-21 18:42:55 +03:00
|
|
|
@if test -f $(rootdir)/edit/edit.c; then echo ok; \
|
|
|
|
else $(MAKE) sourcelinks; fi
|
|
|
|
@if test -f $(rootdir)/edit/bookmark.c; then echo ok; \
|
1998-09-16 01:30:31 +04:00
|
|
|
else $(MAKE) sourcelinks; fi
|
|
|
|
|
|
|
|
sourcelinks:
|
|
|
|
-cd $(rootdir)/edit ; $(LN_S) ../gtkedit/*.[ch] . >/dev/null 2>&1 ; true
|
|
|
|
|
1998-09-17 09:44:03 +04:00
|
|
|
cleansourcelinks:
|
|
|
|
-if test -f $(rootdir)/edit/edit.c; then \
|
|
|
|
cd $(rootdir)/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
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
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:
|
1998-09-17 09:44:03 +04:00
|
|
|
$(RMF) *.o core a.out libedit.a mx
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
realclean: clean
|
|
|
|
$(RMF) .depend
|
|
|
|
$(RMF) TAGS
|
|
|
|
$(RMF) *~
|
|
|
|
|
1998-09-17 09:44:03 +04:00
|
|
|
distclean: cleansourcelinks
|
1998-02-27 07:54:42 +03:00
|
|
|
-$(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
|
|
|
|
|
|
|
|
distcopy:
|
1999-08-20 00:17:40 +04:00
|
|
|
for I in $(DIST); do $(CP) $(top_srcdir)/edit/$$I $(top_srcdir)/mc-$(VERSION)/edit; done
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
depend dep: mcdep
|
|
|
|
|
|
|
|
fastdeploc:
|
|
|
|
|
|
|
|
# ***Dependencies***Do not edit***
|
|
|
|
@DOTDEPEND@
|
|
|
|
# ***End of dependencies***
|