2 |
- |
1 |
SSRC= message.c main.c bind.c rewrite.c local.c dest.c process.c translate.c\
|
|
|
2 |
log.c chkfwd.c notify.c gateway.c authorize.o ../common/*.c
|
|
|
3 |
SOBJ= message.o main.o bind.o rewrite.o local.o dest.o process.o translate.o\
|
|
|
4 |
log.o chkfwd.o notify.o gateway.o authorize.o\
|
|
|
5 |
../config/config.o ../common/common.a ../libc/libc.a
|
|
|
6 |
SINC= ../common/mail.h ../common/string.h ../common/aux.h
|
|
|
7 |
CFLAGS=${UNIX} -g -I. -I../libc -I../common -I/usr/include ${SCFLAGS}
|
|
|
8 |
LFLAGS=-g
|
|
|
9 |
.c.o: ; $(CC) -c $(CFLAGS) $*.c
|
|
|
10 |
LIB=/usr/lib/upas
|
|
|
11 |
|
|
|
12 |
all: send
|
|
|
13 |
|
|
|
14 |
send: $(SOBJ)
|
|
|
15 |
$(CC) $(SOBJ) $(LFLAGS) -o send
|
|
|
16 |
|
|
|
17 |
chkfwd.o: $(SINC) message.h dest.h
|
|
|
18 |
dest.o: $(SINC) dest.h
|
|
|
19 |
local.o: $(SINC) dest.h process.h
|
|
|
20 |
log.o: $(SINC) message.h
|
|
|
21 |
main.o: $(SINC) message.h dest.h process.h
|
|
|
22 |
bind.o: $(SINC) dest.h message.h
|
|
|
23 |
process.o: $(SINC) process.h
|
|
|
24 |
rewrite.o: $(SINC) dest.h
|
|
|
25 |
translate.o: $(SINC) dest.h process.h
|
|
|
26 |
message.o: $(SINC) message.h
|
|
|
27 |
notify.o: $(SINC) message.h
|
|
|
28 |
gateway.o: $(SINC) dest.h message.h
|
|
|
29 |
|
|
|
30 |
prcan:
|
|
|
31 |
prcan $(SSRC)
|
|
|
32 |
|
|
|
33 |
clean:
|
|
|
34 |
-rm -f send *.[oO] a.out core *.sL rmail
|
|
|
35 |
|
|
|
36 |
cyntax:
|
|
|
37 |
cyntax $(CFLAGS) $(SSRC)
|
|
|
38 |
|
|
|
39 |
install: send
|
|
|
40 |
rm -f $(LIB)/send /bin/rmail
|
|
|
41 |
cp send $(LIB)/send
|
|
|
42 |
cp send /bin/rmail
|
|
|
43 |
strip /bin/rmail
|
|
|
44 |
strip $(LIB)/send
|
|
|
45 |
chown root $(LIB)/send /bin/rmail
|
|
|
46 |
chmod 4755 $(LIB)/send /bin/rmail
|