annotate Makefile @ 12:43631b72021f noffle

[svn] Fixed bug: multiple line headers of posted articles were truncated
author enz
date Sat, 15 Apr 2000 11:09:20 +0100
parents 29a576bc379a
children 97ef217c3d89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
1 ###############################################################################
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
2 #
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
3 # Makefile for Noffle news server
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
4 #
7
29a576bc379a [svn] Makefile for version 20000211
enz
parents: 0
diff changeset
5 # $Id: Makefile 12 2000-02-11 07:51:41Z enz $
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
6 #
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
7 ###############################################################################
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
8
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
9 SPOOLDIR = /var/spool/noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
10 PREFIX = /usr/local
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
11
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
12 CONFIGFILE = /etc/noffle.conf
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
13 BINDIR = $(PREFIX)/bin
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
14 MANDIR = $(PREFIX)/man
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
15 DOCDIR = $(PREFIX)/doc/noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
16
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
17 CC = gcc
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
18 CFLAGS = -Wall -O -g
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
19 #CFLAGS = -Wall -g -DDEBUG
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
20
7
29a576bc379a [svn] Makefile for version 20000211
enz
parents: 0
diff changeset
21 VERSION = 20000211
0
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
22
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
23 FILESH = client.h common.h config.h content.h database.h dynamicstring.h \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
24 fetch.h fetchlist.h group.h lock.h log.h online.h outgoing.h over.h \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
25 protocol.h pseudo.h request.h server.h util.h
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
26
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
27 FILESC = fetch.c client.c config.c content.c database.c dynamicstring.c \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
28 fetchlist.c group.c lock.c log.c noffle.c online.c outgoing.c over.c \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
29 protocol.c pseudo.c request.c server.c util.c
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
30
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
31 OBJS = $(patsubst %.c,%.o,$(FILESC))
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
32
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
33 all: noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
34
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
35 noffle: $(OBJS)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
36 $(CC) $(CFLAGS) -o noffle $(OBJS) -lgdbm
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
37
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
38 config.o: config.c config.h Makefile
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
39 $(CC) $(CFLAGS) -c -DSPOOLDIR=\"$(SPOOLDIR)\" \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
40 -DVERSION=\"$(VERSION)\" -DCONFIGFILE=\"$(CONFIGFILE)\" config.c
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
41
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
42 log.o: log.c log.h Makefile
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
43
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
44 depend:
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
45 gcc -MM -MG -E $(FILESC) >depend
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
46
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
47 clean:
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
48 rm -f depend $(OBJS) noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
49
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
50 install: noffle
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
51 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(BINDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
52 install -m 4755 -o news -g news noffle $(RPM_BUILD_ROOT)$(BINDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
53 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man1
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
54 install -m 0644 -o 0 -g 0 noffle.1 \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
55 $(RPM_BUILD_ROOT)$(MANDIR)/man1/noffle.1
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
56 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(MANDIR)/man5
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
57 install -m 0644 -o 0 -g 0 noffle.conf.5 \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
58 $(RPM_BUILD_ROOT)$(MANDIR)/man5/noffle.conf.5
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
59 install -m 2755 -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
60 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/data
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
61 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/lock
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
62 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/requested
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
63 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/outgoing
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
64 install -o news -g news -d $(RPM_BUILD_ROOT)$(SPOOLDIR)/overview
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
65 install -o 0 -g 0 -d $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
66 install -m 0644 -o 0 -g 0 README.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
67 install -m 0644 -o 0 -g 0 NOTES.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
68 install -m 0644 -o 0 -g 0 INSTALL.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
69 install -m 0644 -o 0 -g 0 CHANGELOG.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
70 install -m 0644 -o 0 -g 0 FAQ.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
71 install -m 0644 -o 0 -g 0 COPYING.txt $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
72 install -m 0644 -o 0 -g 0 noffle.conf.example \
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
73 $(RPM_BUILD_ROOT)$(DOCDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
74 chown -R news.news $(RPM_BUILD_ROOT)$(SPOOLDIR)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
75 @echo
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
76 @echo Read INSTALL.txt for further instructions.
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
77
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
78 tags:
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
79 etags $(FILESC) $(FILESH)
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
80
04124a4423d4 [svn] Initial revision
enz
parents:
diff changeset
81 -include depend