Makefile.in   [plain text]


#	$NetBSD: Makefile.in,v 1.4 2005/06/10 04:36:12 lukem Exp $
#

srcdir	= @srcdir@
VPATH	= @srcdir@
SHELL	= /bin/sh

CC	= @CC@
CFLAGS	= @CFLAGS@
CPPFLAGS= -I${srcdir} -I${srcdir}/.. -I. -I.. @INCLUDES@ @CPPFLAGS@

AR	= @AR@
RANLIB	= @RANLIB@

LIB	= libedit.a

SRCS	= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \
	  parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c \
	  tokenizer.c history.c
OBJS	= ${SRCS:.c=.o}


all:	${LIB}

${LIB}: ${OBJS}
	${AR} cr $@ ${OBJS}
	${RANLIB} $@

${OBJS}: ${srcdir}/../tnftp.h ../config.h

.c.o:
	${CC} ${CFLAGS} ${CPPFLAGS} -c $<

install:

clean:
	rm -f ${LIB} ${OBJS}
	rm -f common.h emacs.h fcns.c fcns.h help.c help.h vi.h

distclean: clean
	rm -f Makefile makelist


vi.h: vi.c
	sh makelist -h ${srcdir}/vi.c > $@

emacs.h: emacs.c
	sh makelist -h ${srcdir}/emacs.c > $@

common.h: common.c
	sh makelist -h ${srcdir}/common.c > $@

fcns.h: vi.h emacs.h common.h
	sh makelist -fh vi.h emacs.h common.h > $@

fcns.c: vi.h emacs.h common.h fcns.h
	sh makelist -fc vi.h emacs.h common.h > $@

help.c: vi.c emacs.c common.c
	sh makelist -bc ${srcdir}/vi.c ${srcdir}/emacs.c ${srcdir}/common.c > $@

help.h: vi.c emacs.c common.c
	sh makelist -bh ${srcdir}/vi.c ${srcdir}/emacs.c ${srcdir}/common.c > $@

${OBJS}: common.h emacs.h fcns.c fcns.h help.c help.h vi.h