Mail Archives: djgpp/1998/10/20/05:55:26
Vladimir Taltos (draco AT ttlc DOT net) wrote:
: The makefile I am trying to run (from stock Rom 2.4 Beta Release 6)
: consists of the following:
: > CC = gcc
: > PROF = -O -g
: > NOCRYPT =
: > C_FLAGS = -Wall $(PROF) $(NOCRYPT)
: > 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) $<
: This makefile was part of the stock release, and the developer seems to
: have expected it to work. In addition, a highly similar version works
: fine for a freind of mine when he compiles his mud code, the only
: difference being the object files named, since he has a few .c files
: that he has added in the process of customizing his mud.
: However, when I try to run this, I get the error message:
: "No rule to make target 'act_comm.o', needed by rom. Stop."
[Klippa, klapp, kluppit rest of message.]
Hmm. Read make's info page.
I think that ".c.o: merc.h" says that the file ".c.o (sic!)" depends
on "merc.h". Try "%.o: %.c merc.h" instead. Or remove "merc.h" from
that line and add the line "%.c:: merc.h" instead.
Right,
MartinS
- Raw text -