emud/area_current/
emud/area_current/castle/
emud/area_current/newareas/
emud/area_current/nwcentral/
emud/area_current/scontinent/
emud/clans/
emud/player/
emud/player/d/e/bak/
emud/player/e/m/
emud/player/e/m/bak/
CC      = i386-pc-bsdi3.1-gcc
PROF    =
NOCRYPT =
C_FLAGS = -g -O -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF) 
SYSTEM = -DSYSV

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o comm.o const.o \
          db.o fight.o handler.o interp.o magic.o save.o special.o update.o \
	  mob_prog.o mob_commands.o mob_handler.o castle.o edit.o race.o

../bin/emud.ath: $(O_FILES)
	rm -f ../bin/emud.ath
	$(CC) $(L_FLAGS) -o ../bin/emud.ath $(O_FILES)

.c.o: merc.h
	$(CC) -c $(C_FLAGS) $(SYSTEM) $<

clean:
	rm -f $(O_FILES)