1 | # $Id: Makefile.in,v 1.1 1998-11-16 16:43:36 ghudson Exp $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | VPATH=@srcdir@ |
---|
5 | INSTALL=@INSTALL@ |
---|
6 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
---|
7 | INSTALL_DATA=@INSTALL_DATA@ |
---|
8 | MKDIR_P=@MKDIR_P@ |
---|
9 | srcdir=@srcdir@ |
---|
10 | top_srcdir=@top_srcdir@ |
---|
11 | prefix=@prefix@ |
---|
12 | exec_prefix=@exec_prefix@ |
---|
13 | bindir=@bindir@ |
---|
14 | datarootdir=@datarootdir@ |
---|
15 | mandir=@mandir@ |
---|
16 | |
---|
17 | CC=@CC@ |
---|
18 | DEFS=@DEFS@ |
---|
19 | CPPFLAGS=@CPPFLAGS@ |
---|
20 | CFLAGS=@CFLAGS@ |
---|
21 | LDFLAGS=@LDFLAGS@ |
---|
22 | LIBS=@AFS_LIBS@ @LIBS@ |
---|
23 | ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS} |
---|
24 | |
---|
25 | COBJS= util.o delete_errs.o errors.o |
---|
26 | POBJS= directories.o pattern.o shell_regexp.o stack.o |
---|
27 | OBJS= ${COBJS} ${POBJS} delete.o undelete.o expunge.o lsdel.o col.o |
---|
28 | DELETEOBJS= delete.o ${POBJS} ${COBJS} |
---|
29 | UNDELETEOBJS= undelete.o ${POBJS} ${COBJS} |
---|
30 | EXPUNGEOBJS= expunge.o col.o ${POBJS} ${COBJS} |
---|
31 | LSDELOBJS= lsdel.o col.o ${POBJS} ${COBJS} |
---|
32 | |
---|
33 | PROGS= delete undelete expunge lsdel |
---|
34 | |
---|
35 | all: ${PROGS} |
---|
36 | |
---|
37 | delete: ${DELETEOBJS} |
---|
38 | ${CC} ${LDFLAGS} -o $@ ${DELETEOBJS} ${LIBS} |
---|
39 | |
---|
40 | undelete: ${UNDELETEOBJS} |
---|
41 | ${CC} ${LDFLAGS} -o $@ ${UNDELETEOBJS} ${LIBS} |
---|
42 | |
---|
43 | expunge: ${EXPUNGEOBJS} |
---|
44 | ${CC} ${LDFLAGS} -o $@ ${EXPUNGEOBJS} ${LIBS} |
---|
45 | |
---|
46 | lsdel: ${LSDELOBJS} |
---|
47 | ${CC} ${LDFLAGS} -o $@ ${LSDELOBJS} ${LIBS} |
---|
48 | |
---|
49 | delete_errs.h delete_errs.c: |
---|
50 | compile_et ${srcdir}/delete_errs.et |
---|
51 | |
---|
52 | .c.o: |
---|
53 | ${CC} -c ${ALL_CFLAGS} $< |
---|
54 | |
---|
55 | check: |
---|
56 | |
---|
57 | install: |
---|
58 | ${MKDIR_P} ${DESTDIR}${bindir} |
---|
59 | ${MKDIR_P} ${DESTDIR}${mandir}/man1 |
---|
60 | ${INSTALL_PROGRAM} delete ${DESTDIR}${bindir} |
---|
61 | ${INSTALL_PROGRAM} undelete ${DESTDIR}${bindir} |
---|
62 | ${INSTALL_PROGRAM} expunge ${DESTDIR}${bindir} |
---|
63 | ${INSTALL_PROGRAM} lsdel ${DESTDIR}${bindir} |
---|
64 | rm -f ${DESTDIR}${bindir}/purge |
---|
65 | ln -s expunge ${DESTDIR}${bindir}/purge |
---|
66 | ${INSTALL_DATA} ${srcdir}/man1/delete.1 ${DESTDIR}${mandir}/man1 |
---|
67 | ${INSTALL_DATA} ${srcdir}/man1/undelete.1 ${DESTDIR}${mandir}/man1 |
---|
68 | ${INSTALL_DATA} ${srcdir}/man1/expunge.1 ${DESTDIR}${mandir}/man1 |
---|
69 | ${INSTALL_DATA} ${srcdir}/man1/lsdel.1 ${DESTDIR}${mandir}/man1 |
---|
70 | ${INSTALL_DATA} ${srcdir}/man1/purge.1 ${DESTDIR}${mandir}/man1 |
---|
71 | |
---|
72 | clean: |
---|
73 | rm -f ${PROGS} ${OBJS} |
---|
74 | |
---|
75 | distclean: clean |
---|
76 | rm -f config.cache config.log config.status Makefile |
---|
77 | |
---|
78 | col.o: col.c errors.h mit-copying.h delete_errs.h col.h |
---|
79 | delete.o: delete.c errors.h mit-copying.h delete_errs.h util.h delete.h |
---|
80 | directories.o: directories.c delete_errs.h util.h mit-copying.h \ |
---|
81 | directories.h errors.h |
---|
82 | errors.o: errors.c delete_errs.h mit-copying.h |
---|
83 | expunge.o: expunge.c col.h mit-copying.h util.h directories.h \ |
---|
84 | pattern.h expunge.h shell_regexp.h delete_errs.h errors.h |
---|
85 | lsdel.o: lsdel.c col.h mit-copying.h util.h directories.h pattern.h \ |
---|
86 | lsdel.h shell_regexp.h delete_errs.h errors.h |
---|
87 | pattern.o: pattern.c pattern.h mit-copying.h util.h directories.h \ |
---|
88 | undelete.h shell_regexp.h delete_errs.h errors.h stack.h |
---|
89 | shell_regexp.o: shell_regexp.c shell_regexp.h mit-copying.h \ |
---|
90 | delete_errs.h errors.h |
---|
91 | stack.o: stack.c stack.h mit-copying.h delete_errs.h errors.h util.h |
---|
92 | undelete.o: undelete.c delete_errs.h pattern.h mit-copying.h util.h \ |
---|
93 | directories.h undelete.h shell_regexp.h errors.h |
---|
94 | util.o: util.c delete_errs.h util.h mit-copying.h directories.h \ |
---|
95 | errors.h |
---|