CC=gcc CFLAGS=-g HEADERFILES = structs.h utility.h comm.h interpreter.h db.h constants.h dmserver : comm.o act_comm.o act_info.o act_move.o act_obj1.o \ act_obj2.o act_offensive.o act_other.o act_social.o act_wizard.o \ handler.o db.o interpreter.o utility.o spec_assign.o shop.o limits.o \ mobact.o fight.o modify.o weather.o spell_parser.o spells1.o \ spells2.o reception.o constants.o silver.o ban.o g_hill.o citadel.o \ spec_procs.o signals.o boards.o act_create.o magic.o comm.o : comm.c structs.h utility.h comm.h interpreter.h handler.h db.h $(CC) -c $(CFLAGS) comm.c ban.o : ban.c structs.h utility.h comm.h interpreter.h handler.h db.h $(CC) -c $(CFLAGS) ban.c act_comm.o : act_comm.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h ansi.h $(CC) -c $(CFLAGS) act_comm.c act_info.o : act_info.c structs.h utility.h comm.h modify.h\ interpreter.h handler.h db.h spells.h limits.h ansi.h $(CC) -c $(CFLAGS) act_info.c act_move.o : act_move.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h ansi.h $(CC) -c $(CFLAGS) act_move.c act_obj1.o : act_obj1.c structs.h utility.h comm.h interpreter.h handler.h \ db.h spells.h $(CC) -c $(CFLAGS) act_obj1.c act_obj2.o : act_obj2.c structs.h utility.h comm.h interpreter.h handler.h \ db.h spells.h constants.h $(CC) -c $(CFLAGS) act_obj2.c act_offensive.o : act_offensive.c structs.h utility.h comm.h \ interpreter.h handler.h db.h spells.h $(CC) -c $(CFLAGS) act_offensive.c act_other.o : act_other.c structs.h utility.h comm.h interpreter.h handler.h \ db.h spells.h $(CC) -c $(CFLAGS) act_other.c act_social.o : act_social.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h $(CC) -c $(CFLAGS) act_social.c act_wizard.o : act_wizard.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h $(CC) -c $(CFLAGS) act_wizard.c handler.o : handler.c structs.h utility.h db.h ansi.h $(CC) -c $(CFLAGS) handler.c db.o : db.c structs.h utility.h db.h comm.h handler.h $(CC) -c $(CFLAGS) db.c interpreter.o : interpreter.c structs.h comm.h interpreter.h db.h utility.h \ limits.h $(CC) -c $(CFLAGS) interpreter.c utility.o : utility.c structs.h utility.h $(CC) -c $(CFLAGS) utility.c spec_assign.o : spec_assign.c structs.h db.h $(CC) -c $(CFLAGS) spec_assign.c spec_procs.o : spec_procs.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h $(CC) -c $(CFLAGS) spec_procs.c limits.o : limits.c limits.h structs.h utility.h spells.h comm.h $(CC) -c $(CFLAGS) limits.c fight.o : fight.c structs.h utility.h comm.h handler.h interpreter.h db.h \ spells.h ansi.h $(CC) -c $(CFLAGS) fight.c weather.o : weather.c structs.h utility.h comm.h handler.h interpreter.h db.h $(CC) -c $(CFLAGS) weather.c shop.o : shop.c structs.h comm.h handler.h db.h interpreter.h utility.h act.h $(CC) -c $(CFLAGS) shop.c spells1.o : spells1.c structs.h utility.h comm.h db.h interpreter.h spells.h \ handler.h $(CC) -c $(CFLAGS) spells1.c spells2.o : spells2.c structs.h utility.h comm.h db.h interpreter.h spells.h \ handler.h $(CC) -c $(CFLAGS) spells2.c magic.o : magic.c structs.h utility.h comm.h db.h interpreter.h spells.h \ handler.h $(CC) -c $(CFLAGS) magic.c spell_parser.o : spell_parser.c structs.h utility.h comm.h db.h interpreter.h \ spells.h handler.h $(CC) -c $(CFLAGS) spell_parser.c mobact.o : mobact.c utility.h structs.h db.h $(CC) -c $(CFLAGS) mobact.c modify.o : modify.c structs.h utility.h interpreter.h handler.h db.h comm.h $(CC) -c $(CFLAGS) modify.c reception.o : reception.c structs.h comm.h handler.h db.h interpreter.h \ utility.h spells.h $(CC) -c $(CFLAGS) reception.c constants.o : constants.c limits.h structs.h $(CC) -c $(CFLAGS) constants.c boards.o : boards.c structs.h comm.h boards.h $(CC) -c $(CFLAGS) boards.c signals.o : signals.c utility.h structs.h $(CC) -c $(CFLAGS) signals.c act_create.o : act_create.c modify.h structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h $(CC) -c $(CFLAGS) act_create.c # special code for areas citadel.o : citadel.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h act.h $(CC) -c $(CFLAGS) citadel.c g_hill.o : g_hill.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h $(CC) -c $(CFLAGS) g_hill.c silver.o : silver.c structs.h utility.h comm.h interpreter.h \ handler.h db.h spells.h limits.h $(CC) -c $(CFLAGS) silver.c # utilities code - I've moved this code to its own dir list.o : list.c structs.h $(CC) $(CFLAGS) -o list list.c delplay.o : delplay.c structs.h $(CC) $(CFLAGS) -o delplay delplay.c # put it all together dmserver : comm.c act_comm.c act_info.c act_move.c act_obj1.c act_obj2.c act_offensive.c act_other.c act_social.c act_wizard.c handler.c db.c interpreter.c utility.c spec_assign.c shop.c limits.c mobact.c fight.c modify.c weather.c spells1.c spells2.c spell_parser.c reception.c constants.c ban.c silver.c g_hill.c citadel.c spec_procs.c signals.c boards.c act_create.c magic.c $(CC) -o dmserver $(CFLAGS) comm.o act_comm.o act_info.o act_move.o act_obj1.o act_obj2.o act_offensive.o act_other.o act_social.o act_wizard.o handler.o db.o interpreter.o utility.o spec_assign.o shop.o limits.o mobact.o fight.o modify.o weather.o spells1.o spells2.o spell_parser.o reception.o constants.o ban.o silver.o g_hill.o citadel.o spec_procs.o signals.o boards.o act_create.o magic.o