flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Unix > GNU Build tools and FASM

Author
Thread Post new topic Reply to topic
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
GNU Build tools and FASM
Hi Guys,

Just a quick query, does anyone use the GNU autoconf tools (or any other toolset) to build applications based on FASM?

At the moment the b0 compiler (which I've written) has been to confirmed to work on Windows x64, Linux, FreeBSD and Solaris.

For the moment, to define the build I need to edit the parent source file and set a define like:
#define WIN64;
#define FREEBSD;
#define SOLARIS;
#define LINUX;
#define UNIX_LIBC;
etc..

Then modify the Makefile to set the install location, and tool locations... etc, etc, etc.

It would be easier (for the end user) to just do a:
./configure
make && make install

In my case it would be a matter of just finding the OS name via 'uname', echoing a '#define <OS>;' to a file, if gmake, gdiff, gtar are needed to get the GNU tools rather than the native tools, where fasm is located, and if html2ps and ghostscript are installed (for the docs). then rebuild the Makefile for the install path and other details from above...

I've looked at the GNU autoconf tools, and well they're not really suited to anything other than C/C++ applications... (even though there is provision for Assembly, it's lacking). But then again, maybe I've missed something?

Any examples or thoughts would be appreciated...

PS. For Windows I have a 'build.cmd' which does everything, so I don't have to worry about Windows...
Post 06 Nov 2007, 10:19
View user's profile Send private message Visit poster's website Reply with quote
mattst88



Joined: 12 May 2006
Posts: 260
Location: South Carolina
Note: preprocessor statements should not end with semi-colons. (#define WIN64; -> #define WIN64)
Post 08 Nov 2007, 23:20
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.