schedulator: added a "result" plugin that records the finished schedule in a database...
[wvapps.git] / retchmail / Makefile
blob046ed40765f1a06ecb3aff3a6ec53203f45ed2f3
1 ifeq ($(TOPDIR),)
2 TOPDIR=.
4 prefix=/usr/local
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 else
22 XPATH=$(TOPDIR)/src
23 endif
25 include $(TOPDIR)/wvrules.mk
27 default: retchmail
28 all: retchmail
30 #LIBS += ${EFENCE}
31 LDFLAGS += -rdynamic
33 retchmail-LIBS+=$(LIBUNICONF) ${LIBWVSTREAMS} $(LIBWVUTILS)
34 retchmail: retchmail.o wvpopclient.o wvsendmail.o -luniconf
36 install: install-bin install-man
38 install-bin: all
39 [ -d ${prefix}/bin ] || install -d ${prefix}/bin
40 install -m 0755 retchmail ${prefix}/bin
42 install-man:
43 [ -d ${prefix}/share/man ] || install -d ${prefix}/share/man
44 [ -d ${prefix}/share/man/man1 ] || install -d ${prefix}/share/man/man1
45 [ -d ${prefix}/share/man/man5 ] || install -d ${prefix}/share/man/man5
46 install -m 0644 retchmail.1 ${prefix}/share/man/man1
47 install -m 0644 retchmail.conf.5 ${prefix}/share/man/man5
49 clean:
50 rm -f retchmail
52 .PHONY: install install-bin install-man clean