-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (51 loc) · 1.21 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Id$: GNUmakefile 1.74 14.01.2000
#
# (c) 1994-2000, Dirk Meyer, Im Grund 4, 34317 Habichtswald
#
include ../Makefile.global
RSMTPSPOOL=$(SPOOLDIR)/rsmtp
CPPFLAGS+= -DUNIX -DHAVE_SYSEXITS
CFLAGS+= -O2 -g $(WARN)
LDFLAGS+= -g
CPPFLAGS+= -DMAILDIR="\"$(RSMTPSPOOL)"\"
TARMIN = \
rsmtp \
bsmtp
BINMIN = \
$(BINDIR)/rsmtp \
$(BINDIR)/bsmtp
# rules
all: $(TARMIN)
install: ${BINDIR} \
$(SPOOLDIR)/rsmtp \
$(TARMIN) \
$(BINMIN)
uninstall:
-rm -f $(BINMIN) $(BINDIR)/rgsmtp $(BINDIR)/rcsmtp
clean:
-rm -f $(CLEANFILES) $(TARMIN)
distclean: clean
rsmtp: rsmtp.o
$(CC) -o rsmtp rsmtp.o $(LIBS) $(LDFLAGS)
bsmtp: bsmtp.o
$(CC) -o bsmtp bsmtp.o $(LIBS) $(LDFLAGS)
# install rules
$(BINDIR):
mkdir -p ${BINDIR}
$(SPOOLDIR)/rsmtp:
mkdir -p $(SPOOLDIR)/rsmtp
chown $(USER) $(SPOOLDIR)/rsmtp
chmod 1777 $(SPOOLDIR)/rsmtp
$(BINDIR)/rsmtp: rsmtp
$(INSTALL_PROGRAM) rsmtp $@
$(INSTALL_PROGRAM) rsmtp $(BINDIR)/rgsmtp
$(INSTALL_PROGRAM) rsmtp $(BINDIR)/rcsmtp
$(BINDIR)/bsmtp: bsmtp
$(INSTALL_PROGRAM) rsmtp $@
# end of makefile
# automatic depend
bsmtp.o: bsmtp.c ../include/istring.h ../include/sysexits2.h version.h
rsmtp.o: rsmtp.c ../include/istring.h ../include/iwait.h \
../include/sysexits2.h version.h
# eof