Makefile.libstandctf revision 7014882c6a3672fd0e5d60200af8643ae53c5928
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# CDDL HEADER START
69b1e90bbb27ce2dd365628c07c0f03a3ae97b26Robert Savu# The contents of this file are subject to the terms of the
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# Common Development and Distribution License (the "License").
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# You may not use this file except in compliance with the License.
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# See the License for the specific language governing permissions
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# and limitations under the License.
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# When distributing Covered Code, include this CDDL HEADER in each
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70a23a37b59f9e25c0f4ae47ab449142422bec20Robert Savu# If applicable, add the following below this CDDL HEADER, with the
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu# fields enclosed by brackets "[]" replaced with your own identifying
70a23a37b59f9e25c0f4ae47ab449142422bec20Robert Savu# information: Portions Copyright [yyyy] [name of copyright owner]
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savu# CDDL HEADER END
69b1e90bbb27ce2dd365628c07c0f03a3ae97b26Robert Savu# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3f87d4c68054dbaf1c492605bbffd0bba4b6a3a5Robert Savu# Use is subject to license terms.
63328a180cdd14542de78d6461450c16a457b826Ewaryst SchulzCTF_COMMON_SRCS = \
cc8683af2edf2e8af3894421f92dc2903ab95822Christian MaederCTF_STUB_SRCS = \
cc8683af2edf2e8af3894421f92dc2903ab95822Christian Maeder$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
69b1e90bbb27ce2dd365628c07c0f03a3ae97b26Robert SavuCPPFLAGS += -I$(SRC)/common/ctf -I../../../common -DCTF_OLD_VERSIONS -D_MDB \
69b1e90bbb27ce2dd365628c07c0f03a3ae97b26Robert Savu -Dvsnprintf=ctf_vsnprintf
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu# kmdb is a kernel module, so we'll use the kernel's build flags.
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert SavuCFLAGS += $(STAND_FLAGS_32)
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert SavuCFLAGS64 += $(STAND_FLAGS_64)
d0adfa619575f357a79e0075cab46f68201379d2Robert SavuLDFLAGS = $(ZNOVERSION) $(BREDUCE) -M $(MAPFILE) -dy -r
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert SavuOBJS = $(CTF_COMMON_SRCS:%.c=%.o) $(CTF_STUB_SRCS:%.c=%.o)
d0adfa619575f357a79e0075cab46f68201379d2Robert SavuLINTFILES = $(OBJS:%.o=%.ln)
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert SavuLINTFLAGS += -n -errtags=yes
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert SavuCERRWARN += -_gcc=-Wno-uninitialized
d0adfa619575f357a79e0075cab46f68201379d2Robert Savu.NO_PARALLEL:
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu.PARALLEL: $(OBJS)
b3df7e69d4d6066fdfae0a8a2f3b4a161eaaf540Robert Savuinstall all: $(LIB)
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu$(LIB): $(OBJS) $(MAPFILE)
69b1e90bbb27ce2dd365628c07c0f03a3ae97b26Robert Savu $(LD) $(LDFLAGS) -o $@ $(OBJS)
d0adfa619575f357a79e0075cab46f68201379d2Robert Savuclobber clean:
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu $(RM) $(LIB) $(OBJS) $(LINTFILES)
e24e2f899d60831add8599d6065f2f1031bb8d4aRobert Savulint: $(LINTFILES)
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu $(LINT) $(LINTFLAGS) $(LINTFILES)
d0adfa619575f357a79e0075cab46f68201379d2Robert Savu# Dynamic rules for object construction
e24e2f899d60831add8599d6065f2f1031bb8d4aRobert Savu $(CTFCONVERT_O)
18d8d352c6c0dcf6a47d829636dd75edca5847d7Robert Savu $(CTFCONVERT_O)
ad306df140215d8fb88d14bbb7d685011e0f770bRobert Savu%.ln: $(SRC)/common/ctf/%.c