1
1
mc/edit/Makefile.in
Pavel Roskin 35003a05c3 * edit/Makefile.in: Don't link headers, add extra includes
to CPPFLAGS instead. Put links to the build directory.
Remove the hack with "mx" - it is not needed anymore.
2000-09-14 16:50:54 +00:00

98 строки
2.0 KiB
Makefile

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@MCFG@@MCF@
CFLAGS = $(XCFLAGS)
CPPFLAGS = $(XCPPFLAGS) -I$(top_srcdir) -I$(top_srcdir)/edit \
-I$(top_srcdir)/gtkedit
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
EDITLINKS = edit.c editcmd.c editwidget.c editdraw.c editmenu.c wordproc.c \
syntax.c editoptions.c bookmark.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.
$(EDITLINKS):
for i in $(EDITLINKS); do \
$(LN_S) $(top_srcdir)/gtkedit/$$i . || exit 1; \
done
libedit.a: $(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 $(EDITLINKS)
realclean: clean
$(RMF) .depend
$(RMF) TAGS
$(RMF) *~
distclean:
$(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***