xref: /titanic_50/usr/src/lib/libdll/Makefile.com (revision 753a6d457b330b1b29b2d3eefcd0831116ce950d)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27SHELL=/usr/bin/ksh93
28
29LIBRARY=	libdll.a
30VERS=		.1
31
32OBJECTS= \
33	dlfcn.o \
34	dllfind.o \
35	dlllook.o \
36	dllnext.o \
37	dllplug.o \
38	dllscan.o
39
40include ../../Makefile.astmsg
41
42include ../../Makefile.lib
43
44# mapfile-vers does not live with the sources in in common/ to make
45# automated code updates easier.
46MAPFILES=       ../mapfile-vers
47
48# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
49include ../../../Makefile.ast
50
51LIBS =		$(DYNLIB) $(LINTLIB)
52
53LDLIBS += \
54	-last \
55	-lc
56
57$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
58
59SRCDIR =	../common
60
61# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
62# case - it MUST come as the last element but future changes in -D options
63# may then cause silent breakage in the AST sources because the last -D
64# option specified overrides previous -D options so we prefer the current
65# way to explicitly list each single flag.
66# Notes:
67#   - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
68CPPFLAGS = \
69	$(DTEXTDOM) $(DTS_ERRNO) \
70	$(DLLPLATFORMCPPFLAGS) \
71	-I. \
72	-I$(ROOT)/usr/include/ast \
73	'-DCONF_LIBSUFFIX=".so"' \
74	'-DCONF_LIBPREFIX="lib"' \
75	-D_BLD_dll \
76	-D_PACKAGE_ast \
77	-D_BLD_DLL
78
79CFLAGS += \
80	$(ASTCFLAGS)
81CFLAGS64 += \
82	$(ASTCFLAGS64)
83
84.KEEP_STATE:
85
86all: $(LIBS)
87
88#
89# libdll is not lint-clean yet; fake up a target.  (You can use
90# "make lintcheck" to actually run lint; please send all lint fixes
91# upstream (to AT&T) so the next update will pull them into ON.)
92#
93lint:
94	@ print "usr/src/lib/libdll is not lint-clean: skipping"
95
96include ../../Makefile.targ
97