This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: NEWBIE Question: Generating Source Files



I did not modify the Makefile.in file.  I thought that was generated
automatically from the Makefile.am file with automake.  The lines that you
list below do not exist in either my Makefile.am or Makefile.in file for
m32r.  Those lines look pretty important :-)  I have pulled the latest
version from CVS on sources.redhat.com.  This appears to have those lines.
Obviously binutils-2.10 did not come with this version of Makefile.am.  I
will give that a shot.

Thanks for your help.  I could have been struggling for quite a while over
this.

Tracy




                                                                                                                                              
                    "Frank Ch.                                                                                                                
                    Eigler"              To:     Tracy.Kuhrt@microchip.com                                                                    
                    <fche@redhat.        cc:     cgen@sourceware.cygnus.com                                                                   
                    com>                 Subject:     Re: NEWBIE Question: Generating Source Files                                            
                                                                                                                                              
                    10/04/2000                                                                                                                
                    07:46 AM                                                                                                                  
                                                                                                                                              
                                                                                                                                              



Hi -

On Wed, Oct 04, 2000 at 07:47:53AM -0700, Tracy.Kuhrt@microchip.com wrote:
> [...]
> The problem that I am having is generating the source files.  I have
modified
> my opcodes/Makefile.am file to duplicate the m32r setup.  When I do a
`make
> dep` in the opcodes directory, I am receiving the error:
> make: *** No rule to make target `xx-asm.c', needed by `DEP'.  Stop.
> [...]

Perhaps you missed adding a copy of the dependency portions in Makefile.in:

$(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h
$(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c
$(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS)
        @true
stamp-m32r: $(CGENDEPS) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
        $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst
extrafiles=opinst

You could configure with "--enable-cgen-maint", or else use "make
stamp-TARGET"
to rebuild opcodes/ by hand.

- FChE





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]