xref: /onnv-gate/usr/src/cmd/sendmail/db/Makefile (revision 2070:42d543afd750)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2070Sjbeck# Common Development and Distribution License (the "License").
6*2070Sjbeck# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*2070Sjbeck
220Sstevel@tonic-gate#
23*2070Sjbeck# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
270Sstevel@tonic-gate#
280Sstevel@tonic-gate# cmd/sendmail/db/Makefile
290Sstevel@tonic-gate#
300Sstevel@tonic-gate
310Sstevel@tonic-gateinclude		../../Makefile.cmd
32*2070Sjbeckinclude		../Makefile.cmd
330Sstevel@tonic-gate
340Sstevel@tonic-gatesrcdir=	.
350Sstevel@tonic-gate
36*2070SjbeckCPPFLAGS = -I. -I$(srcdir)/include -D_REENTRANT $(CPPFLAGS.sm)
370Sstevel@tonic-gate
380Sstevel@tonic-gateARFLAGS=cq
390Sstevel@tonic-gate
400Sstevel@tonic-gateOBJS=	bt_compare.o bt_conv.o bt_curadj.o bt_cursor.o bt_delete.o bt_open.o \
410Sstevel@tonic-gate	bt_page.o bt_put.o bt_rec.o bt_recno.o bt_rsearch.o bt_search.o \
420Sstevel@tonic-gate	bt_split.o bt_stat.o btree_auto.o db.o db_appinit.o db_am.o \
430Sstevel@tonic-gate	db_apprec.o db_auto.o db_byteorder.o db_conv.o db_dispatch.o db_dup.o \
440Sstevel@tonic-gate	db_err.o db_iface.o db_join.o db_log2.o db_overflow.o db_pr.o \
450Sstevel@tonic-gate	db_rec.o db_region.o db_ret.o db_salloc.o db_shash.o dbm.o hash.o \
460Sstevel@tonic-gate	hash_auto.o hash_conv.o hash_dup.o hash_func.o hash_page.o hash_rec.o \
470Sstevel@tonic-gate	hash_stat.o hsearch.o lock.o lock_conflict.o lock_deadlock.o \
480Sstevel@tonic-gate	lock_util.o lock_region.o log.o log_archive.o log_auto.o \
490Sstevel@tonic-gate	log_compare.o log_findckp.o log_get.o log_put.o log_rec.o \
500Sstevel@tonic-gate	log_register.o mp_bh.o mp_fget.o mp_fopen.o mp_fput.o mp_fset.o \
510Sstevel@tonic-gate	mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o \
520Sstevel@tonic-gate	os_config.o os_dir.o os_fid.o os_fsync.o os_map.o os_oflags.o \
530Sstevel@tonic-gate	os_open.o os_rpath.o os_rw.o os_seek.o os_sleep.o os_spin.o os_stat.o \
540Sstevel@tonic-gate	os_tmpdir.o os_unlink.o txn.o txn_auto.o txn_rec.o xa.o xa_db.o \
550Sstevel@tonic-gate	xa_map.o strsep.o
560Sstevel@tonic-gate
570Sstevel@tonic-gateSRCS=	$(OBJS:%.o=$(srcdir)/*/%.c)
580Sstevel@tonic-gate
590Sstevel@tonic-gatelibdb=	libdb.a
600Sstevel@tonic-gate
610Sstevel@tonic-gate.KEEP_STATE:
620Sstevel@tonic-gateall: $(libdb)
630Sstevel@tonic-gate
640Sstevel@tonic-gate.PARALLEL:	$(OBJS)
650Sstevel@tonic-gate
660Sstevel@tonic-gate$(libdb): db.h $(OBJS)
670Sstevel@tonic-gate	$(RM) $@
680Sstevel@tonic-gate	$(AR) $(ARFLAGS) $@ $(OBJS)
690Sstevel@tonic-gate
700Sstevel@tonic-gateclean:
710Sstevel@tonic-gate	$(RM) $(OBJS) $(libdb)
720Sstevel@tonic-gate
730Sstevel@tonic-gatedepend obj:
740Sstevel@tonic-gate
750Sstevel@tonic-gateinstall: all
760Sstevel@tonic-gate
770Sstevel@tonic-gatelint:
780Sstevel@tonic-gate	$(LINT.c) $(SRCS) $(LDLIBS)
790Sstevel@tonic-gate
800Sstevel@tonic-gate# DB files.
810Sstevel@tonic-gatedb%.o: $(srcdir)/db/db%.c
820Sstevel@tonic-gate	$(COMPILE.c) $<
830Sstevel@tonic-gate	$(POST_PROCESS_O)
840Sstevel@tonic-gate
850Sstevel@tonic-gate# Btree source files.
860Sstevel@tonic-gatebt%.o: $(srcdir)/btree/bt%.c
870Sstevel@tonic-gate	$(COMPILE.c) $<
880Sstevel@tonic-gate	$(POST_PROCESS_O)
890Sstevel@tonic-gate
900Sstevel@tonic-gate# Hash source files.
910Sstevel@tonic-gatehash%.o: $(srcdir)/hash/hash%.c
920Sstevel@tonic-gate	$(COMPILE.c) $<
930Sstevel@tonic-gate	$(POST_PROCESS_O)
940Sstevel@tonic-gate
950Sstevel@tonic-gate# Lock source files.
960Sstevel@tonic-gatelock%.o: $(srcdir)/lock/lock%.c
970Sstevel@tonic-gate	$(COMPILE.c) $<
980Sstevel@tonic-gate	$(POST_PROCESS_O)
990Sstevel@tonic-gate
1000Sstevel@tonic-gate# Log source files.
1010Sstevel@tonic-gatelog%.o: $(srcdir)/log/log%.c
1020Sstevel@tonic-gate	$(COMPILE.c) $<
1030Sstevel@tonic-gate	$(POST_PROCESS_O)
1040Sstevel@tonic-gate
1050Sstevel@tonic-gate# Mpool source files.
1060Sstevel@tonic-gatemp_%.o: $(srcdir)/mp/mp_%.c
1070Sstevel@tonic-gate	$(COMPILE.c) $<
1080Sstevel@tonic-gate	$(POST_PROCESS_O)
1090Sstevel@tonic-gate
1100Sstevel@tonic-gate# Mutex source files.
1110Sstevel@tonic-gatemutex%.o: $(srcdir)/mutex/mutex%.c
1120Sstevel@tonic-gate	$(COMPILE.c) $<
1130Sstevel@tonic-gate	$(POST_PROCESS_O)
1140Sstevel@tonic-gate
1150Sstevel@tonic-gate# Transaction source files.
1160Sstevel@tonic-gatetxn%.o: $(srcdir)/txn/txn%.c
1170Sstevel@tonic-gate	$(COMPILE.c) $<
1180Sstevel@tonic-gate	$(POST_PROCESS_O)
1190Sstevel@tonic-gate
1200Sstevel@tonic-gate# Transaction manager source files.
1210Sstevel@tonic-gatexa%.o: $(srcdir)/xa/xa%.c
1220Sstevel@tonic-gate	$(COMPILE.c) $<
1230Sstevel@tonic-gate	$(POST_PROCESS_O)
1240Sstevel@tonic-gate
1250Sstevel@tonic-gate# Historic interfaces.
1260Sstevel@tonic-gatehsearch%.o: $(srcdir)/hsearch/hsearch%.c
1270Sstevel@tonic-gate	$(COMPILE.c) $<
1280Sstevel@tonic-gate	$(POST_PROCESS_O)
1290Sstevel@tonic-gatedbm%.o: $(srcdir)/dbm/dbm%.c
1300Sstevel@tonic-gate	$(COMPILE.c) $<
1310Sstevel@tonic-gate	$(POST_PROCESS_O)
1320Sstevel@tonic-gate
1330Sstevel@tonic-gate# OS specific source files.
1340Sstevel@tonic-gateos_%.o: $(srcdir)/os/os_%.c
1350Sstevel@tonic-gate	$(COMPILE.c) $<
1360Sstevel@tonic-gate	$(POST_PROCESS_O)
1370Sstevel@tonic-gate
1380Sstevel@tonic-gate# Replacement source files.
1390Sstevel@tonic-gatestrsep%.o: $(srcdir)/clib/strsep%.c
1400Sstevel@tonic-gate	$(COMPILE.c) $<
1410Sstevel@tonic-gate	$(POST_PROCESS_O)
1420Sstevel@tonic-gate
1430Sstevel@tonic-gateinclude		../../Makefile.targ
144