-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 939 Bytes
/
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
# Makefile for mailer
# $Id: Makefile,v 1.2 2008/06/23 21:09:22 tjd Exp $
CC=gcc
WFLAGS=-Wall -pedantic
OFLAGS=-O2 -fomit-frame-pointer # -fno-inline -fno-unroll-loops
GFLAGS=-g
CFLAGS=$(WFLAGS) $(OFLAGS)
# uncomment for debug
#CFLAGS=$(WFLAGS) $(GFLAGS)
#LDFLAGS=$(GFLAGS)
MLIBS= -lresolv # -l44bsd # needed for lrdc5, new bind not in libc.
MAILER=mailer
MPP=mpp
PROGS=$(MAILER) $(MPP)
SRCS= mailer.c do_list.c readmessage.c domain.c deliver.c mpp.c \
arpadate.c bounce.c
HDRS= conf.h sendmail.h mailer_config.h cdefs.h userlist.h
MOBJS= mailer.o do_list.o readmessage.o domain.o deliver.o bounce.o
POBJS= mpp.o arpadate.o
all: ${PROGS}
${MAILER}: ${MOBJS}
$(CC) $(LDFLAGS) ${MOBJS} $(MLIBS) -o $(MAILER)
${MPP}: ${POBJS}
$(CC) $(LDFLAGS) ${POBJS} -o $(MPP)
strip: ${PROGS}
strip $(PROGS)
clean:
rm -f *.o
realclean: clean
rm -f $(PROGS)
checkout:
co ${SRCS} ${HDRS}
tar:
tar cvf mailer.tar RCS
gzip -9 mailer.tar