# 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@ @SQLITE3_CFLAGS@ $(MYFLAGS) $(PROFILE) -I$(INCDIR)

LIBS = @LIBS@ @SQLITE3_LIBS@

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) $(LIBS) -o $(BINDIR)/autowiz autowiz.c

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

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

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

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

$(BINDIR)/purgeplay: purgeplay.c $(INCDIR)/conf.h $(INCDIR)/sysdep.h \
	$(INCDIR)/structs.h $(INCDIR)/utils.h
	$(CC) $(CFLAGS) $(LIBS) -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) $(LIBS) -o $(BINDIR)/shopconv shopconv.c

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

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

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

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