Re: [Anjuta-list] Adding an assembler project template



Hi,

dell_boy a écrit :
I have successfully set up a NASM project template to load  a basic
'hello.world' nasm source file, however, I can't get the source code to
compile. Anjuta tells me there is no compile rule defined for this file
type. This is probably due to incorrect parameters in the makefile.am.tpl
file.

In order to do the compilation, Anjuta needs the name of the objects file, or more exactly its extension. This is hardcoded inside Anjuta. it's not working with assembler file. It's quite easy to add but you will need to use the version from svn.

Else, you can use the build menu item. This will run only make in the source directory. Anjuta doesn't need to make any guess here so if you have a valid makefile it will work.

Q1. Is it possible/feasible to set up Anjuta to run NASM projects?

Yes,

Q2. If the answer to Q1 is yes.......how is this achieved?

I think that autotools provide no support for NASM. so you could use simple Makefile. It should be a bit easier to set up.

You have to write a file name Makefile in your source directory and write in it all necessary rules to use nasm. Anjuta support for custom makefile project is very limited, so you will have to modify it with the text editor.

Regards,

Sébastien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]