BSD 4_1c_2 release
[unix-history] / usr / src / usr.lib / sendmail / lib / Makefile.m4
CommitLineData
e804469b
C
1#
2# Makefile for Sendmail library
3#
4# @(#)Makefile.m4 3.6 2/9/83
5#
6include(../md/config.m4)dnl
7
8ALL= sendmail.hf libsys.a
9SRCS= sendmail.hf syslog.c
10LIBOBJS=syslog.o
11
12GET= sccs get
13CCONFIG=m4CONFIG
14CFLAGS= $O -I../`include' $(CCONFIG) -DEBUG
15O= -O
16ASMSED= ../`include'/asm.sed
17
18.c.o:
19 cc -S ${CFLAGS} $*.c
20 sed -f $(ASMSED) $*.s | as -o $*.o
21 rm -f $*.s
22
23all: $(ALL)
24
25libsys.a: $(LIBOBJS)
26 ar rv libsys.a $(LIBOBJS)
27 ranlib libsys.a
28
29ndir: /tmp
30 cd libndir; make
31 ar rv libsys.a libndir/*.o
32 ranlib libsys.a
33 rm -f ../`include'/dir.h
34 cp libndir/dir.h ../`include'
35
36sources: $(SRCS)
37
38$(SRCS):
39 $(GET) $(REL) SCCS/s.$@
40
41clean:
42 rm -f libsys.a core a.out
43 rm -f *.o libndir/*.o