MAKE = "make"
CPP = @CXX@
PROF = -g -O
OBJDIR = obj
VPATH = .:obj
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)
LIBS = @ZLIBS@
O_FILES = act_comm.o act_ente.o act_info.o act_move.o act_obj.o \
act_wiz2.o act_wiz.o aedit.o affects.o alias.o areas.o autostat.o \
banedit.o ban.o base64.o bit.o cedit.o channels.o chardata.o \
clanedit.o clan.o class.o colour.o comedit.o comm.o const.o \
connect.o corpse.o cust_col.o d2magsys.o dawnlib.o dawnlog.o dawnstat.o \
db2.o db.o debug.o deity.o duel.o dynamics.o dyntable.o effects.o \
exitlist.o ey_crypt.o fight.o flags.o ftp.o gamble.o gameedit.o \
gio.o global.o grpedit.o handler.o healer.o hedit.o help.o \
herbedit.o hreboot.o ictime.o immquest.o interp.o intro_ex.o \
intro.o ispell.o jail.o langedit.o language.o laston.o letters.o lockers.o \
lookup.o magic_ce.o magic_da.o magic_ja.o magic_ke.o magic.o magic_ob.o \
magic_qu.o magic_ra.o magic_re.o magic_sb.o magic_ti.o map.o match.o \
medit.o mem.o mixedit.o mix.o mob_cmds.o mob_prog.o mob_q.o mount.o \
msp.o mud2web.o mxp.o namegen.o nanny.o netio.o network.o noble.o notenet.o \
note.o obdb.o obskill.o oedit.o offmoot.o olc_act.o olc_ex.o \
olc_mpcd.o olc.o olc_save.o o_lookup.o password.o pushdrag.o pipe.o \
pload.o qedit.o raceedit.o races.o recycle.o redit.o remort.o resolve.o \
roles.o rp.o save.o saymote.o scan.o score.o scripts.o sedit.o shop.o \
skill_ke.o skills.o skill_ti.o sk_type.o socedit.o socials.o \
special.o statset.o string.o support.o tables.o textsrch.o \
tokens.o track.o trap.o update.o websrv.o whofmt.o who.o wizlist.o
all: dawn resolver
# GNU related make
@ifGNUmake@dawn: $(sort $(O_FILES))
@ifGNUmake@ $(CPP) -c $(C_FLAGS) com_time.cpp -o $(OBJDIR)/com_time.o
@ifGNUmake@ -rm -f ../dawn
@ifGNUmake@ $(CPP) $(L_FLAGS) $(LIBS) -o ../dawn \
@ifGNUmake@ $(addprefix $(OBJDIR)/,$(O_FILES)) $(OBJDIR)/com_time.o
# BSD related make
@ifBSDmake@dawn: $(O_FILES)
@ifBSDmake@ $(CPP) -c $(C_FLAGS) $(.CURDIR)/com_time.cpp -o com_time.o
@ifBSDmake@ -rm -f $(.CURDIR)/../dawn
@ifBSDmake@ $(CPP) $(L_FLAGS) $(LIBS) -o $(.CURDIR)/../dawn \
@ifBSDmake@ $(O_FILES) $(.OBJDIR)/com_time.o
# STD related make
@ifSTDmake@dawn: $(O_FILES)
@ifSTDmake@ $(CPP) -c $(C_FLAGS) $(.CURDIR)/com_time.cpp -o $(.OBJDIR)/com_time.o
@ifSTDmake@ -rm -f ../dawn
@ifSTDmake@ $(CPP) $(L_FLAGS) $(LIBS) -o ../dawn \
@ifSTDmake@ $(addprefix $(OBJDIR)/,$(O_FILES)) $(OBJDIR)/com_time.o
# GNU resolver make
@ifGNUmake@../resolver: extras/resolver.cpp
@ifGNUmake@ $(CPP) $(L_FLAGS) -o ../resolver extras/resolver.cpp
# BSD resolver make
@ifBSDmake@../resolver: ../../resolver
@ifBSDmake@../../resolver: ../extras/resolver.cpp
@ifBSDmake@ $(CPP) $(L_FLAGS) -o ../../resolver ../extras/resolver.cpp
# STD resolver make
@ifSTDmake@../resolver: extras/resolver.cpp
@ifSTDmake@ $(CPP) $(L_FLAGS) -o ../resolver extras/resolver.cpp
resolver: ../resolver
clean:
@ifGNUmake@ rm -f $(OBJDIR)/*.o
@ifBSDmake@ rm -f *.o
@ifSTDmake@ rm -f *.o
cleanall:
rm -f ../dawn
rm -f ../resolver
resetconfig:
rm -f $(OBJDIR)/*.o
rm -f configure/config.cache
rm -f configure/config.log
rm -f configure/config.status
rm -f ./config.h
rm -f ./makefile
cp -f configure/makefile.original ./makefile
rebuild: clean dawn
rebuildall: cleanbin all
.cpp.o: dawn.h
@ifGNUmake@ $(CPP) -c $(C_FLAGS) $< -o $(OBJDIR)/$(basename $<).o
@ifBSDmake@ $(CPP) -c $(C_FLAGS) $< -o $*.o
@ifSTDmake@ $(CPP) -c $(C_FLAGS) $< -o $*.o
%.o : %.cpp
@ifGNUmake@ $(CPP) -c $(C_FLAGS) $< -o $(OBJDIR)/$(basename $<).o
@ifBSDmake@ $(CPP) -c $(C_FLAGS) $< -o $*.o
@ifSTDmake@ $(CPP) -c $(C_FLAGS) $< -o $*.o
beginhelp:
@echo =============================================================================
@echo Change into the configure directory and run ./configure to create a makefile
@echo
@echo Notes: The makefile configure generates requires a version of make that
@echo " has the sort function amoung other things. If you find that make"
@echo " is only compiling com_time.cpp when you type 'make rebuild' then you"
@echo " need to use a newer version of make or manually remove the use"
@echo " of sort from the makefile."
@echo
@echo " If the makefile has problems compiling the resolver, manually compile"
@echo " extras/resolver.cpp as resolver in the directory above the source and"
@echo " remove the resolver reference from the 'all' line in the makefile."
@echo
@echo =============================================================================