diff options
author | Per Bothner <per@bothner.com> | 1992-10-06 00:57:18 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-10-06 00:57:18 +0000 |
commit | 3d3e494e4c586428ffe396ef58b6c5a4789edc3c (patch) | |
tree | ca6ca94c37be2372930cae56fba65f26442e640f /gprof/Makefile.in | |
parent | c116445e02813ac7b20a6c631a3c387e76643ad5 (diff) | |
download | gdb-3d3e494e4c586428ffe396ef58b6c5a4789edc3c.zip gdb-3d3e494e4c586428ffe396ef58b6c5a4789edc3c.tar.gz gdb-3d3e494e4c586428ffe396ef58b6c5a4789edc3c.tar.bz2 |
* gen-c-prog.awk: New awk script, lightly changed from
previously deleted make-c-prog.awk. Converts a text file
to a c function that prints that text.
* flat_bl.m, fsf_callg_bl.m, bsd_callg_bl.m: New files.
Inputs to gen-c-prog.awk, containing text describing
gprof output.
* blurbs.c: Removed. Use *_bl.c instead.
* Makefile.in: Use gen-cprog.awk to generate *_bl.c files
from *_bl.m files. Also, improve *clean rules.
* printgprof.c (printgprof): Usw new function names from *_bl.c.
Diffstat (limited to 'gprof/Makefile.in')
-rw-r--r-- | gprof/Makefile.in | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/gprof/Makefile.in b/gprof/Makefile.in index 26ef25a..ef09ae7 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -26,16 +26,30 @@ SRCS= gprof.c arcs.c dfn.c lookup.c $(MACHINE).c hertz.c \ printgprof.c printlist.c LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a -OBJS= blurbs.o gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \ - printgprof.o printlist.o +OBJS= gprof.o arcs.o dfn.o lookup.o $(MACHINE).o hertz.o \ + printgprof.o printlist.o \ + flat_bl.o bsd_callg_bl.o fsf_callg_bl.o + +# Files that can be generated, but should be included in distribution. +DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c CFLAGS= .c.o: $(CC) -c $(CFLAGS) -I$(srcdir) -I$(srcdir)/../include -DMACHINE_H=\"$(MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $< -all: $(PROG) +all: diststuff $(PROG) .PHONY: check info install-info +.SUFFIXES: .m + +.m.c: + awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ + FUNCTION=`(echo $*|sed -e 's/_bl//')`_blurb \ + FILE=$*.m $(srcdir)/$*.m + +diststuff: $(DISTSTUFF) + + check: info: install-info: @@ -53,8 +67,14 @@ install: all $(PROG): $(OBJS) $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS) -clean: - -rm -f $(OBJS) core gprof nohup.out +mostlyclean: + -rm -f *.o core gprof nohup.out +clean: mostlyclean + -rm -f gprof +distclean: clean + -rm -f config.status Makefile +realclean: distclean + -rm -f $(DISTSTUFF) Makefile : Makefile.in sh config.status @@ -69,4 +89,6 @@ $(MACHINE).o: $(MACHINE).c hertz.o: hertz.c printgprof.o: printgprof.c printlist.o: printlist.c -blurbs.o: blurbs.c +flat_bl.o: flat_bl.c +bsd_callg_bl.o: bsd_callg_bl.c +fsf_callg_bl.o: fsf_callg_bl.c |