I'm currently running Win98 and am using a Cygwin Bash Shell,I don't really know what's wrong, I've created the makefile and everything but every time I try to compile it I get the following error.
make: *** [act_comm.o] Error 255
Can someone please help me?
If you have stock rom2.4b6, make your makefile look like this:
CC = gcc
PROF = -O -g
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
L_FLAGS = $(PROF)
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
rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
Ok, I did that but now I'm getting the following error:
Makefile:14: *** missing separator. Stop.
[1]+ Exit 2 make
Make files are sensitive to tabs. Use the makefile suggested, but typing a tab character where shown in bold...
CC = gcc
PROF = -O -g
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall $(PROF) $(NOCRYPT) -DOLD_RAND
L_FLAGS = $(PROF)
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
rom: $(O_FILES)
[tab] rm -f rom
[tab] $(CC) $(L_FLAGS) -o rom $(O_FILES)
.c.o: merc.h
[tab] $(CC) -c $(C_FLAGS) $<
Hey thanks, that worked, now if only I could get the grant command in *points to his most recent post*.
Hehehe...
(Changed my name cause I couldn't remember what I was registered under...sorry)
Amended on Wed 26 Feb 2003 07:50 AM by Sephiroth