[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  ROM
. -> [Folder]  Compiling the server
. . -> [Subject]  how would I add another .c file?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

how would I add another .c file?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Kanzeil   (6 posts)  [Biography] bio
Date Sun 23 May 2004 03:28 AM (UTC)
Message
I've got this snippet clan.c and I want to integrate it into the make im not sure how to do this I tried to add a few lines to my merc.h but that didnt do anything (I feel kinda retarded asking questions that are probably easy to answer, but im new to this and all)
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 23 May 2004 04:43 AM (UTC)
Message
In your Makefile (a file of that name) you will find some lines like this:


O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
          alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
          handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
          music.o recycle.o save.o scan.o skills.o special.o tables.o \
          update.o


Simply add the new file (with the .o extension), thus forcing the .c file to be compiled to produce the required .o file. eg.



O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
          alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
          handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
          music.o recycle.o save.o scan.o skills.o special.o tables.o \
          update.o clan.o


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,383 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]