1 ## $Id: Makefile 7727 2008-04-06 07:59:46Z iulius $
3 include ../Makefile.global
8 ALL = convdate expire expireover expirerm fastrm grephistory \
9 makedbz makehistory prunehistory
11 SOURCES = convdate.c expire.c expireover.c fastrm.c grephistory.c \
12 makedbz.c makehistory.c prunehistory.c
17 $(MAKE) COPT='$(WARNINGS)' all
20 for F in convdate fastrm grephistory ; do \
21 $(LI_XPUB) $$F $D$(PATHBIN)/$$F ; \
23 for F in expire expireover makedbz makehistory prunehistory ; do \
24 $(LI_XPRI) $$F $D$(PATHBIN)/$$F ; \
26 $(CP_XPRI) expirerm $D$(PATHBIN)/expirerm
30 rm -f profiled expirep
33 clobber distclean: clean
36 tags ctags: $(SOURCES)
42 BOTH = $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
44 LINK = $(LIBLD) $(LDFLAGS) -o $@
45 INNLIBS = $(LIBINN) $(LIBS)
46 STORELIBS = $(BOTH) $(EXTSTORAGELIBS) $(LIBS)
51 @echo Run configure before running make. See INSTALL for details.
54 convdate: convdate.o $(LIBINN) ; $(LINK) convdate.o $(INNLIBS)
55 expire: expire.o $(BOTH) ; $(LINK) expire.o $(STORELIBS)
56 expireover: expireover.o $(BOTH) ; $(LINK) expireover.o $(STORELIBS)
57 fastrm: fastrm.o $(BOTH) ; $(LINK) fastrm.o $(STORELIBS)
58 grephistory: grephistory.o $(BOTH) ; $(LINK) grephistory.o $(STORELIBS)
59 makedbz: makedbz.o $(LIBINN) ; $(LINK) makedbz.o $(INNLIBS)
60 makehistory: makehistory.o $(BOTH) ; $(LINK) makehistory.o $(STORELIBS)
61 prunehistory: prunehistory.o $(BOTH) ; $(LINK) prunehistory.o $(STORELIBS)
63 expirerm: expirerm.in $(FIX) ; $(FIX) expirerm.in
65 $(LIBINN): ; (cd ../lib ; $(MAKE))
66 $(LIBSTORAGE): ; (cd ../storage ; $(MAKE))
67 $(LIBHIST): ; (cd ../history ; $(MAKE))
70 ## Profiling. These rules have not been checked for a while and may need
78 $(MAKEPROFILING) expire
83 ## Dependencies. Default list, below, is probably good enough.
85 depend: Makefile $(SOURCES)
86 $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
88 # DO NOT DELETE THIS LINE -- make depend depends on it.
89 convdate.o: convdate.c ../include/config.h ../include/inn/defines.h \
90 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
91 ../include/inn/messages.h ../include/inn/defines.h ../include/libinn.h
92 expire.o: expire.c ../include/config.h ../include/inn/defines.h \
93 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
94 ../include/inn/history.h ../include/inn/defines.h \
95 ../include/inn/innconf.h ../include/inn/messages.h \
96 ../include/inndcomm.h ../include/libinn.h ../include/paths.h \
98 expireover.o: expireover.c ../include/config.h ../include/inn/defines.h \
99 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
100 ../include/inn/innconf.h ../include/inn/defines.h \
101 ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
102 ../include/ov.h ../include/storage.h ../include/inn/history.h \
103 ../include/paths.h ../include/storage.h
104 fastrm.o: fastrm.c ../include/config.h ../include/inn/defines.h \
105 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
106 ../include/inn/innconf.h ../include/inn/defines.h \
107 ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
109 grephistory.o: grephistory.c ../include/clibrary.h ../include/config.h \
110 ../include/inn/defines.h ../include/inn/system.h \
111 ../include/inn/history.h ../include/inn/defines.h \
112 ../include/inn/innconf.h ../include/inn/messages.h ../include/libinn.h \
113 ../include/paths.h ../include/storage.h
114 makedbz.o: makedbz.c ../include/config.h ../include/inn/defines.h \
115 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
116 ../include/dbz.h ../include/libinn.h ../include/inn/innconf.h \
117 ../include/inn/defines.h ../include/inn/messages.h ../include/inn/qio.h \
118 ../include/libinn.h ../include/paths.h ../include/storage.h
119 makehistory.o: makehistory.c ../include/config.h ../include/inn/defines.h \
120 ../include/inn/system.h ../include/clibrary.h ../include/config.h \
121 ../include/portable/wait.h ../include/config.h ../include/inn/buffer.h \
122 ../include/inn/defines.h ../include/inn/history.h \
123 ../include/inn/innconf.h ../include/inn/messages.h ../include/inn/qio.h \
124 ../include/inn/wire.h ../include/libinn.h ../include/ov.h \
125 ../include/storage.h ../include/inn/history.h ../include/paths.h \
127 prunehistory.o: prunehistory.c ../include/config.h \
128 ../include/inn/defines.h ../include/inn/system.h ../include/clibrary.h \
129 ../include/config.h ../include/inn/history.h ../include/inn/defines.h \
130 ../include/inn/innconf.h ../include/inn/messages.h ../include/libinn.h \