File: Makefile

package info (click to toggle)
retchmail 1%3A1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 256 kB
  • ctags: 156
  • sloc: cpp: 854; makefile: 73
file content (50 lines) | stat: -rw-r--r-- 1,207 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
50

prefix=/usr/local
WVSTREAMS_INC=
WVSTREAMS_LIB=
WVSTREAMS_BIN=$(prefix)/bin
WVSTREAMS_SRC=.

PC_CFLAGS=$(shell pkg-config --cflags libwvstreams)
ifeq ($(PC_CFLAGS),)
 $(error WvStreams does not appear to be installed)
endif
CPPFLAGS+=$(PC_CFLAGS)

PC_LIBS=$(shell pkg-config --libs libwvstreams)
ifeq ($(PC_LIBS),)
 $(error WvStreams does not appear to be installed)
endif
LIBS+=$(PC_LIBS)

include wvrules.mk

default: retchmail
all: retchmail

#LIBS += ${EFENCE}
LDFLAGS += -rdynamic

ifneq ($(WVSTREAMS_LIB),)
retchmail-LIBS+=$(LIBUNICONF) ${LIBWVSTREAMS} $(LIBWVUTILS)
endif
retchmail: LDFLAGS=-luniconf
retchmail: retchmail.o wvpopclient.o wvsendmail.o

install: install-bin install-man

install-bin: all
	[ -d ${prefix}/bin ] || install -d ${prefix}/bin
	install -m 0755 retchmail ${prefix}/bin

install-man:
	[ -d ${prefix}/share/man ] || install -d ${prefix}/share/man
	[ -d ${prefix}/share/man/man1 ] || install -d ${prefix}/share/man/man1
	[ -d ${prefix}/share/man/man5 ] || install -d ${prefix}/share/man/man5
	install -m 0644 retchmail.1 ${prefix}/share/man/man1
	install -m 0644 retchmail.conf.5 ${prefix}/share/man/man5

clean:
	rm -f retchmail

.PHONY: install install-bin install-man clean