# Nmake macros for building Windows 32-Bit apps

!include <ntwin32.mak>

all: tester.fon

# Update the dynamic link library



tester.rbj: tester.rc sys08x12.fnt
    rc -r -fo tester.res tester.rc
    cvtres -$(CPU) tester.res -o tester.rbj


codestub.obj: codestub.c
    $(cc) $(cdebug) $(cflags) $(cvars) codestub.c


tester.lib: codestub.obj tester.def
    $(cvtobj) $(cvtdebug) codestub.obj
    lib -machine:$(CPU)     \
    -def:tester.def         \
    codestub.obj            \
    -out:tester.lib


tester.fon: tester.rbj tester.lib
    $(link)              \
    -base:0x1C000000     \
    -entry:DLLEntryPoint$(DLLENTRY) \
    -dll                 \
    -out:tester.fon      \
    tester.exp codestub.obj tester.rbj
