#----------------
# Holeport make file
#----------------

!include <ntwin32.mak>

# This line allows NMAKE to work as well

# Update the import library

# This file is set up to use the C run time dll.  Make sure that
# you have crtdll.obj, posted on Compuserve, if you are using
# this on the October 92 beta of Windows NT.

# Both this DLL and the executable linking to it must have a consistent
# view of the C Run times.  So either the executable must use the
# C Run Time, or you must change the flags here to use a different
# version with appropriate flags.  See doc in \mstools\h\ntwin32.mak



all: winmain.obj holeport.dll

# holeport.lib: holeport.obj holeport.def

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

# Update the dynamic link library

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

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

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

clean:
	-del *.obj
	-del *.exp
	-del *.lib
	-del *.dll


