root/src/noitedit/Makefile.in

Revision 06601a4dda0346aeef2da039407fd01010951a73, 1.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

cleanup makefile deps and targets. instead of not noticing subdeps, we now much build twice if explicity toplevel targets (noitd/stratcond) are used. Better, but not best.

  • Property mode set to 100644
Line 
1 CC=@CC@
2 CPPFLAGS=@CPPFLAGS@
3 CFLAGS=@CFLAGS@
4 DEPFLAGS=@DEPFLAGS@
5 LDFLAGS=@LDFLAGS@
6 AR=@AR@
7 RANLIB=@RANLIB@
8 LIBS=@LIBS@
9 INSTALL=@INSTALL@
10
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libdir=@libdir@
16 includedir=${prefix}/include
17 libexecdir=@libexecdir@
18 datarootdir = @datarootdir@
19 mandir=@mandir@
20 mansubdir=@mansubdir@
21 docdir=${prefix}/@docdir@
22 sysconfdir=@sysconfdir@
23 srcdir=@srcdir@
24 top_srcdir=@top_srcdir@
25
26 FABHEADERS=vi.h emacs.h common.h fcns.h help.h
27
28 OBJS=chared.o common.o el.o emacs.o fcns.o fgetln.o \
29         help.o hist.o history.o key.o map.o parse.o prompt.o \
30         read.o readline.o refresh.o search.o sig.o strlcpy.o \
31         term.o tokenizer.o tty.o vi.o
32
33 libnoitedit.a:   $(FABHEADERS) $(OBJS)
34         @rm -f $@
35         @$(AR) cq $@ $(OBJS)
36         @echo "- archiving $@"
37         @$(RANLIB) $@
38
39 .c.o:   vi.h emacs.h common.h fcns.h help.h
40         @$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
41         @echo "- compiling $<"
42
43 vi.h: vi.c makelist
44         @sh ./makelist -h vi.c > $@
45         @echo "- makelist $@"
46
47 emacs.h: emacs.c makelist
48         @sh ./makelist -h emacs.c > $@
49         @echo "- makelist $@"
50
51 common.h: common.c makelist
52         @sh ./makelist -h common.c > $@
53         @echo "- makelist $@"
54
55 fcns.h: vi.h emacs.h common.h makelist
56         @sh ./makelist -fh vi.h emacs.h common.h > $@
57         @echo "- makelist $@"
58
59 fcns.c: fcns.h
60         @sh ./makelist -fc vi.h emacs.h common.h > $@
61         @echo "- makelist $@"
62
63 help.c: vi.c emacs.c common.c makelist
64         @sh ./makelist -bc vi.c emacs.c common.c > $@
65         @echo "- makelist $@"
66
67 help.h: vi.c emacs.c common.c makelist
68         @sh ./makelist -bh vi.c emacs.c common.c > $@
69         @echo "- makelist $@"
70
71 editline.c: vi.c emacs.c common.c makelist
72         @sh ./makelist -e vi.c emacs.c common.c > $@
73         @echo "- makelist $@"
74
75 clean:
76         rm -f *.o *.a editline.c
77
78 distclean:      clean
79         rm -f Makefile
80
81 Makefile.dep:
82         $(CC) -I. -I.. $(CPPFALGS) $(CFLAGS) $(DEPFLAGS) *.c > Makefile.dep
83         $(top_srcdir)/buildtools/culldeps.sh Makefile.dep
84
85 include Makefile.dep
Note: See TracBrowser for help on using the browser.