# CircleMUD Makefile.in - Makefile template used by 'configure'
# for the 'util' directory

# C compiler to use
CC = @CC@

# Any special flags you want to pass to the compiler
MYFLAGS = @MYFLAGS@ -DCIRCLE_UTIL

#flags for profiling (see hacker.doc for more information)
PROFILE = 

##############################################################################
# Do Not Modify Anything Below This Line (unless you know what you're doing) #
##############################################################################

# binary destination directory
BINDIR = ../../bin
# location of Circle include files
INCDIR = ..

CFLAGS = @CFLAGS@ $(MYFLAGS) $(PROFILE) -I$(INCDIR)

default: all

all: $(BINDIR)/autowiz $(BINDIR)/delobjs $(BINDIR)/listrent \
	$(BINDIR)/mudpasswd $(BINDIR)/play2to3 $(BINDIR)/purgeplay \
	$(BINDIR)/shopconv $(BINDIR)/showplay $(BINDIR)/sign $(BINDIR)/split \
	$(BINDIR)/wld2html

autowiz: $(BINDIR)/autowiz

delobjs: $(BINDIR)/delobjs

listrent: $(BINDIR)/listrent

mudpasswd: $(BINDIR)/mudpasswd

play2to3: $(BINDIR)/play2to3

purgeplay: $(BINDIR)/purgeplay

shopconv: $(BINDIR)/shopconv

showplay: $(BINDIR)/showplay

sign: $(BINDIR)/sign

split: $(BINDIR)/split

wld2html: $(BINDIR)/wld2html

$(BINDIR)/autowiz: autowiz.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/utils.h $(INCDIR)/db.h
	$(CC) $(CFLAGS) -o $(BINDIR)/autowiz autowiz.c

$(BINDIR)/delobjs: delobjs.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/utils.h
	$(CC) $(CFLAGS) -o $(BINDIR)/delobjs delobjs.c

$(BINDIR)/listrent: listrent.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h
	$(CC) $(CFLAGS) -o $(BINDIR)/listrent listrent.c

$(BINDIR)/mudpasswd: mudpasswd.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/utils.h
	$(CC) $(CFLAGS) -o $(BINDIR)/mudpasswd mudpasswd.c @CRYPTLIB@

$(BINDIR)/play2to3: play2to3.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h
	$(CC) $(CFLAGS) -o $(BINDIR)/play2to3 play2to3.c

$(BINDIR)/purgeplay: purgeplay.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/utils.h
	$(CC) $(CFLAGS) -o $(BINDIR)/purgeplay purgeplay.c

$(BINDIR)/shopconv: shopconv.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/db.h $(INCDIR)/utils.h $(INCDIR)/shop.h
	$(CC) $(CFLAGS) -o $(BINDIR)/shopconv shopconv.c

$(BINDIR)/showplay: showplay.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h
	$(CC) $(CFLAGS) -o $(BINDIR)/showplay showplay.c

$(BINDIR)/sign: sign.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h
	$(CC) $(CFLAGS) -o $(BINDIR)/sign sign.c @NETLIB@

$(BINDIR)/split: split.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h
	$(CC) $(CFLAGS) -o $(BINDIR)/split split.c

$(BINDIR)/wld2html: wld2html.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h
	$(CC) $(CFLAGS) -o $(BINDIR)/wld2html wld2html.c
