Makefile.am 3.02 KB
Newer Older
1 2 3 4
## Process this file with automake to create Makefile.in
# Makefile for the GNU readline library.
# Copyright (C) 1994,1996,1997 Free Software Foundation, Inc.

unknown's avatar
unknown committed
5 6
ASRC =			$(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
AHDR =			vi.h emacs.h common.h
7

8 9
# Make sure to include stuff from this directory first, to get right "config.h"
INCLUDES =		-I. -I$(top_builddir)/include -I$(top_srcdir)/include
10

unknown's avatar
unknown committed
11
noinst_LIBRARIES =	libedit.a
12

unknown's avatar
unknown committed
13 14 15 16 17 18 19 20 21 22
libedit_a_SOURCES =	chared.c el.c history.c map.c prompt.c readline.c \
			search.c tokenizer.c vi.c common.c emacs.c \
			hist.c key.c parse.c read.c refresh.c sig.c term.c \
			tty.c help.c fcns.c

EXTRA_libedit_a_SOURCES =	np/unvis.c np/strlcpy.c np/vis.c np/strlcat.c \
				np/fgetln.c

libedit_a_LIBADD = 		@LIBEDIT_LOBJECTS@
libedit_a_DEPENDENCIES 	= 	@LIBEDIT_LOBJECTS@
23

unknown's avatar
unknown committed
24 25 26
noinst_HEADERS =	readline/readline.h \
\
			chared.h el.h el_term.h histedit.h key.h parse.h refresh.h sig.h \
27
			sys.h tokenizer.h config.h hist.h map.h prompt.h read.h \
28
			search.h tty.h libedit_term.h vis.h
29

30
EXTRA_DIST = makelist.sh np/unvis.c np/strlcpy.c np/vis.c np/vis.h np/strlcat.c np/fgetln.c
31

unknown's avatar
unknown committed
32
CLEANFILES = makelist common.h emacs.h vi.h fcns.h help.h fcns.c help.c
33

unknown's avatar
unknown committed
34
DEFS = -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR 
35

36 37 38 39 40 41 42 43 44
SUFFIXES = .sh

.sh:
	@RM@ -f $@ $@-t
	@SED@ \
	  -e 's!@''AWK''@!@AWK@!' \
	$< > $@-t
	@MV@ $@-t $@

unknown's avatar
unknown committed
45 46
vi.h: $(srcdir)/vi.c makelist
	sh ./makelist -h $(srcdir)/vi.c > $@.tmp && \
47 48
	mv $@.tmp $@

unknown's avatar
unknown committed
49 50
emacs.h: $(srcdir)/emacs.c makelist
	sh ./makelist -h $(srcdir)/emacs.c > $@.tmp && \
51 52
	mv $@.tmp $@

unknown's avatar
unknown committed
53 54
common.h: $(srcdir)/common.c makelist
	sh ./makelist -h $(srcdir)/common.c > $@.tmp && \
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
	mv $@.tmp $@

help.c: ${ASRC} makelist
	sh ./makelist -bc ${ASRC} > $@.tmp && \
	mv $@.tmp $@

help.h: ${ASRC} makelist
	sh ./makelist -bh ${ASRC} > $@.tmp && \
	mv $@.tmp $@

fcns.h: ${AHDR} makelist
	sh ./makelist -fh ${AHDR} > $@.tmp && \
	mv $@.tmp $@

fcns.c: ${AHDR} fcns.h makelist
	sh ./makelist -fc ${AHDR} > $@.tmp && \
	mv $@.tmp $@

#%.o: vi.h emacs.h common.h help.h fcns.h
#objects := $(patsubst %.c,%.o,$(wildcard *.c))
#$(objects):  vi.h emacs.h

chared.o: vi.h emacs.h common.h help.h fcns.h
el.o: vi.h emacs.h common.h help.h fcns.h
history.o: vi.h emacs.h common.h help.h fcns.h 
map.o: vi.h emacs.h common.h help.h fcns.h
prompt.o: vi.h emacs.h common.h help.h fcns.h
readline.o: vi.h emacs.h common.h help.h fcns.h
search.o: vi.h emacs.h common.h help.h fcns.h
tokenizer.o: vi.h emacs.h common.h help.h fcns.h
vi.o: vi.h emacs.h common.h help.h fcns.h
common.o: vi.h emacs.h common.h help.h fcns.h
emacs.o: vi.h emacs.h common.h help.h fcns.h 
hist.o: vi.h emacs.h common.h help.h fcns.h 
key.o: vi.h emacs.h common.h help.h fcns.h 
parse.o: vi.h emacs.h common.h help.h fcns.h
read.o: vi.h emacs.h common.h help.h fcns.h
refresh.o: vi.h emacs.h common.h help.h fcns.h
sig.o: vi.h emacs.h common.h help.h fcns.h
term.o: vi.h emacs.h common.h help.h fcns.h
tty.o: vi.h emacs.h common.h help.h fcns.h 
help.o: vi.h emacs.h common.h help.h fcns.h
fcns.o: vi.h emacs.h common.h help.h fcns.h

# Don't update the files from bitkeeper
%::SCCS/s.%