# Makefile
# --------------------------------------------------------------
# This will create executable files of the C programs that are
# part of my dbf utility package.  The libraries must be made first.
#
# Cygnus WinNT/9x version.
#
# To invoke: make all
#
# Randy Deardorff.
#
# Changes:
#
# --------------------------------------------------------------

CFLAGS=

EXEFILES=	info2dbf.exe \
		dbf2info.exe \
		info2ascii.exe \
		ascii2info.exe \
		infolook.exe \
		infoitems.exe \
		infolist.exe \
		infodir.exe \
		infodel.exe \
		dbflook.exe \
		dbfitems.exe \
		dbflist.exe \
		makecoocoo.exe \
		makegencoo.exe

all: $(EXEFILES)

# Since make in djgpp and cygnus does not support $$@ on dependency line,
# we can't use this:
#
#${EXEFILES}:	$${@:.exe=.c}
#		gcc -s -O2 ${@:.exe=.c} -L d:/rdeardor/lib \
#		-ldbf -linfox -lmap -lmisc -lm -o ${@:.exe=}
#
# Thus, we must resort some arbitrary dependency for the exes.  Using
# the makefile itself is as good as anything else I can think of.
#
${EXEFILES}:	makefile
		gcc -s -O2 ${@:.exe=.c} -L d:/rdeardor/lib \
		-ldbf -linfox -lmap -lmisc -lm -o ${@:.exe=}
