!include <ntwin32.mak>
NTRHOOK_DEP =  \
	events.h
NTROACH_DEP =  \
        ntroach.h \
	events.h \
	resource.h

NTROACH_RCDEP =  \
	roach000.bmp \
	roach015.bmp \
	roach030.bmp \
	roach045.bmp \
	roach060.bmp \
	roach075.bmp \
	roach090.bmp \
	roach120.bmp \
	roach135.bmp \
	roach150.bmp \
	roach165.bmp \
	roach180.bmp \
	roach195.bmp \
	roach210.bmp \
	roach225.bmp \
	roach240.bmp \
	roach255.bmp \
	roach270.bmp \
	roach285.bmp \
	roach300.bmp \
	roach315.bmp \
	roach330.bmp \
	roach345.bmp \
	squish.bmp


all: ntroach.exe ntrhook.dll

clean:
    del *.exe *.res *.obj *.dll *.exp *.lib *.pdb *.aps *.ilk *.vcp


ntroach.res: ntroach.rc $(NTROACH_RCDEP)
    rc  ntroach.rc



ntrhook.obj: ntrhook.c $(NTRHOOK_DEP)
    $(cc) $(cflags) $(cvarsdll) $(cdebug) ntrhook.c
ntroach.obj: ntroach.c $(NTROACH_DEP)
    $(cc) $(cflags) $(cvarsmt) $(cdebug) ntroach.c


ntroach.exe: ntroach.obj  ntroach.res
    $(link) $(linkdebug) $(guiflags) -out:ntroach.exe ntroach.obj ntroach.res $(guilibs) advapi32.lib

ntrhook.dll: ntrhook.obj 
    $(link) $(linkdebug)     \
	    -dll              \
	    -entry:DllMain    \
	    -out:ntrhook.dll   \
	     ntrhook.obj  $(guilibsdll)

