chiark / gitweb /
debugging for thing that crashed
[innduct.git] / expire / Makefile
1 ##  $Id: Makefile 7727 2008-04-06 07:59:46Z iulius $
2
3 include ../Makefile.global
4
5 top           = ..
6 CFLAGS        = $(GCFLAGS)
7
8 ALL           = convdate expire expireover expirerm fastrm grephistory \
9                 makedbz makehistory prunehistory
10
11 SOURCES       = convdate.c expire.c expireover.c fastrm.c grephistory.c \
12                 makedbz.c makehistory.c prunehistory.c
13
14 all: $(ALL)
15
16 warnings:
17         $(MAKE) COPT='$(WARNINGS)' all
18
19 install: all
20         for F in convdate fastrm grephistory ; do \
21             $(LI_XPUB) $$F $D$(PATHBIN)/$$F ; \
22         done
23         for F in expire expireover makedbz makehistory prunehistory ; do \
24             $(LI_XPRI) $$F $D$(PATHBIN)/$$F ; \
25         done
26         $(CP_XPRI) expirerm $D$(PATHBIN)/expirerm
27
28 clean:
29         rm -f *.o $(ALL)
30         rm -f profiled expirep
31         rm -rf .libs
32
33 clobber distclean: clean
34         rm -f tags
35
36 tags ctags: $(SOURCES)
37         $(CTAGS) $(SOURCES)
38
39
40 ##  Compilation rules.
41
42 BOTH            = $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
43
44 LINK            = $(LIBLD) $(LDFLAGS) -o $@
45 INNLIBS         = $(LIBINN) $(LIBS)
46 STORELIBS       = $(BOTH) $(EXTSTORAGELIBS) $(LIBS)
47
48 FIX             = $(FIXSCRIPT)
49
50 $(FIXSCRIPT):
51         @echo Run configure before running make.  See INSTALL for details.
52         @exit 1
53
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)
62
63 expirerm:       expirerm.in    $(FIX)    ; $(FIX) expirerm.in
64
65 $(LIBINN):      ; (cd ../lib ; $(MAKE))
66 $(LIBSTORAGE):  ; (cd ../storage ; $(MAKE))
67 $(LIBHIST):     ; (cd ../history ; $(MAKE))
68
69
70 ##  Profiling.  These rules have not been checked for a while and may need
71 ##  some work.
72
73 profiled:       expirep 
74         date >$@
75
76 expirep:        expire.c
77         rm -f expire.o
78         $(MAKEPROFILING) expire
79         mv expire expirep
80         rm -f expire.o
81
82
83 ##  Dependencies.  Default list, below, is probably good enough.
84
85 depend: Makefile $(SOURCES)
86         $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
87
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 \
97   ../include/storage.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 \
108   ../include/storage.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 \
126   ../include/storage.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 \
131   ../include/paths.h