TOOLS = c:\c\bin        # Change this to where the compiler/linker is
INCLUDE = c:\c\include  # Change this to where your standard header files are

CC = $(TOOLS)\bcc +w_assert.cfg # Change to whatever compiler you use

# implicit rule for building source files
.c.obj:
  $(CC) -c {$< }

w_assert.lib: w_assert.cfg w_assert.obj findsym.obj
    tlib w_assert.lib +w_assert.obj +findsym.obj

# create the compiler configuration on the fly.  This works with
# Borlands MAKE.  May need to modify for other MAKEs
# Options: 286 code generation, only make _export functions exportable,
# Set include path to $(INCLUDE)

w_assert.cfg: w_assert.mak
  copy &&|
-2
-WE
-I$(INCLUDE)
| w_assert.cfg
