#----------------
# HEAD make file
#----------------

DLL_SWITCH=NO_DLL
!include <ntwin32.mak>

# This line allows NMAKE to work as well

# Update the import library

all: winmain.obj holeport.dll

# holeport.lib: holeport.obj holeport.def

holeport.lib: holeport.def
    lib -machine:$(CPU)      \
    -def:holeport.def         \
    -out:holeport.lib

# Update the dynamic link library

holeport.dll: holeport.obj holeport.lib holeport.def 
    $(link) \
    -base:0x1C000000 \
    -dll \
    -entry:HP_Entry \
    -out:holeport.dll \
    holeport.exp holeport.obj $(guilibs)

winmain.obj: winmain.c
    $(cc) $(cflags) $(cvars) $(*B).c

holeport.obj: holeport.c
    $(cc) $(cflags) $(cvars) $(*B).c




