1 | # |
---|
2 | # $Id: Makefile.in,v 1.3 2007-08-09 20:41:30 amb Exp $ |
---|
3 | # |
---|
4 | |
---|
5 | SHELL=/bin/sh |
---|
6 | VPATH=@srcdir@ |
---|
7 | INSTALL=@INSTALL@ |
---|
8 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
9 | srcdir=@srcdir@ |
---|
10 | top_srcdir=@top_srcdir@ |
---|
11 | prefix=@prefix@ |
---|
12 | exec_prefix=@exec_prefix@ |
---|
13 | bindir=@bindir@ |
---|
14 | datadir=@datadir@ |
---|
15 | infodir=${datadir}/discuss/info |
---|
16 | |
---|
17 | CC=@CC@ |
---|
18 | DEFS=@DEFS@ |
---|
19 | CPPFLAGS=@CPPFLAGS@ |
---|
20 | CFLAGS=@CFLAGS@ |
---|
21 | LDFLAGS=@LDFLAGS@ |
---|
22 | LIBS=../server/acl.o ../libds/libdsk.a ../usp/libusp.a @KRB4_LIBS@ @KRB5_LIBS@ -lss @LIBS@ |
---|
23 | ALL_CFLAGS=-I../include ${CPPFLAGS} ${CFLAGS} ${DEFS} |
---|
24 | |
---|
25 | OBJS= discuss.o edit.o output.o trn_expr.o list.o trn_select.o \ |
---|
26 | status.o new_trans.o print.o lsm.o addmtg.o list_acl.o \ |
---|
27 | interrupt.o goto.o reply.o ckm.o anm.o time.o data.o \ |
---|
28 | cmds.o rn.o randrp.o catchup.o set.o ../ets/discuss_err.o |
---|
29 | |
---|
30 | # Pairs of symlink source and destination. |
---|
31 | INFOLINKS= add_mtg.info add_meeting.info \ |
---|
32 | am.info add_meeting.info \ |
---|
33 | anm.info announce_meeting.info \ |
---|
34 | ann_mtg.info announce_meeting.info \ |
---|
35 | ckm.info check_meetings.info \ |
---|
36 | d.info delete.info \ |
---|
37 | da.info delete_acl.info \ |
---|
38 | dl.info delete.info \ |
---|
39 | enter.info talk.info \ |
---|
40 | exit.info quit.info \ |
---|
41 | g.info goto.info \ |
---|
42 | go.info goto.info \ |
---|
43 | la.info list_acl.info \ |
---|
44 | ls.info list.info \ |
---|
45 | lsm.info list_meetings.info \ |
---|
46 | next.info print.info \ |
---|
47 | nm.info next_meeting.info \ |
---|
48 | nref.info print.info \ |
---|
49 | p.info print.info \ |
---|
50 | pr.info print.info \ |
---|
51 | pref.info print.info \ |
---|
52 | prev.info print.info \ |
---|
53 | q.info quit.info \ |
---|
54 | read_new.info rn.info \ |
---|
55 | rp.info reply.info \ |
---|
56 | sa.info set_acl.info \ |
---|
57 | send.info talk.info \ |
---|
58 | spec.info transaction_specifiers.info \ |
---|
59 | specifiers.info transaction_specifiers.info \ |
---|
60 | swf.info switch_off.info \ |
---|
61 | swn.info switch_on.info \ |
---|
62 | w.info write.info |
---|
63 | |
---|
64 | .SUFFIXES: .ct |
---|
65 | |
---|
66 | .c.o: |
---|
67 | ${CC} -c ${ALL_CFLAGS} $< |
---|
68 | |
---|
69 | .y.o: |
---|
70 | yacc $< |
---|
71 | mv -f y.tab.c $*.c |
---|
72 | ${CC} -c ${ALL_CFLAGS} $*.c |
---|
73 | |
---|
74 | .ct.o: |
---|
75 | mk_cmds $< |
---|
76 | ${CC} -c ${ALL_CFLAGS} $*.c |
---|
77 | |
---|
78 | # cmds.o: cmds.ct |
---|
79 | # mk_cmds cmds.ct |
---|
80 | # ${CC} -c ${ALL_CFLAGS} cmds.c |
---|
81 | |
---|
82 | all: discuss |
---|
83 | |
---|
84 | clean: |
---|
85 | rm -f *.o *~ \#* *.bak |
---|
86 | rm -f discuss trn_expr.c y.tab.c TAGS info.tar |
---|
87 | |
---|
88 | depend: |
---|
89 | |
---|
90 | install: |
---|
91 | ${top_srcdir}/mkinstalldirs ${DESTDIR}${infodir} |
---|
92 | ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir} |
---|
93 | ${INSTALL} -m 444 ${srcdir}/info/access.info ${DESTDIR}${infodir} |
---|
94 | ${INSTALL} -m 444 ${srcdir}/info/add_meeting.info ${DESTDIR}${infodir} |
---|
95 | ${INSTALL} -m 444 ${srcdir}/info/announce_meeting.info \ |
---|
96 | ${DESTDIR}${infodir} |
---|
97 | ${INSTALL} -m 444 ${srcdir}/info/check_meetings.info \ |
---|
98 | ${DESTDIR}${infodir} |
---|
99 | ${INSTALL} -m 444 ${srcdir}/info/del_mtg.info ${DESTDIR}${infodir} |
---|
100 | ${INSTALL} -m 444 ${srcdir}/info/delete.info ${DESTDIR}${infodir} |
---|
101 | ${INSTALL} -m 444 ${srcdir}/info/delete_acl.info ${DESTDIR}${infodir} |
---|
102 | ${INSTALL} -m 444 ${srcdir}/info/goto.info ${DESTDIR}${infodir} |
---|
103 | ${INSTALL} -m 444 ${srcdir}/info/help.info ${DESTDIR}${infodir} |
---|
104 | ${INSTALL} -m 444 ${srcdir}/info/list.info ${DESTDIR}${infodir} |
---|
105 | ${INSTALL} -m 444 ${srcdir}/info/list_acl.info ${DESTDIR}${infodir} |
---|
106 | ${INSTALL} -m 444 ${srcdir}/info/list_meetings.info \ |
---|
107 | ${DESTDIR}${infodir} |
---|
108 | ${INSTALL} -m 444 ${srcdir}/info/next_meeting.info \ |
---|
109 | ${DESTDIR}${infodir} |
---|
110 | ${INSTALL} -m 444 ${srcdir}/info/print.info ${DESTDIR}${infodir} |
---|
111 | ${INSTALL} -m 444 ${srcdir}/info/quit.info ${DESTDIR}${infodir} |
---|
112 | ${INSTALL} -m 444 ${srcdir}/info/reply.info ${DESTDIR}${infodir} |
---|
113 | ${INSTALL} -m 444 ${srcdir}/info/retrieve.info ${DESTDIR}${infodir} |
---|
114 | ${INSTALL} -m 444 ${srcdir}/info/rn.info ${DESTDIR}${infodir} |
---|
115 | ${INSTALL} -m 444 ${srcdir}/info/set.info ${DESTDIR}${infodir} |
---|
116 | ${INSTALL} -m 444 ${srcdir}/info/set_acl.info ${DESTDIR}${infodir} |
---|
117 | ${INSTALL} -m 444 ${srcdir}/info/status.info ${DESTDIR}${infodir} |
---|
118 | ${INSTALL} -m 444 ${srcdir}/info/switch_off.info ${DESTDIR}${infodir} |
---|
119 | ${INSTALL} -m 444 ${srcdir}/info/switch_on.info ${DESTDIR}${infodir} |
---|
120 | ${INSTALL} -m 444 ${srcdir}/info/talk.info ${DESTDIR}${infodir} |
---|
121 | ${INSTALL} -m 444 ${srcdir}/info/transaction_specifiers.info \ |
---|
122 | ${DESTDIR}${infodir} |
---|
123 | ${INSTALL} -m 444 ${srcdir}/info/write.info ${DESTDIR}${infodir} |
---|
124 | ${INSTALL_PROGRAM} discuss ${DESTDIR}${bindir} |
---|
125 | @set $(INFOLINKS); \ |
---|
126 | while [ $$# -ge 2 ]; do \ |
---|
127 | rm -f ${DESTDIR}${infodir}/$$1; \ |
---|
128 | echo ln -s $$2 ${DESTDIR}${infodir}/$$1; \ |
---|
129 | ln -s $$2 ${DESTDIR}${infodir}/$$1; \ |
---|
130 | shift 2; \ |
---|
131 | done |
---|
132 | |
---|
133 | discuss: $(OBJS) |
---|
134 | ${CC} ${LDFLAGS} -o discuss ${OBJS} ${LIBS} |
---|
135 | |
---|