xref: /illumos-gate/usr/src/cmd/sendmail/db/Makefile (revision 55fea89d)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
54abb9673Sjbeck# Common Development and Distribution License (the "License").
64abb9673Sjbeck# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
214abb9673Sjbeck
227c478bd9Sstevel@tonic-gate#
234abb9673Sjbeck# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate# cmd/sendmail/db/Makefile
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateinclude		../../Makefile.cmd
324abb9673Sjbeckinclude		../Makefile.cmd
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gatesrcdir=	.
357c478bd9Sstevel@tonic-gate
364abb9673SjbeckCPPFLAGS = -I. -I$(srcdir)/include -D_REENTRANT $(CPPFLAGS.sm)
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateARFLAGS=cq
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateOBJS=	bt_compare.o bt_conv.o bt_curadj.o bt_cursor.o bt_delete.o bt_open.o \
417c478bd9Sstevel@tonic-gate	bt_page.o bt_put.o bt_rec.o bt_recno.o bt_rsearch.o bt_search.o \
427c478bd9Sstevel@tonic-gate	bt_split.o bt_stat.o btree_auto.o db.o db_appinit.o db_am.o \
437c478bd9Sstevel@tonic-gate	db_apprec.o db_auto.o db_byteorder.o db_conv.o db_dispatch.o db_dup.o \
447c478bd9Sstevel@tonic-gate	db_err.o db_iface.o db_join.o db_log2.o db_overflow.o db_pr.o \
457c478bd9Sstevel@tonic-gate	db_rec.o db_region.o db_ret.o db_salloc.o db_shash.o dbm.o hash.o \
467c478bd9Sstevel@tonic-gate	hash_auto.o hash_conv.o hash_dup.o hash_func.o hash_page.o hash_rec.o \
477c478bd9Sstevel@tonic-gate	hash_stat.o hsearch.o lock.o lock_conflict.o lock_deadlock.o \
487c478bd9Sstevel@tonic-gate	lock_util.o lock_region.o log.o log_archive.o log_auto.o \
497c478bd9Sstevel@tonic-gate	log_compare.o log_findckp.o log_get.o log_put.o log_rec.o \
507c478bd9Sstevel@tonic-gate	log_register.o mp_bh.o mp_fget.o mp_fopen.o mp_fput.o mp_fset.o \
517c478bd9Sstevel@tonic-gate	mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o \
527c478bd9Sstevel@tonic-gate	os_config.o os_dir.o os_fid.o os_fsync.o os_map.o os_oflags.o \
537c478bd9Sstevel@tonic-gate	os_open.o os_rpath.o os_rw.o os_seek.o os_sleep.o os_spin.o os_stat.o \
547c478bd9Sstevel@tonic-gate	os_tmpdir.o os_unlink.o txn.o txn_auto.o txn_rec.o xa.o xa_db.o \
557c478bd9Sstevel@tonic-gate	xa_map.o strsep.o
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateSRCS=	$(OBJS:%.o=$(srcdir)/*/%.c)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gatelibdb=	libdb.a
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate.KEEP_STATE:
627c478bd9Sstevel@tonic-gateall: $(libdb)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate.PARALLEL:	$(OBJS)
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate$(libdb): db.h $(OBJS)
677c478bd9Sstevel@tonic-gate	$(RM) $@
687c478bd9Sstevel@tonic-gate	$(AR) $(ARFLAGS) $@ $(OBJS)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateclean:
717c478bd9Sstevel@tonic-gate	$(RM) $(OBJS) $(libdb)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gatedepend obj:
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateinstall: all
76*55fea89dSDan Cross
777c478bd9Sstevel@tonic-gatelint:
787c478bd9Sstevel@tonic-gate	$(LINT.c) $(SRCS) $(LDLIBS)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate# DB files.
817c478bd9Sstevel@tonic-gatedb%.o: $(srcdir)/db/db%.c
827c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
837c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate# Btree source files.
867c478bd9Sstevel@tonic-gatebt%.o: $(srcdir)/btree/bt%.c
877c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
887c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate# Hash source files.
917c478bd9Sstevel@tonic-gatehash%.o: $(srcdir)/hash/hash%.c
927c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
937c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate# Lock source files.
967c478bd9Sstevel@tonic-gatelock%.o: $(srcdir)/lock/lock%.c
977c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
987c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gate# Log source files.
1017c478bd9Sstevel@tonic-gatelog%.o: $(srcdir)/log/log%.c
1027c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1037c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate# Mpool source files.
1067c478bd9Sstevel@tonic-gatemp_%.o: $(srcdir)/mp/mp_%.c
1077c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1087c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1097c478bd9Sstevel@tonic-gate
1107c478bd9Sstevel@tonic-gate# Mutex source files.
1117c478bd9Sstevel@tonic-gatemutex%.o: $(srcdir)/mutex/mutex%.c
1127c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1137c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gate# Transaction source files.
1167c478bd9Sstevel@tonic-gatetxn%.o: $(srcdir)/txn/txn%.c
1177c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1187c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gate# Transaction manager source files.
1217c478bd9Sstevel@tonic-gatexa%.o: $(srcdir)/xa/xa%.c
1227c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1237c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gate# Historic interfaces.
1267c478bd9Sstevel@tonic-gatehsearch%.o: $(srcdir)/hsearch/hsearch%.c
1277c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1287c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1297c478bd9Sstevel@tonic-gatedbm%.o: $(srcdir)/dbm/dbm%.c
1307c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1317c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gate# OS specific source files.
1347c478bd9Sstevel@tonic-gateos_%.o: $(srcdir)/os/os_%.c
1357c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1367c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gate# Replacement source files.
1397c478bd9Sstevel@tonic-gatestrsep%.o: $(srcdir)/clib/strsep%.c
1407c478bd9Sstevel@tonic-gate	$(COMPILE.c) $<
1417c478bd9Sstevel@tonic-gate	$(POST_PROCESS_O)
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gateinclude		../../Makefile.targ
144