File: Makefile

package info (click to toggle)
bidentd 1.0.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 172 kB
  • ctags: 106
  • sloc: cpp: 234; sh: 93; makefile: 91
file content (49 lines) | stat: -rw-r--r-- 1,238 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
VERSION = 1.0.7

CPP=gcc
CXX=g++
CPPFLAGS=-Wall -W -pedantic -g -pipe -Wtraditional -Wundef -Wbad-function-cast \
    -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes \
    -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
    -Wnested-externs -Winline -DVERSION=\"$(VERSION)\"
CXXFLAGS=-O2 -fomit-frame-pointer
LDFLAGS=-s
BINDIR=/usr/local/sbin
MANDIR=/usr/local/man/man8
INSTALL=install

PROG=bidentd
OBJS=main.o

ARCHDIR=archives/
ARCHNAME=${PROG}-$(VERSION)
ARCHFILES=main.cc README ChangeLog COPYING sizes.h rfc1413 INSTALL bidentd.8
INSTALLPROGS=$(PROG)
DEPFUN_INSTALL=bin

$(PROG): $(OBJS)
	$(CXX) $(LDFLAGS) -o $@ $^

install: install${DEPFUN_INSTALL}
	install -c -m 644 ${PROG}.8 ${MANDIR}/${PROG}.8
	@echo Done.
	@echo Now ensure that ${PROG} starts automatically from inetd.
deinstall: uninstall
uninstall: uninstall${DEPFUN_INSTALL}
	
startup: install
	@echo You must manually make inetd spawn ${PROG}.
	@echo Try adding this line to /etc/inetd.conf:
	@echo auth stream tcp nowait nobody ${BINDIR}/$PROG $PROG

update: uninstall${DEPFUN_INSTALL} start
	- killall -1 inetd
	@echo Updated.

clean:
	rm -f $(PROG) $(OBJS)
distclean: clean
	rm -f core *~ .depend
realclean: distclean

include depfun.mak