xref: /titanic_41/usr/src/cmd/sendmail/libsmdb/Makefile (revision 774ef820abb3ffe8f38adcc17dee852d45d871a0)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 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/libsmdb/Makefile
29#
30
31include		../../Makefile.cmd
32include		../Makefile.cmd
33
34INCPATH=	-I. -I../src -I../include -I../db
35ENVDEF=		-DNEWDB -DNDBM
36CPPFLAGS=	$(INCPATH) $(ENVDEF) $(CPPFLAGS.sm)
37
38ARFLAGS=	cq
39
40OBJS=   smdb.o smdb1.o smdb2.o smndbm.o
41
42SRCS=	$(OBJS:%.o=%.c)
43
44libsmdb=	libsmdb.a
45
46.KEEP_STATE:
47all: $(libsmdb)
48
49.PARALLEL:	$(OBJS)
50
51$(libsmdb): $(OBJS)
52	$(RM) $@
53	$(AR) $(ARFLAGS) $@ $(OBJS)
54
55clean:
56	$(RM) $(OBJS) $(libsmdb)
57
58depend obj:
59
60install: all
61
62lint:	lint_SRCS
63
64include		../../Makefile.targ
65