Sample makefile (Windows NT)

The following makefile, xp_echo.mak, was used to create the DLL for the xp_echo program on Windows NT using Microsoft Visual C++. It generates a file named xp_echo.dll. The source for the makefile is in $SYBASE\%SYBASE_ASE%\sample\esp, so you can modify it for your own use.

To build the example DLL using this makefile, enter:

nmake -f xp_echo.mak
# Nmake macros for building Windows 32-Bit apps
!include <ntwin32.mak>
all: xp_echo.dll

# Update the object file if necessary
xp_echo.obj: xp_echo.c
    $(cc) $(cflags) $(cvars) $(cdebug) xp_echo.c

# Update the xp_echo.dll if necessary
xp_echo.dll: xp_echo.obj
    $(link) $(linkdebug) -def:xp_echo.def -out:xp_echo.dll \
    xp_echo.obj shell32.lib libsrv.lib