1# Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
2#
3# Permission to use, copy, modify, and distribute this material
4# for any purpose and without fee is hereby granted, provided
5# that the above copyright notice and this permission notice
6# appear in all copies, and that the name of Bellcore not be
7# used in advertising or publicity pertaining to this
8# material without the specific, prior written permission
9# of an authorized representative of Bellcore.  BELLCORE
10# MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
11# OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
12# WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
13#
14CC = dcc
15# -gs is probably no longer needed, leave it in to be on the safe side.
16CFLAGS = -gs -r -ms -I.
17
18LDLIBS = UULIB:uucp.lib
19
20CONFIGDIR = /
21UUCPINCLUDE = uucp:src/include
22
23LOCALCFLAGS= -I$(CONFIGDIR) $(CFLAGS) -I$(UUCPINCLUDE)
24
25SRCS = codes.c mailto.c metamail.c mmencode.c shared.c splitmail.c uue.c
26OBJS = codes.o mailto.o metamail.o mmencode.o shared.o splitmail.o uue.o
27APPS = metamail mmencode mailto splitmail
28
29all: $(APPS)
30
31mmencode: mmencode.o codes.o
32        $(CC) $(LOCALCFLAGS) -o %(left) %(right) $(LDLIBS)
33
34mailto: mailto.o codes.o shared.o
35        $(CC) $(LOCALCFLAGS) -o %(left) %(right) $(LDLIBS)
36
37splitmail: splitmail.o
38        $(CC) $(LOCALCFLAGS) -o %(left) %(right) $(LDLIBS)
39
40metamail:  metamail.o codes.o shared.o uue.o
41        $(CC) $(LOCALCFLAGS) -o %(left) %(right) $(LDLIBS)
42
43$(OBJS) : $(SRCS)
44        $(CC) $(LOCALCFLAGS) -o %(left) %(right) -c
45
46clean:
47        -Delete $(APPS) #?.o #?.BAK
48