xref: /titanic_51/usr/src/lib/librsm/Makefile.com (revision dc0093f44ee4fac928e006850f8ed53f68277af5)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/librsm/Makefile.com
29#
30
31LIBRARY= librsm.a
32VERS= .2
33
34TEXT_DOMAIN=	SUNW_OST_OSLIB
35
36OBJECTS = rsmlib.o rsmgen.o rsmloopback.o
37
38# include library definitions, do not change order of include and DYNLIB
39include ../../Makefile.lib
40
41MAPFILE = 	$(MAPDIR)/mapfile
42SRCS =		$(OBJECTS:%.o=../common/%.c)
43
44LIBS = $(DYNLIB)
45
46# The DEBUG flag is enabled for debug builds
47DEBUG =
48$(NOT_RELEASE_BUILD)DEBUG = -DDEBUG
49
50# The COPTFLAG is used for optimization purposes.
51# It is disabled for debug builds
52$(NOT_RELEASE_BUILD)COPTFLAG =
53$(NOT_RELEASE_BUILD)COPTFLAG64 =
54
55CPPFLAGS = -I../inc -I../../common/inc $(CPPFLAGS.master) -D_REENTRANT $(DEBUG)
56
57DYNFLAGS += -M$(MAPFILE)
58
59LDLIBS += -lc
60
61.KEEP_STATE:
62
63all:  $(LIBS) fnamecheck
64
65lint: lintcheck
66
67$(DYNLIB): 	$(MAPFILE)
68
69$(MAPFILE):
70	@cd $(MAPDIR); $(MAKE) mapfile
71
72# include library targets
73include ../../Makefile.targ
74
75pics/%.o: ../common/%.c
76	$(COMPILE.c) -o $@ $<
77	$(POST_PROCESS_O)
78