home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-08-07 | 1.4 KB | 59 lines |
- # Makefile for smail
- # @(#)Makefile 2.5 (smail) 9/15/87
- #
- # Modified for SCO Xenix by Chip Salzenberg <chip@ateng.UUCP>.
- # Released to Usenet on 01 Dec 1987.
- # Fixed as per comments of Chris Lewis <uunet!mnetor!spectrix!clewis>.
- #
- # With the addition of the `xenix' pseudo-target, this makefile now makes
- # both smail and execm by default.
- #
- # Use the `install_smail' script to install the resulting binaries.
-
- CFLAGS = -O
- LDFLAGS = -i
- SHELL = /bin/sh
- COPY = copy -om
-
- #
- # System V Release 2.0 sites can use -lmalloc for a faster malloc
- #
- #LIBS = -lmalloc
-
- OBJECTS = main.o map.o resolve.o deliver.o misc.o alias.o pw.o headers.o getpath.o str.o getopt.o
-
- xenix: smail execm
- all: smail svbinmail lcasep pathproc mkfnames nptx execm
-
- smail: $(OBJECTS)
- $(CC) $(LDFLAGS) -F 4000 $(OBJECTS) -o smail $(LIBS)
-
- $(OBJECTS): defs.h
- $(CC) $(CFLAGS) -c $<
-
- execm: execm.c
- $(CC) $(CFLAGS) $(LDFLAGS) execm.c -o execm
-
- svbinmail: svbinmail.c defs.h
- $(CC) $(CFLAGS) $(LDFLAGS) svbinmail.c -o svbinmail
-
- lcasep: lcasep.c
- $(CC) $(CFLAGS) $(LDFLAGS) lcasep.c -o lcasep
-
- pathproc: pathproc.sh
- $(COPY) pathproc.sh pathproc
- chmod 755 pathproc
-
- mkfnames: mkfnames.sh
- $(COPY) mkfnames.sh mkfnames
- chmod 755 mkfnames
-
- nptx: nptx.o pw.o str.o
- $(CC) $(CFLAGS) nptx.o pw.o str.o -o nptx $(LIBS)
-
- clean:
- rm -f *.o *.ln a.out core
-
- clobber: clean
- rm -f smail rmail lcasep pathproc mkfnames svbinmail nptx execm
-