aboutsummaryrefslogtreecommitdiff
path: root/binutils/Makefile.in
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-03-08 21:53:19 +0000
committerSteve Chamberlain <sac@cygnus>1994-03-08 21:53:19 +0000
commite52e2acd518a95ab56a6954e92ed89e79f0cb1c9 (patch)
treed9e5740c586bd6278c6adb68f7731f1abd44fb50 /binutils/Makefile.in
parent1404c3656d0f8fdb78385f2b99b70138c04ec73a (diff)
downloadgdb-e52e2acd518a95ab56a6954e92ed89e79f0cb1c9.zip
gdb-e52e2acd518a95ab56a6954e92ed89e79f0cb1c9.tar.gz
gdb-e52e2acd518a95ab56a6954e92ed89e79f0cb1c9.tar.bz2
* coffgrok.[ch]: New files, understand coff objects.
* coffdump.c: Uses coffgrok to dump out the debug info of a coff file. * sysroff.info: Description of a SYSROFF object file. * sysinfo.y, syslex.l: Parse info file, generate a reader, writer, header files and a printer. * srconv.c: Uses coffgrok.c and sysroff.info to convert a coff file to a SYSROFF file.
Diffstat (limited to 'binutils/Makefile.in')
-rw-r--r--binutils/Makefile.in47
1 files changed, 34 insertions, 13 deletions
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 297044a..462d561 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -64,7 +64,7 @@ NM_FOR_TARGET = nm
NM = $(NM_FOR_TARGET)
SYMLINK = ln -s
-BISON = `if [ -f ../byacc/byacc ] ; then echo ../byacc/byacc ; else echo byacc ; fi`
+BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
# Comment these out if using lex.
LEX_OPTIONS = -I -Cem
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
@@ -102,7 +102,9 @@ DEMANGLER_PROG=c++filt
NLMCONV_PROG=nlmconv
-PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(BUILD_NLMCONV)
+SRCONV_PROG=srconv sysdump coffdump
+
+PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(BUILD_NLMCONV) $(BUILD_SRCONV)
STAGESTUFF = $(PROGS) *.o
# Files that can be generated, but should be in the distribution.
DISTSTUFF=arparse.c arlex.c nlmheader.c info
@@ -154,16 +156,7 @@ FLAGS_TO_PASS = \
"CC=$(CC)" \
"CFLAGS=$(CFLAGS)" \
"RUNTEST=$(RUNTEST)" \
- "RUNTESTFLAGS=$(RUNTESTFLAGS) \
- SIZE=`if [ -f $$rootme/$(SIZE_PROG) ] ; then echo $$rootme/$(SIZE_PROG) ; else echo $(SIZE_PROG); fi` \
- OBJCOPY=`if [ -f $$rootme/$(OBJCOPY_PROG) ] ; then echo $$rootme/$(OBJCOPY_PROG) ; else echo $(OBJCOPY_PROG); fi` \
- NM=`if [ -f $$rootme/$(NM_PROG) ] ; then echo $$rootme/$(NM_PROG) ; else echo $(NM_PROG); fi` \
- AR=`if [ -f $$rootme/$(AR_PROG) ] ; then echo $$rootme/$(AR_PROG) ; else echo $(AR_PROG); fi` \
- OBJDUMP=`if [ -f $$rootme/$(OBJDUMP_PROG) ] ; then echo $$rootme/$(OBJDUMP_PROG) ; else echo $(OBJDUMP_PROG); fi` \
- STRINGS=`if [ -f $$rootme/$(STRINGS_PROG) ] ; then echo $$rootme/$(STRINGS_PROG) ; else echo $(STRINGS_PROG); fi` \
- STRIP=`if [ -f $$rootme/$(STRIP_PROG) ] ; then echo $$rootme/$(STRIP_PROG) ; else echo $(STRIP_PROG); fi` \
- RANLIB=`if [ -f $$rootme/$(RANLIB_PROG) ] ; then echo $$rootme/$(RANLIB_PROG) ; else echo $(RANLIB_PROG); fi` \
- DEMANGLE=`if [ -f $$rootme/$(DEMANGLER_PROG) ] ; then echo $$rootme/$(DEMANGLER_PROG) ; else echo $(DEMANGLER_PROG); fi`"
+ "RUNTESTFLAGS=$(RUNTESTFLAGS)"
#
## The rules
@@ -180,7 +173,6 @@ testsuite:
check: force
rootme=`pwd`; export rootme; cd testsuite ; \
$(MAKE) check $(FLAGS_TO_PASS)
-# /bin/sh $(srcdir)/sanity.sh .
installcheck:
/bin/sh $(srcdir)/sanity.sh $(bindir)
@@ -270,6 +262,35 @@ objcopy_with_strip: $(ADDL_LIBS) objcopy.o maybe-strip.o $(BFD)
-rm -f $(STRIP_PROG)
-ln $(OBJCOPY_PROG) $(STRIP_PROG)
+sysroff.c: sysinfo sysroff.info
+ ./sysinfo -c <$(srcdir)/sysroff.info >sysroff.c
+ ./sysinfo -i <$(srcdir)/sysroff.info >>sysroff.c
+ ./sysinfo -g <$(srcdir)/sysroff.info >>sysroff.c
+
+sysroff.h: sysinfo sysroff.info
+ ./sysinfo -d <$(srcdir)/sysroff.info >sysroff.h
+
+sysinfo.c: sysinfo.y
+ $(BISON) -tvd $(srcdir)/sysinfo.y
+ rm -f sysinfo.c
+ -mv y.tab.c sysinfo.c
+
+syslex.c : syslex.l
+ $(LEX) $(LEX_OPTIONS) $(srcdir)/syslex.l
+ mv lex.yy.c syslex.c
+
+sysinfo: sysinfo.o syslex.o $(ADDL_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o $(ADDL_LIBS) $(EXTRALIBS)
+
+srconv: sysroff.c srconv.o sysroff.c sysroff.h coffgrok.o $(ADDL_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ srconv.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
+
+coffdump: coffdump.o coffgrok.o $(ADDL_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ coffdump.o coffgrok.o $(ADDL_LIBS) $(EXTRALIBS)
+
+sysdump: sysroff.h sysroff.c sysdump.o $(ADDL_LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ sysdump.o $(ADDL_LIBS) $(EXTRALIBS)
+
nlmheader.c: nlmheader.y
$(BISON) $(srcdir)/nlmheader.y
rm -f nlmheader.c