> 4) Rev up the Synedit and modify the makefile (no extensions) by taking
> out -lcrypt and $( NOCRYPT ). Make sure all of the .c files in the source
> Close to the bottom you will see CFLAGS look for $< and
> type -DUnix -DOLD_RAND -DNOCRYPT right before it should look like this:
Well, Cygwin includes the crypt libraries these days, so you can pretty
nearly just follow the instructions for Linux as far as adding -lcrypt
to the makefile. Most people won't like a mud that doesn't encrypt the
passwords.
Cygwin also defines 'unix' all by itself now, so you can leave the
-Dunix out.
The randomizer can be made to work without defining OLD_RAND by
commenting out a couple of lines in comm.c.
> gcc -DUnix -DOLD_RAND -DNOCRYPT *.c
Whoa, bud.. there's no reason to call gcc directly if you have a
makefile. Just type "make" in the src directory and it should build the
executable if your makefile is written correctly.
Something like this should work:
CC = gcc
C_FLAGS = -Wall -O -ggdb
L_FLAGS = -lcrypt
O_FILES = act_comm.o etc...
rom: $(O_FILES)
rm -f rom
$(CC) -o rom $(O_FILES) $(L_FLAGS)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<