xref: /titanic_44/usr/src/cmd/sendmail/db/Makefile (revision c28749e97052f09388969427adf7df641cdcdc22)
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 2004 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/db/Makefile
29#
30
31include		../../Makefile.cmd
32
33srcdir=	.
34
35CPPFLAGS = -I. -I$(srcdir)/include -D_REENTRANT $(CPPFLAGS.master)
36
37ARFLAGS=cq
38
39OBJS=	bt_compare.o bt_conv.o bt_curadj.o bt_cursor.o bt_delete.o bt_open.o \
40	bt_page.o bt_put.o bt_rec.o bt_recno.o bt_rsearch.o bt_search.o \
41	bt_split.o bt_stat.o btree_auto.o db.o db_appinit.o db_am.o \
42	db_apprec.o db_auto.o db_byteorder.o db_conv.o db_dispatch.o db_dup.o \
43	db_err.o db_iface.o db_join.o db_log2.o db_overflow.o db_pr.o \
44	db_rec.o db_region.o db_ret.o db_salloc.o db_shash.o dbm.o hash.o \
45	hash_auto.o hash_conv.o hash_dup.o hash_func.o hash_page.o hash_rec.o \
46	hash_stat.o hsearch.o lock.o lock_conflict.o lock_deadlock.o \
47	lock_util.o lock_region.o log.o log_archive.o log_auto.o \
48	log_compare.o log_findckp.o log_get.o log_put.o log_rec.o \
49	log_register.o mp_bh.o mp_fget.o mp_fopen.o mp_fput.o mp_fset.o \
50	mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o \
51	os_config.o os_dir.o os_fid.o os_fsync.o os_map.o os_oflags.o \
52	os_open.o os_rpath.o os_rw.o os_seek.o os_sleep.o os_spin.o os_stat.o \
53	os_tmpdir.o os_unlink.o txn.o txn_auto.o txn_rec.o xa.o xa_db.o \
54	xa_map.o strsep.o
55
56SRCS=	$(OBJS:%.o=$(srcdir)/*/%.c)
57
58libdb=	libdb.a
59
60.KEEP_STATE:
61all: $(libdb)
62
63.PARALLEL:	$(OBJS)
64
65$(libdb): db.h $(OBJS)
66	$(RM) $@
67	$(AR) $(ARFLAGS) $@ $(OBJS)
68
69clean:
70	$(RM) $(OBJS) $(libdb)
71
72depend obj:
73
74install: all
75
76lint:
77	$(LINT.c) $(SRCS) $(LDLIBS)
78
79# DB files.
80db%.o: $(srcdir)/db/db%.c
81	$(COMPILE.c) $<
82	$(POST_PROCESS_O)
83
84# Btree source files.
85bt%.o: $(srcdir)/btree/bt%.c
86	$(COMPILE.c) $<
87	$(POST_PROCESS_O)
88
89# Hash source files.
90hash%.o: $(srcdir)/hash/hash%.c
91	$(COMPILE.c) $<
92	$(POST_PROCESS_O)
93
94# Lock source files.
95lock%.o: $(srcdir)/lock/lock%.c
96	$(COMPILE.c) $<
97	$(POST_PROCESS_O)
98
99# Log source files.
100log%.o: $(srcdir)/log/log%.c
101	$(COMPILE.c) $<
102	$(POST_PROCESS_O)
103
104# Mpool source files.
105mp_%.o: $(srcdir)/mp/mp_%.c
106	$(COMPILE.c) $<
107	$(POST_PROCESS_O)
108
109# Mutex source files.
110mutex%.o: $(srcdir)/mutex/mutex%.c
111	$(COMPILE.c) $<
112	$(POST_PROCESS_O)
113
114# Transaction source files.
115txn%.o: $(srcdir)/txn/txn%.c
116	$(COMPILE.c) $<
117	$(POST_PROCESS_O)
118
119# Transaction manager source files.
120xa%.o: $(srcdir)/xa/xa%.c
121	$(COMPILE.c) $<
122	$(POST_PROCESS_O)
123
124# Historic interfaces.
125hsearch%.o: $(srcdir)/hsearch/hsearch%.c
126	$(COMPILE.c) $<
127	$(POST_PROCESS_O)
128dbm%.o: $(srcdir)/dbm/dbm%.c
129	$(COMPILE.c) $<
130	$(POST_PROCESS_O)
131
132# OS specific source files.
133os_%.o: $(srcdir)/os/os_%.c
134	$(COMPILE.c) $<
135	$(POST_PROCESS_O)
136
137# Replacement source files.
138strsep%.o: $(srcdir)/clib/strsep%.c
139	$(COMPILE.c) $<
140	$(POST_PROCESS_O)
141
142include		../../Makefile.targ
143