andrei@versabanq.com: wvdbusd: handle *all* messages addressed to o.f.D.
[wvapps.git] / retchmail / Makefile
blob7c2aacf012c07e281efb490e30694f0d464e905d
2 prefix=/usr/local
4 ifeq ($(WVSTREAMS),)
5 WVSTREAMS_INC=
6 WVSTREAMS_LIB=
7 WVSTREAMS_BIN=$(prefix)/bin
8 WVSTREAMS_SRC=.
10 PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
11 ifeq ($(PC_CFLAGS),)
12 $(error WvStreams does not appear to be installed)
13 endif
14 CPPFLAGS+=$(PC_CFLAGS)
16 PC_LIBS=$(shell pkg-config --libs libwvstreams)
17 ifeq ($(PC_LIBS),)
18 $(error WvStreams does not appear to be installed)
19 endif
20 LIBS+=$(PC_LIBS)
21 endif
23 include wvrules.mk
25 default: retchmail
26 all: retchmail
28 #LIBS += ${EFENCE}
29 LDFLAGS += -rdynamic
31 ifneq ($(WVSTREAMS_LIB),)
32 retchmail-LIBS+=$(LIBUNICONF) ${LIBWVSTREAMS} $(LIBWVUTILS)
33 else
34 retchmail: LDFLAGS=-luniconf
35 endif
36 retchmail: retchmail.o wvpopclient.o wvsendmail.o
38 install: install-bin install-man
40 install-bin: all
41 [ -d ${prefix}/bin ] || install -d ${prefix}/bin
42 install -m 0755 retchmail ${prefix}/bin
44 install-man:
45 [ -d ${prefix}/share/man ] || install -d ${prefix}/share/man
46 [ -d ${prefix}/share/man/man1 ] || install -d ${prefix}/share/man/man1
47 [ -d ${prefix}/share/man/man5 ] || install -d ${prefix}/share/man/man5
48 install -m 0644 retchmail.1 ${prefix}/share/man/man1
49 install -m 0644 retchmail.conf.5 ${prefix}/share/man/man5
51 clean:
52 rm -f retchmail
54 .PHONY: install install-bin install-man clean