1#### Start of system configuration section. ####
2
3srcdir          = @srcdir@
4prefix          = @prefix@
5exec_prefix     = @exec_prefix@
6bindir          = @bindir@
7libdir          = @libdir@
8mandir          = @mandir@
9VPATH           = @srcdir@
10
11INSTALL         = @INSTALL@
12INSTALL_PROGRAM = @INSTALL_PROGRAM@
13INSTALL_DATA    = @INSTALL_DATA@
14CPPFLAGS        = @CPPFLAGS@
15CXXFLAGS        = @CXXFLAGS@
16LDFLAGS         = @LDFLAGS@
17LIBS            = @LIBS@
18CC              = @CC@
19CPP             = @CPP@
20
21CFLAGS          = @CFLAGS@ @DEFS@
22
23#### End of system configuration section. ####
24
25SHELL           = /bin/sh
26
27HDRS            = deco.h dir.h env.h menu.h rec.h scr.h
28
29OBJS            = cap.o choice.o cmd.o com.o dir.o draw.o edit.o env.o ex.o\
30		  help.o hexview.o key.o main.o menu.o mh.o pw.o\
31		  rec.o run.o scr.o tty.o ut.o view.o
32
33SRCS            = cap.c choice.c cmd.c com.c dir.c draw.c edit.c env.c ex.c\
34		  help.c hexview.c key.c main.c menu.c mh.c pw.c\
35		  rec.c run.c scr.c tty.c ut.c view.c
36
37all:            deco
38
39check:
40
41install:        deco $(libdir)/deco $(libdir)/deco/help\
42			$(libdir)/deco/menu $(libdir)/deco/profile
43		$(INSTALL_PROGRAM) deco ${DESTDIR}$(bindir)
44		cd help; for f in *.general *.edit *.view *.hexview; do\
45			$(INSTALL_DATA) $$f ${DESTDIR}$(libdir)/deco/help/$$f; done
46		$(INSTALL_DATA) ref.man ${DESTDIR}$(mandir)/man1/deco.1
47		$(INSTALL_DATA) cyrref.man ${DESTDIR}$(mandir)/ru.KOI8-R/man1/deco.1
48
49$(libdir)/deco:
50		mkdir ${DESTDIR}$(libdir)/deco
51
52$(libdir)/deco/help:
53		mkdir ${DESTDIR}$(libdir)/deco/help
54
55$(libdir)/deco/menu:
56		$(INSTALL_DATA) menu ${DESTDIR}$(libdir)/deco/menu
57
58$(libdir)/deco/profile:
59		$(INSTALL_DATA) profile ${DESTDIR}$(libdir)/deco/profile
60
61uninstall:
62
63clean::
64		rm -f *.[ob] *~ deco *.log autoconf.sum config.cache
65
66distclean::	clean
67		rm -f Makefile config.status
68
69deco:           $(OBJS)
70		$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o deco
71
72configure:      configure.in
73		autoconf
74
75Makefile:       Makefile.in config.status
76		./config.status
77
78config.status:  configure
79		./config.status --recheck
80
81###
82cap.o: scr.h env.h deco.h
83choice.o: scr.h dir.h deco.h
84cmd.o: deco.h dir.h scr.h env.h
85com.o: deco.h scr.h dir.h env.h
86dir.o: dir.h deco.h
87draw.o: dir.h deco.h scr.h
88edit.o: deco.h scr.h rec.h
89env.o: deco.h
90ex.o: dir.h deco.h scr.h
91help.o: deco.h scr.h env.h
92hexview.o: deco.h scr.h rec.h
93key.o: scr.h
94main.o: scr.h dir.h deco.h env.h
95menu.o: deco.h scr.h menu.h
96mh.o: scr.h dir.h deco.h menu.h
97pw.o: deco.h
98rec.o: rec.h deco.h
99run.o: deco.h env.h
100scr.o: scr.h env.h deco.h
101tty.o: scr.h
102ut.o: deco.h
103view.o: deco.h scr.h rec.h
104