#
#  utilfct library makefile
#

TOPDIR   = ..
INCDIR   = $(TOPDIR)\include

!include $(TOPDIR)\config\makerules

all: utilfct$(LBO) $(MDUMMY)

OBJECTS = utilfct$(CO) bufstream$(CO) fileutil$(CO) filefind$(CO)
OBJECTS = $(OBJECTS) errorstr$(CO) rel2abs$(CO) abs2rel$(CO) inimacro$(CO)
OBJECTS = $(OBJECTS) charset$(CO) wildcards$(CO) queue$(CO) strlcpy$(CO)
OBJECTS = $(OBJECTS) strlcat$(CO) snprintf$(CO) eautils$(CO) nls$(CO)
OBJECTS = $(OBJECTS) debuglog$(CO) hashtable$(CO) hashfunctions$(CO)
OBJECTS = $(OBJECTS) os2fonts$(CO) pipe$(CO)

utilfct$(LBO): $(OBJECTS)
	if exist $@ del $@
	$(LB) $@ $(OBJECTS) $(LBENDL)

clean:  $(MDUMMY)
	-@del utilfct$(LBO) $(OBJECTS) 2> nul
depend: $(MDUMMY)
	@$(TOPDIR)\config\makedep.cmd *.c -r -x -I$(INCDIR)

abs2rel.c:	abs2rel.h
bufstream.c:	bufstream.h
charset.c:	charset.h strutils.h debuglog.h
errorstr.c:	strutils.h
fileutil.c:	fileutil.h strutils.h minmax.h
inimacro.c:	utilfct.h
utilfct.h:	..\include\config.h rel2abs.h abs2rel.h bufstream.h charset.h wildcards.h filefind.h fileutil.h errorstr.h inimacro.h queue.h minmax.h strutils.h eautils.h nls.h
queue.c:	queue.h
rel2abs.c:	rel2abs.h
utilfct.c:	utilfct.h
wildcards.c:	wildcards.h nls.h
eautils.c:	debuglog.h eautils.h
nls.c:		nls.h
debuglog.c:	snprintf.h debuglog.h
hashfunctions.c:	hashtable.h
hashtable.c:	hashtable.h ..\include\config.h
os2fonts.c:	snprintf.h strutils.h os2fonts.h debuglog.h
pipe.c:		pipe.h
