CC      = bcc
DEFINES = -DDOSWILD;WCD_USECONIO
CFLAGS  = $(DEFINES) -I../c3po -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 intset.obj

all: wcd.exe

wcd.exe: $(OBJS)
	bcc -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) $<

WcdStack.obj :  ..\c3po\WcdStack.c
	$(CC) -c $(CFLAGS) -o$@ ..\c3po\WcdStack.c

Text.obj :  ..\c3po\Text.c
	$(CC) -c $(CFLAGS) -o$@ ..\c3po\Text.c

nameset.obj :  ..\c3po\nameset.c
	$(CC) -c $(CFLAGS) -o$@ ..\c3po\nameset.c

Error.obj :  ..\c3po\Error.c
	$(CC) -c $(CFLAGS) -o$@ ..\c3po\Error.c

intset.obj :  ..\c3po\intset.c
	$(CC) -c $(CFLAGS) -o$@ ..\c3po\intset.c

clean:
	del *.obj
