diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-05 21:35:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-05 21:35:22 +0000 |
commit | 04ed3b54e05b155dd44cbfe73acc59c4d261b964 (patch) | |
tree | a52fb4617e3ff85fc60fd529be04498ee9a595df /gprof/Makefile.in | |
parent | dd1d79e8b9464d15f926d876a09c5be92d2773e7 (diff) | |
download | gdb-04ed3b54e05b155dd44cbfe73acc59c4d261b964.zip gdb-04ed3b54e05b155dd44cbfe73acc59c4d261b964.tar.gz gdb-04ed3b54e05b155dd44cbfe73acc59c4d261b964.tar.bz2 |
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in (LIBDEPS): New variable.
(LIBS): Use -L../bfd -lbfd.
(gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
Diffstat (limited to 'gprof/Makefile.in')
-rw-r--r-- | gprof/Makefile.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/Makefile.in b/gprof/Makefile.in index 825a656..fb7234f 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -40,7 +40,8 @@ SRCS= $(MY_TARGET).c basic_blocks.c call_graph.c \ gmon_io.c gprof.c hertz.c hist.c source.c search_list.c symtab.c \ sym_ids.c utils.c -LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a +LIBDEPS = ../bfd/libbfd.a ../libiberty/libiberty.a +LIBS = -L../bfd -lbfd ../libiberty/libiberty.a OBJS= $(MY_TARGET).o basic_blocks.o bsd_callg_bl.o call_graph.o \ cg_arcs.o cg_dfn.o cg_print.o core.o flat_bl.o fsf_callg_bl.o \ @@ -100,7 +101,7 @@ install: all $(INSTALL_XFORM) gprof $(bindir)/gprof $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1 -gprof: $(OBJS) $(LIBS) +gprof: $(OBJS) $(LIBDEPS) $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS) mostlyclean: |