home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-12-24 | 1.6 KB | 59 lines |
- # Written by Matthew Dillon
- #
- # (C)Copyright 1986-89 by Matthew Dillon
- #
- # This code is completely original. I declare this code to be public
- # domain. You may redistribute this code as long as any those
- # redistributions contain this and all other files in their entirety.
- #
- # Ports: Anybody may port this code to any machine or OS they wish, of
- # course. If you do make a port, I would be grateful if you mailed
- # a letter with: (A) OS you ported it too, and (B) version ported,
- # so I may inform people who have mailed me wondering about ports
- # who to contact.
- #
- # Send bug reports and other gripes to:
- #
- # dillon@moonshot.west.oic.com
- #
- # INSTRUCTIONS FOR COMPILING:
- #
- # (1) Set DESTDIR & HELP_DIR to some global directory accessable to
- # everybody (or whatever). Also set HELP_CHMOD and PROG_CHMOD
- # to the right thing if you don't like the defaults.
-
- #
- # config.c is a link to /lib/config.c, but we use registerized parameters
- # here.
-
- OD= dtmp:uucp/dmail/
- EXE= uucp:c/dmail
- CFLAGS= -I uucp:src/include/ -proto -r -mRR
- MAKEPROTO=dtmp:uucp/lib/makeproto
- PROTOS= uucp:src/include/dmail_protos.h
-
- LIBS= -Luucp:src/dlib -lodu -r -mRR
-
- SRCS= config.c globals.c main.c do_lists.c sub.c execom.c commands.c \
- range.c load_mail.c sendmail.c set.c help.c cond.c compat.c
-
- OBJS= $(SRCS:"*.c":"$(OD)*.o")
- LOBJS= $(SRCS:"*.c":"*.o")
-
- all: $(PROTOS) $(EXE)
-
- $(EXE): $(OBJS)
- dcc $(OBJS) $(LIBS) -o %(left) -r
-
- dmail: $(OBJS)
- dcc $(OBJS) $(LIBS) -o %(left) -r
-
- $(OBJS) : $(SRCS)
- dcc $(CFLAGS) %(right) -o %(left) -c -r
-
- $(PROTOS): $(SRCS)
- $(MAKEPROTO) -o%(left) %(right)
-
- clean:
- delete $(OBJS)
-