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