chiark / gitweb /
Many options, and a manpage
[innduct.git] / nnrpd / Makefile
1 ##  $Id: Makefile 7727 2008-04-06 07:59:46Z iulius $
2
3 include ../Makefile.global
4
5 top             = ..
6 CFLAGS          = $(GCFLAGS) $(SSLINC)
7
8 ALL             = nnrpd
9
10 SOURCES         = article.c cache.c group.c commands.c line.c list.c misc.c \
11                   newnews.c nnrpd.c perl.c perm.c post.c python.c \
12                   sasl_config.c tls.c track.c
13
14 INCLUDES        = cache.h nnrpd.h post.h sasl_config.h tls.h
15
16 OBJECTS         = $(SOURCES:.c=.o)
17
18 INSTALLED       = $(D)$(PATHBIN)/nnrpd
19
20 all: $(ALL)
21
22 warnings:
23         $(MAKE) COPT='$(WARNINGS)' all
24
25 install: all
26         $(LI_XPUB) nnrpd $D$(PATHBIN)/nnrpd
27
28 clean:
29         rm -f *.o $(ALL) nnrpdp profiled
30         rm -rf .libs
31
32 clobber distclean: clean
33         rm -f tags
34
35 tags ctags: $(SOURCES) $(INCLUDES)
36         $(CTAGS) $(SOURCES) $(INCLUDES) ../lib/*.c ../include/*.h
37
38
39 ##  Compilation rules.
40
41 NNRPDLIBS       = $(LIBHIST) $(LIBSTORAGE) $(LIBINN) $(EXTSTORAGELIBS) \
42                   $(PERLLIB) $(PYTHONLIB) $(SSLLIB) $(LIBS)
43
44 perl.o:         perl.c          ; $(CC) $(CFLAGS) $(PERLINC) -c perl.c
45 python.o:       python.c        ; $(CC) $(CFLAGS) $(PYTHONINC) -c python.c
46
47 nnrpd: $(OBJECTS) $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
48         $(LIBLD) $(LDFLAGS) -o $@ $(OBJECTS) $(NNRPDLIBS)
49
50 $(LIBINN):      ; (cd ../lib ; $(MAKE))
51 $(LIBSTORAGE):  ; (cd ../storage ; $(MAKE))
52 $(LIBHIST):     ; (cd ../history ; $(MAKE))
53
54
55 ##  Profiling.  These rules have not been checked for a while and may need
56 ##  some work.
57
58 profiled:       nnrpdp
59         date >$@
60
61 nnrpdp:         $(SOURCES)
62         rm -f $(OBJECTS)
63         $(MAKEPROFILING) nnrpd
64         mv nnrpd nnrpdp
65         rm -f $(OBJECTS)
66
67
68 ##  Dependencies.  Default list, below, is probably good enough.
69
70 depend: $(SOURCES)
71         $(MAKEDEPEND) '$(CFLAGS) $(PERLINC) $(PYTHONINC) $(TCLINC)' $(SOURCES)
72
73 # DO NOT DELETE THIS LINE -- make depend depends on it.
74 article.o: article.c ../include/config.h ../include/inn/defines.h \
75   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
76   ../include/inn/innconf.h ../include/inn/defines.h \
77   ../include/inn/messages.h ../include/inn/wire.h nnrpd.h \
78   ../include/portable/socket.h ../include/config.h \
79   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
80   ../include/nntp.h ../include/paths.h ../include/storage.h \
81   ../include/inn/vector.h ../include/inn/timer.h ../include/ov.h \
82   ../include/storage.h ../include/inn/history.h tls.h cache.h
83 cache.o: cache.c ../include/config.h ../include/inn/defines.h \
84   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
85   ../include/inn/innconf.h ../include/inn/defines.h ../include/inn/tst.h \
86   ../include/inn/list.h ../include/libinn.h ../include/storage.h cache.h
87 group.o: group.c ../include/config.h ../include/inn/defines.h \
88   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
89   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
90   ../include/portable/socket.h ../include/config.h \
91   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
92   ../include/nntp.h ../include/paths.h ../include/storage.h \
93   ../include/inn/vector.h ../include/inn/timer.h ../include/ov.h \
94   ../include/storage.h ../include/inn/history.h
95 commands.o: commands.c ../include/config.h ../include/inn/defines.h \
96   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
97   ../include/portable/wait.h ../include/config.h nnrpd.h \
98   ../include/portable/socket.h ../include/portable/time.h \
99   ../include/inn/qio.h ../include/inn/defines.h ../include/libinn.h \
100   ../include/nntp.h ../include/paths.h ../include/storage.h \
101   ../include/inn/vector.h ../include/inn/timer.h ../include/ov.h \
102   ../include/storage.h ../include/inn/history.h ../include/inn/innconf.h \
103   ../include/inn/messages.h
104 line.o: line.c ../include/config.h ../include/inn/defines.h \
105   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
106   ../include/inn/messages.h ../include/inn/defines.h nnrpd.h \
107   ../include/portable/socket.h ../include/config.h \
108   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
109   ../include/nntp.h ../include/paths.h ../include/storage.h \
110   ../include/inn/vector.h ../include/inn/timer.h
111 list.o: list.c ../include/config.h ../include/inn/defines.h \
112   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
113   nnrpd.h ../include/portable/socket.h ../include/config.h \
114   ../include/portable/time.h ../include/inn/qio.h \
115   ../include/inn/defines.h ../include/libinn.h ../include/nntp.h \
116   ../include/paths.h ../include/storage.h ../include/inn/vector.h \
117   ../include/inn/timer.h ../include/ov.h ../include/storage.h \
118   ../include/inn/history.h ../include/inn/innconf.h \
119   ../include/inn/messages.h
120 misc.o: misc.c ../include/config.h ../include/inn/defines.h \
121   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
122   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
123   ../include/portable/socket.h ../include/config.h \
124   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
125   ../include/nntp.h ../include/paths.h ../include/storage.h \
126   ../include/inn/vector.h ../include/inn/timer.h tls.h sasl_config.h
127 newnews.o: newnews.c ../include/config.h ../include/inn/defines.h \
128   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
129   ../include/inn/innconf.h ../include/inn/defines.h \
130   ../include/inn/messages.h ../include/inn/wire.h nnrpd.h \
131   ../include/portable/socket.h ../include/config.h \
132   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
133   ../include/nntp.h ../include/paths.h ../include/storage.h \
134   ../include/inn/vector.h ../include/inn/timer.h ../include/ov.h \
135   ../include/storage.h ../include/inn/history.h cache.h
136 nnrpd.o: nnrpd.c ../include/config.h ../include/inn/defines.h \
137   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
138   ../include/portable/setproctitle.h ../include/config.h \
139   ../include/portable/wait.h ../include/inn/innconf.h \
140   ../include/inn/defines.h ../include/inn/messages.h ../include/libinn.h \
141   ../include/ov.h ../include/storage.h ../include/inn/history.h nnrpd.h \
142   ../include/portable/socket.h ../include/portable/time.h \
143   ../include/inn/qio.h ../include/nntp.h ../include/storage.h \
144   ../include/inn/vector.h ../include/inn/timer.h tls.h sasl_config.h
145 perl.o: perl.c ../include/config.h ../include/inn/defines.h \
146   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
147   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
148   ../include/portable/socket.h ../include/config.h \
149   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
150   ../include/nntp.h ../include/paths.h ../include/storage.h \
151   ../include/inn/vector.h ../include/inn/timer.h post.h
152 perm.o: perm.c ../include/config.h ../include/inn/defines.h \
153   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
154   ../include/portable/wait.h ../include/config.h ../include/conffile.h \
155   ../include/inn/innconf.h ../include/inn/defines.h ../include/innperl.h \
156   nnrpd.h ../include/portable/socket.h ../include/portable/time.h \
157   ../include/inn/qio.h ../include/libinn.h ../include/nntp.h \
158   ../include/paths.h ../include/storage.h ../include/inn/vector.h \
159   ../include/inn/timer.h
160 post.o: post.c ../include/config.h ../include/inn/defines.h \
161   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
162   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
163   ../include/portable/socket.h ../include/config.h \
164   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
165   ../include/nntp.h ../include/paths.h ../include/storage.h \
166   ../include/inn/vector.h ../include/inn/timer.h ../include/ov.h \
167   ../include/storage.h ../include/inn/history.h post.h
168 python.o: python.c ../include/config.h ../include/inn/defines.h \
169   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
170   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
171   ../include/portable/socket.h ../include/config.h \
172   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
173   ../include/nntp.h ../include/paths.h ../include/storage.h \
174   ../include/inn/vector.h ../include/inn/timer.h ../include/inn/hashtab.h
175 sasl_config.o: sasl_config.c ../include/config.h ../include/inn/defines.h \
176   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
177   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
178   ../include/portable/socket.h ../include/config.h \
179   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
180   ../include/nntp.h ../include/paths.h ../include/storage.h \
181   ../include/inn/vector.h ../include/inn/timer.h sasl_config.h
182 tls.o: tls.c ../include/config.h ../include/inn/defines.h \
183   ../include/inn/system.h nnrpd.h ../include/portable/socket.h \
184   ../include/config.h ../include/portable/time.h ../include/inn/qio.h \
185   ../include/inn/defines.h ../include/libinn.h ../include/config.h \
186   ../include/nntp.h ../include/paths.h ../include/storage.h \
187   ../include/inn/vector.h ../include/inn/timer.h tls.h sasl_config.h
188 track.o: track.c ../include/config.h ../include/inn/defines.h \
189   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
190   ../include/inn/innconf.h ../include/inn/defines.h nnrpd.h \
191   ../include/portable/socket.h ../include/config.h \
192   ../include/portable/time.h ../include/inn/qio.h ../include/libinn.h \
193   ../include/nntp.h ../include/paths.h ../include/storage.h \
194   ../include/inn/vector.h ../include/inn/timer.h