0
|
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 |
#
|
524
|
23 |
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
|
0
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
# ident "%Z%%M% %I% %E% SMI"
|
|
27 |
|
|
28 |
include ../../Makefile.ctf
|
|
29 |
|
|
30 |
.KEEP_STATE:
|
|
31 |
.PARALLEL:
|
|
32 |
|
|
33 |
PROG=ctfconvert ctfmerge
|
|
34 |
|
|
35 |
GENSRCS= \
|
|
36 |
alist.c \
|
|
37 |
barrier.c \
|
|
38 |
ctf.c \
|
|
39 |
fifo.c \
|
|
40 |
hash.c \
|
|
41 |
iidesc.c \
|
|
42 |
input.c \
|
|
43 |
list.c \
|
|
44 |
memory.c \
|
|
45 |
merge.c \
|
|
46 |
output.c \
|
|
47 |
stack.c \
|
|
48 |
strtab.c \
|
|
49 |
symbol.c \
|
|
50 |
tdata.c \
|
|
51 |
traverse.c \
|
|
52 |
util.c
|
|
53 |
|
|
54 |
CVTSRCS=$(GENSRCS) \
|
|
55 |
ctfconvert.c \
|
|
56 |
dwarf.c \
|
|
57 |
stabs.c \
|
|
58 |
st_bugs.c \
|
|
59 |
st_parse.c
|
|
60 |
CVTOBJS=$(CVTSRCS:%.c=%.o)
|
|
61 |
CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
|
|
62 |
|
|
63 |
MRGSRCS=$(GENSRCS) \
|
|
64 |
ctfmerge.c
|
|
65 |
MRGOBJS=$(MRGSRCS:%.c=%.o)
|
|
66 |
MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
|
|
67 |
|
|
68 |
SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
|
|
69 |
OBJS=$(SRCS:%.c=%.o)
|
|
70 |
LINTFILES=$(SRCS:%.c=%.ln)
|
|
71 |
|
|
72 |
DWARFSRCLIBDIR = ../../dwarf
|
|
73 |
|
|
74 |
DWARFLDFLAGS = \
|
|
75 |
-L$(DWARFSRCLIBDIR)/$(MACH) \
|
|
76 |
'-R$$ORIGIN/../../lib/$(MACH)' \
|
|
77 |
-ldwarf
|
|
78 |
DWARFCPPFLAGS = -I$(DWARFSRCLIBDIR)
|
|
79 |
|
|
80 |
LDLIBS += -lz -lelf
|
|
81 |
CPPFLAGS += -D_REENTRANT
|
|
82 |
CFLAGS += $(CTF_FLAGS)
|
|
83 |
LINTFLAGS += -mnux
|
|
84 |
|
|
85 |
C99MODE = $(C99_ENABLE)
|
|
86 |
|
|
87 |
ctfconvert := LDFLAGS += $(DWARFLDFLAGS)
|
|
88 |
|
|
89 |
dwarf.o dwarf.ln := CPPFLAGS += $(DWARFCPPFLAGS)
|