xref: /titanic_52/usr/src/cmd/sendmail/libsm/Makefile (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# cmd/sendmail/libsm/Makefile
29#
30
31include		../../Makefile.cmd
32include		../Makefile.cmd
33
34INCPATH=	-I. -I../src -I../include
35CPPFLAGS=	$(INCPATH) $(RLS_DEF) $(DBMDEF) $(CPPFLAGS.master)
36
37ARFLAGS=	cq
38
39OBJS=   assert.o cf.o clock.o clrerr.o config.o debug.o errstring.o exc.o \
40	fclose.o feof.o ferror.o fflush.o fget.o findfp.o flags.o fopen.o \
41	fpos.o fprintf.o fpurge.o fput.o fread.o fscanf.o fseek.o fvwrite.o \
42	fwalk.o fwrite.o get.o heap.o ldap.o makebuf.o match.o mbdb.o niprop.o \
43	path.o put.o refill.o rewind.o rpool.o setvbuf.o sem.o shm.o signal.o \
44	smstdio.o snprintf.o sscanf.o stdio.o strcasecmp.o strdup.o strerror.o \
45	strexit.o string.o stringf.o strio.o strl.o strrevcmp.o strto.o test.o \
46	ungetc.o vasprintf.o vfprintf.o vfscanf.o vprintf.o vsnprintf.o \
47	wbuf.o wsetup.o xtrap.o
48
49SRCS=	$(OBJS:%.o=%.c)
50
51TESTS=	t-event t-exc t-rpool t-string t-smstdio t-match t-strio t-heap \
52	t-fopen t-strl t-strrevcmp t-path t-float t-scanf t-sem t-shm
53
54libsm=	libsm.a
55
56.KEEP_STATE:
57all: $(libsm)
58
59.PARALLEL:	$(OBJS)
60
61$(libsm): $(OBJS)
62	$(RM) $@
63	$(AR) $(ARFLAGS) $@ $(OBJS)
64
65clean:
66	$(RM) $(OBJS) $(libsm) $(TESTS) foo t-smstdio.1
67
68depend obj:
69
70install: all
71
72LDLIBS += -lldap
73
74lint:	lint_SRCS
75
76test: $(TESTS)
77
78t-%:	t-%.c
79	$(LINK.c) $< -o $@ $(libsm) $(LDLIBS)
80	$(POST_PROCESS)
81	./$@
82
83include		../../Makefile.targ
84