a sample makefile

Posted by Drakemir on Tue 16 Dec 2003 12:27 PM — 7 posts, 22,593 views.

#0
Greetins, I was wondering if I could ask a favor
would it be posible to get a sample makefile for a rom server shown, as I have NO idea how to make one;/

also, whats the command to get out of grep ? :)

Thanks!

d-
USA #1
The ROM distributions should come with makefiles, I would have assumed... it's a little odd if they don't. Can't help you much there...

As for getting out of grep, I'm not quite sure what you mean since when you type the command, it gives the results and terminates, but you can always try pressing ctrl-c.
#2
Aye it seems that the makefile was lost in a backup.. so tryin to rebuild one from scratch..:(


its a rom build, with olc, just tryin to remeber what was in teh makefile it was years ago;/

D
USA #3
Can't you get a new one from a distribution, and work off of that instead of doing it from scratch? Seems a lot easier to me... :)
#4
figured out the makefile.. but problems compiling.
got this error, so close but so far.. any ideas?


$ make
rm -f rom
gcc -O -g -lcrypt -o rom act_comm.o act_enter.o act_info.o act_move.o act_obj.
act_wiz.o alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o ha
ler.o healer.o interp.o note.o lookup.o magic.o magic2.o music.o recycle.o sav
o scan.o skills.o special.o tables.o update.o
c:/djgpp/bin/ld.exe: cannot find -lcrypt
collect2: ld returned 1 exit status
make.exe: *** [rom] Error 1
USA #5
Since you're running on Windows, you don't have the crypt library... you need to define NOCRYPT somewhere, so that it doesn't use it, and then take out a part that says "-lcrypt" in the makefile. Do a search on this forum for crypt, you should find some more detailed answers. :)
#6
Aye it seems that the makefile was lost in a backup.. so tryin to rebuild one from scratch..:(


its a rom build, with olc, just tryin to remeber what was in teh makefile it was years ago;/

D