1998-02-27 07:54:42 +03:00
|
|
|
srcdir = @srcdir@
|
2000-09-14 19:12:00 +04:00
|
|
|
top_srcdir = @top_srcdir@
|
1998-02-27 07:54:42 +03:00
|
|
|
VPATH = @srcdir@
|
2000-09-18 08:57:29 +04:00
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
|
|
|
top_builddir = ..
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
@MCF@
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
CFLAGS = $(XCFLAGS)
|
2000-09-14 20:50:54 +04:00
|
|
|
CPPFLAGS = $(XCPPFLAGS) -I$(top_srcdir) -I$(top_srcdir)/edit \
|
|
|
|
-I$(top_srcdir)/gtkedit
|
1998-02-27 07:54:42 +03:00
|
|
|
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
|
|
|
|
2000-09-14 20:50:54 +04:00
|
|
|
EDITLINKS = edit.c editcmd.c editwidget.c editdraw.c editmenu.c wordproc.c \
|
|
|
|
syntax.c editoptions.c bookmark.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
|
|
|
|
2000-09-18 08:57:29 +04:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) && CONFIG_FILES=edit/Makefile CONFIG_HEADERS= $(SHELL) ./config.status
|
2000-08-28 22:51:22 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $<
|
|
|
|
|
|
|
|
check:
|
|
|
|
@echo no tests are supplied.
|
|
|
|
|
2000-09-14 20:50:54 +04:00
|
|
|
$(EDITLINKS):
|
|
|
|
for i in $(EDITLINKS); do \
|
|
|
|
$(LN_S) $(top_srcdir)/gtkedit/$$i . || exit 1; \
|
|
|
|
done
|
1998-09-17 09:44:03 +04:00
|
|
|
|
2000-09-14 20:50:54 +04:00
|
|
|
libedit.a: $(EDITOBJS)
|
2000-09-23 09:14:31 +04:00
|
|
|
rm -f libedit.a
|
1998-09-17 09:44:03 +04:00
|
|
|
$(AR) cr libedit.a $(EDITOBJS)
|
|
|
|
-$(RANLIB) libedit.a
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
mcedit:
|
2000-09-23 09:14:31 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)mcedit
|
1998-02-27 07:54:42 +03:00
|
|
|
$(LN_S) mc $(DESTDIR)$(bindir)/$(binprefix)mcedit
|
|
|
|
|
|
|
|
showlibdep:
|
|
|
|
@echo 'OBJS="$(EDITOBJS)"'
|
|
|
|
|
|
|
|
TAGS: $(EDITSRC)
|
|
|
|
etags $(EDITSRC)
|
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
mostlyclean:
|
|
|
|
rm -f *.o core a.out
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
clean: mostlyclean
|
|
|
|
rm -f libedit.a
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2000-09-23 09:14:31 +04:00
|
|
|
distclean: clean
|
|
|
|
rm -f $(EDITLINKS)
|
|
|
|
rm -f .depend
|
|
|
|
rm -f TAGS
|
|
|
|
rm -f *~
|
|
|
|
rm -f Makefile
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2001-01-11 19:48:13 +03:00
|
|
|
install:
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
2000-08-28 22:51:22 +04:00
|
|
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
|
|
|
|
|
|
|
distdir:
|
2000-09-15 10:05:22 +04:00
|
|
|
for I in $(DIST); \
|
|
|
|
do cp -p $(srcdir)/$$I $(distdir) || exit 1; \
|
|
|
|
done
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
depend dep: mcdep
|
|
|
|
|
|
|
|
fastdeploc:
|
|
|
|
|
|
|
|
# ***Dependencies***Do not edit***
|
|
|
|
@DOTDEPEND@
|
|
|
|
# ***End of dependencies***
|