The only other way I know is to make a batch file, but I'd rather not do the work =P
So, if anyone knows how do this, please post the answer. I'd realy apreciate.
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Yakir on Wed 15 Aug 2001 02:50 PM — 18 posts, 74,391 views.
Has that compiler been publicly released? I couldn't see it on the Borland site. I suggest using Cygwin, I have done a lengthy description about compiling with that, step by step. Read about it at How to make changes, including compiling
CPP = bcc32 -Ic:\borland\bcc55\include -Lc:\borland\bcc55\lib -DSMAUG
CPPFLAGS = -w-8057 -w-8066 -w-8004 -w-8060 -w-8065 -w-8012 -w-8075 -w-8008
O_FILES = act_comm.obj act_info.obj act_move.obj act_obj.obj act_wiz.obj boards.obj \
build.obj clans.obj comm.obj comments.obj const.obj db.obj deity.obj fight.obj \
handler.obj hashstr.obj ibuild.obj ident.obj interp.obj magic.obj makeobjs.obj \
mapout.obj misc.obj mpxset.obj mud_comm.obj mud_prog.obj player.obj polymorph.obj \
requests.obj reset.obj save.obj shops.obj skills.obj special.obj tables.obj \
track.obj update.obj grub.obj stat_obj.obj ban.obj services.obj planes.obj \
imm_host.obj colorize.obj
all:
make smaug
smaug: $(O_FILES)
$(CPP) -esmaug.exe $(O_FILES)
clean:
-@if exist *.obj del *.obj >nul
-@if exist *.exe del *.exe >nul
.c.obj:
$(CPP) $(CPPFLAGS) -c {$? }
diff orig_src/comm.c src/comm.c
34c34
<
---
> #define WIN32
56c56
< #define IAC '\xFF'
---
> #define IAC (unsigned char) '\xFF'
125a126,128
> bool DONT_UPPER;
> int area_version;
> bool MOBtrigger;
163,165c166,168
< #ifdef WIN32
< int mainthread( int argc, char **argv )
< #else
---
> //#ifdef WIN32
> // int mainthread( int argc, char **argv )
> //#else
167c170
< #endif
---
> //#endif
275,276c278,281
< signal(SIGINT, (void *) bailout);
< signal(SIGTERM, (void *) bailout);
---
> // signal(SIGINT, (void *) bailout);
> // signal(SIGTERM, (void *) bailout);
> signal(SIGINT, bailout);
> signal(SIGTERM, bailout);
336c341
< shutdown_checkpoint ();
---
> // shutdown_checkpoint ();
diff orig_src/db.c src/db.c
29a30
> #define strcasecmp strcmp
diff orig_src/deity.c src/deity.c
24a25,26
> #undef WIN32
>
diff orig_src/ident.c src/ident.c
23a24
> /*
27a29
> */
diff orig_src/magic.c src/magic.c
729c729
< if ( (*exp == '(') && !index(exp+1,'(') && exp[strlen(exp)-1] == ')' )
---
> if ( (*exp == '(') && !strchr(exp+1,'(') && exp[strlen(exp)-1] == ')' )
diff orig_src/misc.c src/misc.c
27a28,29
> #undef WIN32
>
2098,2101d2099
< #ifdef WIN32
<
< /* routines not in Windows runtime libraries */
<
2106a2105,2109
>
>
> #ifdef WIN32
>
> /* routines not in Windows runtime libraries */
diff orig_src/mud.h src/mud.h
34a35
> /*
41a43
> */
42a45,47
> #include <time.h>
> #include <winsock.h>
>
273c278
< bool DONT_UPPER;
---
> extern bool DONT_UPPER;
293c298
< int area_version;
---
> extern int area_version;
1049c1054
< bool MOBtrigger;
---
> extern bool MOBtrigger;
5434a5440
> /*
5452a5459,5460
> */
>
5463,5464c5471,5472
< #define exit(arg) Win32_Exit(arg)
< void Win32_Exit(int exit_code);
---
> //#define exit(arg) Win32_Exit(arg)
> //void Win32_Exit(int exit_code);
diff orig_src/save.c src/save.c
236c236
< fchmod(fileno(fp), S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP | S_IROTH|S_IWOTH);
---
> // fchmod(fileno(fp), S_IRUSR|S_IWUSR | S_IRGRP|S_IWGRP | S_IROTH|S_IWOTH);
OK, I have put the source (only) and the makefile, into this file: ftp://ftp.gammon.com.au/smaug/smaug_1.4a_src_mxp_borland.zip (190 Kb).
This download only has the files I had to change to compile under Borland, the other files (area files, source files etc.) are the same as in the download ftp://ftp.gammon.com.au/smaug/smaug1.4a_mxp.tgz. Thus, you should download and unzip that file first (the tgz one) and then unzip the borland file on top of it, so that the contents of the src directory are replaced by the 9 files in it.