chiark / gitweb /
break out allow_connect_start
[inn-innduct.git] / frontends / 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           = c7unbatch cnfsheadconf cnfsstat ctlinnd decode encode \
9                 getlist gunbatch inews innconfval mailpost pullnews \
10                 ovdb_init ovdb_monitor ovdb_server ovdb_stat rnews \
11                 scanspool sm
12
13 SOURCES       = ctlinnd.c decode.c encode.c getlist.c inews.c innconfval.c \
14                 ovdb_init.c ovdb_monitor.c ovdb_server.c ovdb_stat.c rnews.c \
15                 sm.c
16
17 all: $(ALL)
18
19 warnings:
20         $(MAKE) COPT='$(WARNINGS)' all
21
22 install: all
23         $(LI_INEWS) inews $D$(PATHBIN)/inews
24         $(LI_RNEWS) rnews $D$(PATHBIN)/rnews
25         $(CP_XPRI) cnfsheadconf $D$(PATHBIN)/cnfsheadconf
26         for F in cnfsstat mailpost pullnews scanspool ; do \
27             $(CP_XPUB) $$F $D$(PATHBIN)/$$F ; \
28         done
29         for F in ctlinnd ovdb_init ovdb_monitor ovdb_server ovdb_stat ; do \
30             $(LI_XPRI) $$F $D$(PATHBIN)/$$F ; \
31         done
32         for F in getlist innconfval sm ; do \
33             $(LI_XPUB) $$F $D$(PATHBIN)/$$F ; \
34         done
35         $(CP_XPUB) c7unbatch $D$(PATHBIN)/rnews.libexec/c7unbatch
36         $(LI_XPUB) decode $D$(PATHBIN)/rnews.libexec/decode
37         $(LI_XPUB) encode $D$(PATHBIN)/rnews.libexec/encode
38         $(CP_XPUB) gunbatch $D$(PATHBIN)/rnews.libexec/gunbatch
39
40 clean:
41         rm -f *.o $(ALL)
42         rm -rf .libs
43
44 clobber distclean: clean
45         rm -f tags
46
47 tags ctags: $(SOURCES)
48         $(CTAGS) $(SOURCES)
49
50 profiled:
51         $(MAKEPROFILING) all
52
53 $(FIXSCRIPT):
54         @echo Run configure before running make.  See INSTALL for details.
55         @exit 1
56
57
58 ##  Compilation rules.
59
60 BOTH            = $(LIBSTORAGE) $(LIBHIST) $(LIBINN)
61
62 LINK            = $(LIBLD) $(LDFLAGS) -o $@
63 INNLIBS         = $(LIBINN) $(LIBS)
64 STORELIBS       = $(BOTH) $(EXTSTORAGELIBS) $(LIBS)
65
66 FIX             = $(FIXSCRIPT)
67
68 ctlinnd:        ctlinnd.o      $(LIBINN) ; $(LINK) ctlinnd.o      $(INNLIBS)
69 decode:         decode.o       $(LIBINN) ; $(LINK) decode.o       $(INNLIBS)
70 encode:         encode.o                 ; $(LINK) encode.o
71 getlist:        getlist.o      $(LIBINN) ; $(LINK) getlist.o      $(INNLIBS)
72 inews:          inews.o        $(LIBINN) ; $(LINK) inews.o        $(INNLIBS)
73 innconfval:     innconfval.o   $(LIBINN) ; $(LINK) innconfval.o   $(INNLIBS)
74 ovdb_init:      ovdb_init.o    $(BOTH)   ; $(LINK) ovdb_init.o    $(STORELIBS)
75 ovdb_monitor:   ovdb_monitor.o $(BOTH)   ; $(LINK) ovdb_monitor.o $(STORELIBS)
76 ovdb_server:    ovdb_server.o  $(BOTH)   ; $(LINK) ovdb_server.o  $(STORELIBS)
77 ovdb_stat:      ovdb_stat.o    $(BOTH)   ; $(LINK) ovdb_stat.o    $(STORELIBS)
78 rnews:          rnews.o        $(LIBINN) ; $(LINK) rnews.o        $(STORELIBS)
79 sm:             sm.o           $(BOTH)   ; $(LINK) sm.o           $(STORELIBS)
80
81 ovdb_init.o: ovdb_init.c
82         $(CC) $(CFLAGS) $(BERKELEY_DB_CFLAGS) -c $<
83
84 ovdb_monitor.o: ovdb_monitor.c
85         $(CC) $(CFLAGS) $(BERKELEY_DB_CFLAGS) -c $<
86
87 ovdb_server.o: ovdb_server.c
88         $(CC) $(CFLAGS) $(BERKELEY_DB_CFLAGS) -c $<
89
90 ovdb_stat.o: ovdb_stat.c
91         $(CC) $(CFLAGS) $(BERKELEY_DB_CFLAGS) -c $<
92
93 cnfsheadconf:   cnfsheadconf.in  $(FIX) ; $(FIX) cnfsheadconf.in
94 cnfsstat:       cnfsstat.in      $(FIX) ; $(FIX) cnfsstat.in
95 mailpost:       mailpost.in      $(FIX) ; $(FIX) mailpost.in
96 pullnews:       pullnews.in      $(FIX) ; $(FIX) -i pullnews.in
97 scanspool:      scanspool.in     $(FIX) ; $(FIX) scanspool.in
98
99 c7unbatch: Makefile ../Makefile.global
100         ( echo '#! $(SHELL)' ; echo 'decode | $(UNCOMPRESS)' ) > $@
101         chmod 755 c7unbatch
102
103 gunbatch: Makefile ../Makefile.global
104         ( echo '#! $(SHELL)' ; echo 'exec $(GZIP) -d -c' ) > $@
105         chmod 755 gunbatch
106
107 ##  Not normally built.
108 feedone:        feedone.o     $(LIBINN) ; $(LINK) feedone.o $(INNLIBS)
109 sys2nf:         sys2nf.o      $(LIBINN) ; $(LINK) sys2nf.o  $(INNLIBS)
110
111 $(LIBINN):      ; (cd ../lib ; $(MAKE))
112 $(LIBSTORAGE):  ; (cd ../storage ; $(MAKE))
113 $(LIBHIST):     ; (cd ../history ; $(MAKE))
114
115
116 ##  Dependencies.  Default list, below, is probably good enough.
117
118 depend: Makefile $(SOURCES)
119         $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
120
121 # DO NOT DELETE THIS LINE -- make depend depends on it.
122 ctlinnd.o: ctlinnd.c ../include/config.h ../include/inn/defines.h \
123   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
124   ../include/inn/innconf.h ../include/inn/defines.h \
125   ../include/inn/messages.h ../include/inndcomm.h ../include/libinn.h \
126   ../include/paths.h
127 decode.o: decode.c ../include/config.h ../include/inn/defines.h \
128   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
129   ../include/inn/messages.h ../include/inn/defines.h
130 encode.o: encode.c ../include/config.h ../include/inn/defines.h \
131   ../include/inn/system.h ../include/clibrary.h ../include/config.h
132 getlist.o: getlist.c ../include/config.h ../include/inn/defines.h \
133   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
134   ../include/inn/innconf.h ../include/inn/defines.h \
135   ../include/inn/messages.h ../include/inn/qio.h ../include/libinn.h \
136   ../include/paths.h
137 inews.o: inews.c ../include/config.h ../include/inn/defines.h \
138   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
139   ../include/portable/time.h ../include/config.h ../include/inn/innconf.h \
140   ../include/inn/defines.h ../include/inn/messages.h ../include/libinn.h \
141   ../include/nntp.h ../include/paths.h
142 innconfval.o: innconfval.c ../include/config.h ../include/inn/defines.h \
143   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
144   ../include/inn/innconf.h ../include/inn/defines.h \
145   ../include/inn/messages.h ../include/libinn.h
146 ovdb_init.o: ovdb_init.c ../include/config.h ../include/inn/defines.h \
147   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
148   ../include/libinn.h ../include/inn/innconf.h ../include/inn/defines.h \
149   ../include/inn/messages.h ../include/ov.h ../include/storage.h \
150   ../include/inn/history.h ../storage/ovdb/ovdb.h \
151   ../storage/ovdb/ovdb-private.h
152 ovdb_monitor.o: ovdb_monitor.c ../include/config.h \
153   ../include/inn/defines.h ../include/inn/system.h ../include/clibrary.h \
154   ../include/config.h ../include/portable/setproctitle.h \
155   ../include/config.h ../include/portable/wait.h ../include/inn/innconf.h \
156   ../include/inn/defines.h ../include/inn/messages.h ../include/libinn.h \
157   ../include/ov.h ../include/storage.h ../include/inn/history.h \
158   ../storage/ovdb/ovdb.h ../storage/ovdb/ovdb-private.h
159 ovdb_server.o: ovdb_server.c ../include/config.h ../include/inn/defines.h \
160   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
161   ../include/portable/mmap.h ../include/config.h \
162   ../include/portable/time.h ../include/portable/setproctitle.h \
163   ../include/portable/socket.h ../include/portable/wait.h \
164   ../include/inn/innconf.h ../include/inn/defines.h \
165   ../include/inn/messages.h ../include/libinn.h ../include/paths.h \
166   ../include/storage.h ../include/ov.h ../include/storage.h \
167   ../include/inn/history.h ../storage/ovdb/ovdb.h \
168   ../storage/ovdb/ovdb-private.h
169 ovdb_stat.o: ovdb_stat.c ../include/config.h ../include/inn/defines.h \
170   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
171   ../include/inn/innconf.h ../include/inn/defines.h \
172   ../include/inn/messages.h ../include/libinn.h ../include/ov.h \
173   ../include/storage.h ../include/inn/history.h ../include/paths.h \
174   ../include/storage.h ../storage/ovdb/ovdb.h \
175   ../storage/ovdb/ovdb-private.h
176 rnews.o: rnews.c ../include/config.h ../include/inn/defines.h \
177   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
178   ../include/portable/wait.h ../include/config.h ../include/inn/innconf.h \
179   ../include/inn/defines.h ../include/inn/messages.h \
180   ../include/inn/wire.h ../include/libinn.h ../include/nntp.h \
181   ../include/paths.h ../include/storage.h
182 sm.o: sm.c ../include/config.h ../include/inn/defines.h \
183   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
184   ../include/inn/innconf.h ../include/inn/defines.h \
185   ../include/inn/messages.h ../include/inn/qio.h ../include/storage.h