CC      = bcc
DEFINES = -DDOSWILD
CFLAGS  = $(DEFINES) -Z -O -w -mc -1
OBJS    = wcd.obj match.obj stack.obj nameset.obj error.obj text.obj WcdStack.obj display.obj dosdir.obj wfixpath.obj

all: wcd.exe

wcd.exe: $(OBJS)
	$(CC) -mc $(OBJS) noehc.lib

# remove noehc.lib if you are using Borland C version prior
# to 4.0. noeh?.lib, where ? stands for the memory model,
# removes the C++ exception handling from the startup-code
# which is included by default since Borland 4.0 and
# higher. Including noeh?.lib reduces the executable size
# significant, provided your source is C only.


.c.obj:
	$(CC) -c $(CFLAGS) $<

clean:
	del *.obj
