CC     = g++
INC    = /home/emily/DEVEL/mud/include
LIBS   = -lgdbm
# -lnsl -lsocket are removed for Linux

# add -D_DEBUG__ when you need a debug-able mud...
CFLAGS = -g -Wall
OBJS   = command/command.o command/command_manager.o command/parser.o \
	character/generic_character.o character/mobile.o character/player.o \
	character/character_manager.o character/character.o \
	include/booter.o include/class.o include/scheduler.o \
	include/utility.o item/generic_item.o item/item.o item/weapon.o \
	item/baseitem.o item/armour.o item/bag.o command/command_put.o \
	item/item_manager.o location/generic_location.o location/location.o \
	location/location_manager.o zone/generic_zone.o zone/native_zone.o \
	command/command_go.o command/command_say.o command/command_quit.o \
	command/command_who.o command/command_inventory.o \
	command/command_get.o command/command_drop.o command/command_look.o \
	command/command_score.o command/command_clear.o \
	command/command_kill.o command/handler_logon.o random/random.o \
	command/handler_standard.o command/command_wield.o \
	command/command_tell.o command/command_shout.o command/command_raw.o \
	command/command_stat.o command/command_emote.o \
	command/command_examine.o command/command_info.o \
	command/command_help.o command/handler_pager.o command/command_wear.o \
	command/command_remove.o command/command_lwield.o \
	command/command_flee.o command/command_logon.o command/command_save.o \
	command/command_train.o command/command_learn.o command/command_study.o\
	character/critstring.o container/container.o database/database.o \
	character/skills.o character/weaponskills.o spell/spells.o \
	spell/spell_fireball.o command/command_cast.o spell/spell_glowing-light1.o \
	command/command_dispel.o spell/spell_lightningbolt.o \
	spell/spell_aura-resistance1.o spell/spell_summon-champion.o \
	command/command_protect.o command/command_follow.o command/command_group.o \
	command/command_party.o command/command_order.o command/command_lose.o \
	command/command_mount.o command/command_zap.o spell/spell_arrow-attraction.o \
	command/command_skills.o spell/spell_sleep.o spell/spell_summon-steed.o \
	spell/spell_glowing-light2.o  command/command_chat.o command/command_code.o \
	command/command_admin.o command/command_god.o command/command_ooc.o \
	spell/spell_aura-resistance2.o spell/spell_charm.o spell/spell_open.o \
	spell/spell_summon-elemental.o command/command_doh.o spell/spell_magic-lock.o \
	spell/spell_magic-alarm.cc spell/spell_change-appearance.o spell/spell_cure-heavy.o \
	spell/spell_cure-light.o spell/spell_poison-immunity.o spell/spell_invisibility.o \
	spell/spell_sense.o spell/spell_wind-blast.o spell/spell_stand-still.o \
	spell/spell_blast.o spell/spell_change-allegiance.o spell/spell_hammerhand.o \
	spell/spell_arrow-invulnerability.o spell/spell_cause-instability.o \
	spell/spell_enchant-weapon.o spell/spell_prevent-flight.o spell/spell_steal-mind.o \
	spell/spell_cause-animosity.o spell/spell_cause-flight.o spell/spell_heal-mind.o \
	spell/spell_heal-light.o spell/spell_destroy-undead.o spell/spell_exorcise.o \
	spell/spell_heal-severe.o spell/spell_annihilate-undead.o \
	command/command_buy.o command/command_list.o command/command_hire.o \
	command/command_shoot.o command/command_reload.o location/world.o \
	command/command_survey.o item/writeable.o command/command_load.o \
	command/command_make.o location/matrix.o command/command_range.o \
        mprog/prog.o command/command_write.o command/command_read.o \
        command/command_sign.o command/command_function.o command/command_set.o

########################################################################

all: inc mpr cha spe com ite loc zon ran con dat mud

inc:
	cd include; $(MAKE)

mpr:
	cd mprog; $(MAKE)

cha:
	cd character; $(MAKE)

spe:

	cd spell; $(MAKE)

com:
	cd command; $(MAKE)

ite:
	cd item; $(MAKE)

loc:
	cd location; $(MAKE)

zon:
	cd zone; $(MAKE)
ran:
	cd random; $(MAKE)

con:
	cd container; $(MAKE)

dat:
	cd database; $(MAKE)

mud:	mud.cc
# mud: $(OBJS) mud.cc
	$(CC) -I$(INC) $(CFLAGS) $(OBJS) mud.cc $(LIBS) -o mud

clean:
	rm mud character/*.o command/*.o include/*.o item/*.o location/*.o \
           zone/*.o random/*.o container/*.o database/*.o spell/*.o mprog/*.o






