This Was originally sent to Shmoe, however I Post it here so that everyone gets it! >> > > >Actually I did it in linux.. > >It is a bit of a pain, but if you know you're way around the Makefile it is a little easier.. > >I might make this part of my Website.. may just figure out diff and do it anyway... > >However... > >type configure (in the circle directory) > >then go into ./src > > >patch <mobprogs.patch > > >It will ask you for a filename for act.item.c just type in act.object.c > >Then check for *.rej > >There will actually be 2. 1 for db.h >and 1 for Makefile > >Now, print out the rejs, or whatever, they are actually kinda easy. > >edit db.h and add in the line > >#define MOB_DIR "world/prg" /* mobile program directory */ > >Then add > >#include "conf.h" >#include "sysdep.h" > >in mobprog.c >and mobcmd.c > >BEFORE ALL OTHER INCLUDES!! > >Now do > >gcc -MM mob*.c >>Makefile > >edit your makefile and you should see that the mobprog.o and mobcmd.o have been added into the objfile list > >go to the end of Makefile > >there you will see 6 lines of stuff added at the bottom, edit out the stuff that belongs to mobact.c > >Then go to where it says > > -c (MYFLAG$) (CFLAG$): xxx.c > >block the text right up in between the : and xxx > >Go down to the bottom and there is a list for mobcmd.o and mobprog.o. Insert the text block in the line above the second dependancy. And add it to the bottom of the second dependancy > >so you have somehting like > >mobcmd.o : mobcmd.c conf.h sysdep.h xxxx.h xxxx.h xxxx.h \ > xxx.h xxxx.h > -c -Wall (MYFLAG$) (CC$) mobcmd.c >mobprog.o : mobprog.c conf.h sysdep.h xxx.h .......... \ > xxx.h ..... > -c -Wall (MYFLAG$) (CC$) mobprog.c > >*note you have to addd mobcmd.c and mobprog.c to the end of the -c -Wall... etc. > >Make sure there are no extra spaces or funky things happening... don't hit return just gu up and edit it in.. > >Then block the entire bunch of crap you just edited and cut it. Paste it up in alphabetical order. Should be after mobact.o > >So when you look at it everything is in line, and looks beutiful.. > > >Then save the file > >then make > >It should run perfectly if you didn't add any spaces into the section that you dited in the makefile. It seems to be REALLY picky, even if there is a space after a bunch of text that ain't supposed to be there it will barf. > >If it does barf on the makefile, just go through it and double check it.. worse case you have to redo the makefile...Maybe I will add the Makefile on my site.. > >Hope it works... > >If you are using Oasis... patch oasis first, then mobprogs.. I think it worked better that way.. but try them and let me know how it works.. > > >LINUX RULEZ!! > > Zippy the Wonderslug WWW: http://www.icom.ca/~chrisa/mud.html
This archive was generated by hypermail 2b30 : 12/18/00 PST