Absolute basic question about compiling smaug.

Posted by Connor on Fri 06 Sep 2002 07:03 PM — 4 posts, 19,611 views.

#0
I'm very new to mud servers. I downloaded "winsmaug1.4a.zip" which is a windows port of smaug that comes precompiled and linked with a smaug.exe file.

However I would like to add some snippets and remove some code here and there and have found info on how to do it but I can't figure out how to compile and create a new executable.

Do you have to compile each .c file? And if so how do you link together all the object files that are created into an executable? I've downloaded and installed both cygwin and djgpp compilers. I've heard references made to "make" and "make clean" but am at a loss as to what this means.

I have had very limited experience coding. I used C++ with the borland compiler in school. There we only had one .cpp file and the rest of the files containing code were .h library files. So with a program with all these files I'm at a loss at where to start.

Any help you could give would be greatly appreciated.

- Dan
Australia Forum Administrator #1

Detailed information about doing compiles, getting a compiler, making changes, and other useful topics are in the web page How to make changes, including compiling. About the only point it doesn't mention is 'make clean' which simply deletes all object files, so you get a 'clean compile'.

#2
Awesome thanks.

What makes up the Makefile that is required by cygwin to perform the make? Somehow I got a precompiled version of smaug that i've been dinkin around with and it doesn't have a "makefile"?

Thanks again. That page helps out alot.
USA #3
In order to compiler the code using cygwin or anything else you need the source files which can be downloaded from the smaug section right here on this site... but I'd recomend downloading the whole thing instead of throwing bits and pieces together... So get all the smaug files in one place... As it probably wouldn't matter but sometimes minute changes if in the right spot could make things not fit right.

If you are using Cygwin I'd say just download http://www.gammon.com.au/files/smaug/smaug1.4a_mxp.tgz
Right here from this site as its fairly reliable but might need minor tweaking that evenI could help with...


Hope it helps,
Creep