mc/edit/Makefile.in

87 lines
1.7 KiB
Makefile
Raw Normal View History

1998-02-27 07:54:42 +03:00
srcdir = @srcdir@
top_srcdir = @top_srcdir@
1998-02-27 07:54:42 +03:00
VPATH = @srcdir@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
top_builddir = ..
1998-02-27 07:54:42 +03:00
@MCF@
1998-02-27 07:54:42 +03:00
CFLAGS = $(XCFLAGS)
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
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
all: @LIBEDIT_A@
1998-02-27 07:54:42 +03:00
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && CONFIG_FILES=edit/Makefile CONFIG_HEADERS= $(SHELL) ./config.status
1998-02-27 07:54:42 +03:00
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) -DMIDNIGHT $<
check:
@echo no tests are supplied.
$(EDITLINKS):
for i in $(EDITLINKS); do \
$(LN_S) $(top_srcdir)/gtkedit/$$i . || exit 1; \
done
libedit.a: $(EDITOBJS)
rm -f libedit.a
$(AR) cr libedit.a $(EDITOBJS)
-$(RANLIB) libedit.a
1998-02-27 07:54:42 +03:00
mcedit:
rm -f $(DESTDIR)$(bindir)/$(binprefix)mcedit
1998-02-27 07:54:42 +03:00
$(LN_S) mc $(DESTDIR)$(bindir)/$(binprefix)mcedit
TAGS: $(EDITSRC)
etags $(EDITSRC)
mostlyclean:
rm -f *.o core a.out
1998-02-27 07:54:42 +03:00
clean: mostlyclean
rm -f libedit.a
1998-02-27 07:54:42 +03:00
distclean: clean
rm -f $(EDITLINKS)
rm -f TAGS
rm -f *~
rm -f Makefile
1998-02-27 07:54:42 +03:00
install:
1998-02-27 07:54:42 +03:00
uninstall:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
distdir:
for I in $(DIST); \
do cp -p $(srcdir)/$$I $(distdir) || exit 1; \
done
1998-02-27 07:54:42 +03:00
depend:
1998-02-27 07:54:42 +03:00