da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
34f9b3eef6fdadbda0a846aa4d68691ac40eace5Roland Mainz# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinSHELL=/usr/bin/ksh93
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLIBRARY= libdll.a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinVERS= .1
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinOBJECTS= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dlfcn.o \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dllfind.o \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dlllook.o \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dllnext.o \
34f9b3eef6fdadbda0a846aa4d68691ac40eace5Roland Mainz dllopen.o \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dllplug.o \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin dllscan.o
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../Makefile.astmsg
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../Makefile.lib
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# mapfile-vers does not live with the sources in in common/ to make
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# automated code updates easier.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMAPFILES= ../mapfile-vers
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../../Makefile.ast
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLIBS = $(DYNLIB) $(LINTLIB)
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinLDLIBS += \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin -last \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin -lc
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSRCDIR = ../common
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# case - it MUST come as the last element but future changes in -D options
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# may then cause silent breakage in the AST sources because the last -D
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# option specified overrides previous -D options so we prefer the current
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# way to explicitly list each single flag.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Notes:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCPPFLAGS = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(DTEXTDOM) $(DTS_ERRNO) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(DLLPLATFORMCPPFLAGS) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -I. \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -I$(ROOT)/usr/include/ast \
34f9b3eef6fdadbda0a846aa4d68691ac40eace5Roland Mainz -I$(ROOT)/usr/include \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-DCONF_LIBSUFFIX=".so"' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-DCONF_LIBPREFIX="lib"' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -D_BLD_dll \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -D_PACKAGE_ast \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -D_BLD_DLL
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS += \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin $(ASTCFLAGS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCFLAGS64 += \
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin $(ASTCFLAGS64)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.KEEP_STATE:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinall: $(LIBS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# libdll is not lint-clean yet; fake up a target. (You can use
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# "make lintcheck" to actually run lint; please send all lint fixes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# upstream (to AT&T) so the next update will pull them into ON.)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinlint:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin @ print "usr/src/lib/libdll is not lint-clean: skipping"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../../Makefile.targ