|
1 # |
|
2 # |
|
3 # Copyright (C) 2000,2003,2004,2006 Silicon Graphics, Inc. All Rights Reserved. |
|
4 # |
|
5 # This program is free software; you can redistribute it and/or modify it |
|
6 # under the terms of version 2.1 of the GNU Lesser General Public License |
|
7 # as published by the Free Software Foundation. |
|
8 # |
|
9 # This program is distributed in the hope that it would be useful, but |
|
10 # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
12 # |
|
13 # Further, this software is distributed without any warranty that it is |
|
14 # free of the rightful claim of any third person regarding infringement |
|
15 # or the like. Any license provided herein, whether implied or |
|
16 # otherwise, applies only to this software file. Patent licenses, if |
|
17 # any, provided herein do not apply to combinations of this program with |
|
18 # other software, or any other product whatsoever. |
|
19 # |
|
20 # You should have received a copy of the GNU Lesser General Public |
|
21 # License along with this program; if not, write the Free Software |
|
22 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, |
|
23 # USA. |
|
24 |
|
25 # |
|
26 # Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, |
|
27 # Mountain View, CA 94043, or: |
|
28 # |
|
29 # http://www.sgi.com |
|
30 # |
|
31 # For further information regarding this notice, see: |
|
32 # |
|
33 # http://oss.sgi.com/projects/GenInfo/NoticeExplan |
|
34 # |
|
35 # |
|
36 |
|
37 # |
|
38 # Makefile for libdwarf |
|
39 # This is made very simple so it should work with |
|
40 # any 'make'. |
|
41 # |
|
42 |
|
43 srcdir = @srcdir@ |
|
44 VPATH = @srcdir@ |
|
45 |
|
46 prefix = @prefix@ |
|
47 exec_prefix = @exec_prefix@ |
|
48 bindir = $(exec_prefix)/bin |
|
49 libdir = $(exec_prefix)/lib |
|
50 |
|
51 INSTALL = @INSTALL@ |
|
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
53 INSTALL_DATA = @INSTALL_DATA@ |
|
54 SHELL = /bin/sh |
|
55 CC = @CC@ |
|
56 AR = @AR@ |
|
57 #ARFLAGS = @ARFLAGS@ |
|
58 RM = rm |
|
59 RANLIB = @RANLIB@ |
|
60 DEFS = @DEFS@ |
|
61 LIBS = @LIBS@ |
|
62 INCLUDES = -I. -I$(srcdir) |
|
63 CFLAGS = @CFLAGS@ $(INCLUDES) |
|
64 # For more checking add -DWANT_LIBBDWARF_MALLOC_CHECK=1 to CFLAGS |
|
65 LDFLAGS = @LDFLAGS@ |
|
66 |
|
67 |
|
68 BUILD_BASE = . |
|
69 |
|
70 OBJS= dwarf_abbrev.o \ |
|
71 dwarf_alloc.o \ |
|
72 dwarf_arange.o \ |
|
73 dwarf_die_deliv.o \ |
|
74 dwarf_error.o \ |
|
75 dwarf_form.o \ |
|
76 dwarf_frame.o \ |
|
77 dwarf_frame2.o \ |
|
78 dwarf_frame3.o \ |
|
79 dwarf_funcs.o \ |
|
80 dwarf_global.o \ |
|
81 dwarf_init_finish.o \ |
|
82 dwarf_line.o \ |
|
83 dwarf_line2.o \ |
|
84 dwarf_loc.o \ |
|
85 dwarf_query.o \ |
|
86 dwarf_string.o \ |
|
87 dwarf_stubs.o \ |
|
88 dwarf_pubtypes.o \ |
|
89 dwarf_types.o \ |
|
90 dwarf_util.o \ |
|
91 dwarf_leb.o \ |
|
92 dwarf_vars.o \ |
|
93 dwarf_weaks.o \ |
|
94 dwarf_addr_finder.o \ |
|
95 dwarf_sort_line.o \ |
|
96 dwarf_print_lines.o \ |
|
97 dwarf_macro.o \ |
|
98 malloc_check.o \ |
|
99 pro_alloc.o \ |
|
100 pro_arange.o \ |
|
101 pro_die.o \ |
|
102 pro_encode_nm.o \ |
|
103 pro_error.o \ |
|
104 pro_expr.o \ |
|
105 pro_finish.o \ |
|
106 pro_forms.o \ |
|
107 pro_funcs.o \ |
|
108 pro_frame.o \ |
|
109 pro_init.o \ |
|
110 pro_line.o \ |
|
111 pro_reloc.o \ |
|
112 pro_reloc_stream.o \ |
|
113 pro_reloc_symbolic.o \ |
|
114 pro_pubnames.o \ |
|
115 pro_section.o \ |
|
116 pro_types.o \ |
|
117 pro_vars.o \ |
|
118 pro_macinfo.o \ |
|
119 pro_weaks.o |
|
120 |
|
121 |
|
122 all: @build_shared@ @build_nonshared@ |
|
123 |
|
124 libdwarf.a: $(OBJS) |
|
125 $(AR) $(ARFLAGS) $@ $(OBJS) |
|
126 |
|
127 libdwarf.so: $(OBJS) |
|
128 $(CC) $(CFLAGS) -shared $(OBJS) -o $@ |
|
129 |
|
130 none: |
|
131 echo "do nothing" |
|
132 |
|
133 # |
|
134 # The following are very SGI-centric |
|
135 # psroff is just a troff formatter. |
|
136 # the .mm files are in ATT/USL/USG mm form. |
|
137 # |
|
138 |
|
139 docbld:pdfbld |
|
140 pdfbld: libdwarf2.1.pdf libdwarf2p.1.pdf dwarf.v2.pdf index.v2.pdf mips_extensions.pdf |
|
141 #Oriented to using gsroff now. |
|
142 TROFF=/usr/bin/groff |
|
143 TROFFDEV="-T ps" |
|
144 TROFFDEV= |
|
145 PSTOPDF=/usr/bin/ps2pdf |
|
146 # pr expands tabs to spaces: this avoids problems with tab |
|
147 # interpretation |
|
148 |
|
149 # The warning about 'cant break line' is a too-long line used |
|
150 # in the table of contents. |
|
151 # Ignore the warning (and those like it). |
|
152 libdwarf2.1.pdf: $(BUILD_BASE)/libdwarf2.1.mm |
|
153 -pr -t -e $(BUILD_BASE)/libdwarf2.1.mm \ |
|
154 | tbl | $(TROFF) $(TROFFDEV) -mm >libdwarf2.1.ps |
|
155 $(PSTOPDF) libdwarf2.1.ps libdwarf2.1.pdf |
|
156 |
|
157 libdwarf2p.1.pdf: $(BUILD_BASE)/libdwarf2p.1.mm |
|
158 -pr -t -e $(BUILD_BASE)/libdwarf2p.1.mm \ |
|
159 | tbl | $(TROFF) $(TROFFDEV) -mm >libdwarf2p.1.ps |
|
160 $(PSTOPDF) libdwarf2p.1.ps libdwarf2p.1.pdf |
|
161 |
|
162 # At present, the newIndex is not usable: we have no tools |
|
163 # to build a new index page at the moment. |
|
164 |
|
165 dwarf.v2.pdf: $(BUILD_BASE)/dwarf.v2.mm |
|
166 -pic $(BUILD_BASE)/dwarf.v2.mm \ |
|
167 | tbl | $(TROFF) $(TROFFDEV) -mm >dwarf.v2.ps 2> newIndex |
|
168 $(PSTOPDF) dwarf.v2.ps dwarf.v2.pdf |
|
169 |
|
170 # the index is only useful till the document changes: it is |
|
171 # not autmatically correct. It was prepared by tools internal |
|
172 # to USL/Novell |
|
173 |
|
174 index.v2.pdf: index.v2.mm |
|
175 -pic index.v2.mm | tbl | $(TROFF) $(TROFFDEV) -mm >index.v2.ps |
|
176 $(PSTOPDF) index.v2.ps index.v2.pdf |
|
177 |
|
178 |
|
179 mips_extensions.pdf: mips_extensions.mm |
|
180 -pr $(TROFFDEV) -e mips_extensions.mm | tbl | \ |
|
181 $(TROFF) $(TROFFDEV) -mm >mips_extensions.ps |
|
182 $(PSTOPDF) mips_extensions.ps mips_extensions.pdf |
|
183 |
|
184 clean: |
|
185 rm -f *.o libdwarf.a |
|
186 rm -f libdwarf.so |
|
187 |
|
188 distclean: clean |
|
189 rm -f config.status config.log config.cache config.h |
|
190 |
|
191 shar: |
|
192 @echo "shar not set up yet" |
|
193 dist: |
|
194 @echo "dist not set up yet" |