#Prelude :)
!MESSAGE ______ ______               _         _
!MESSAGE | ___ \| ___ \             | |       | |
!MESSAGE | |_/ /| |_/ /  __ _   ___ | | __  __| |  ___    ___   _ __
!MESSAGE |    / | ___ \ / _` | / __|| |/ / / _` | / _ \  / _ \ | '__|
!MESSAGE | |\ \ | |_/ /| (_| || (__ |   < | (_| || (_) || (_) || |
!MESSAGE \_| \_|\____/  \__,_| \___||_|\_\ \__,_| \___/  \___/ |_|
!MESSAGE 
!MESSAGE                      - Version 1.3 -
!MESSAGE                                           RedKod Team
!MESSAGE                                         www.redkod.com
!MESSAGE Coder: R-e-D
!MESSAGE Mail : r-e-d@redkod.com
!MESSAGE

!IF "$(CFG)" == ""
CFG=all
!MESSAGE No configuration specified. Defaulting to all.
!MESSAGE For clean all : nmake CFG="clean" :)
!ENDIF 

!IF "$(CFG)" != "all" && "$(CFG)" != "clean"
!MESSAGE Invalid configuration "$(CFG)" specified.
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE 
!MESSAGE NMAKE /f "RBackdoor.mak" CFG="all"
!MESSAGE 
!MESSAGE Possible choices for configuration are:
!MESSAGE 
!MESSAGE => "all"
!MESSAGE => "clean"
!MESSAGE 
!ERROR An invalid configuration is specified.
!ENDIF 

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE 
NULL=nul
!ENDIF 

CPP=cl.exe
MTL=midl.exe
RSC=rc.exe

!IF  "$(CFG)" == "all"

OUTDIR=.\Release
INTDIR=.\Release
OutDir=.\Release
ALL : "$(OUTDIR)\RBackdoor.exe"

"$(OUTDIR)" :
    if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"

CPP_PROJ=/nologo /ML /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\RBackdoor.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
MTL_PROJ=/nologo /mktyplib203 /win32 
RSC_PROJ=/l 0x40c /fo"$(INTDIR)\Script1.res" 

LINK32=link.exe
LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib wininet.lib netapi32.lib vfw32.lib winmm.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\RBackdoor.pdb" /machine:I386 /out:"$(OUTDIR)\RBackdoor.exe" 
LINK32_OBJS= \
	"$(INTDIR)\admin.obj" \
	"$(INTDIR)\authentification.obj" \
	"$(INTDIR)\beep.obj" \
	"$(INTDIR)\bsystem.obj" \
	"$(INTDIR)\chat.obj" \
	"$(INTDIR)\crypt.obj" \
	"$(INTDIR)\error.obj" \
	"$(INTDIR)\event.obj" \
	"$(INTDIR)\exec.obj" \
	"$(INTDIR)\fget.obj" \
	"$(INTDIR)\flush.obj" \
	"$(INTDIR)\getdata.obj" \
	"$(INTDIR)\getinfos.obj" \
	"$(INTDIR)\help.obj" \
	"$(INTDIR)\kernel.obj" \
	"$(INTDIR)\mail.obj" \
	"$(INTDIR)\main.obj" \
	"$(INTDIR)\memory.obj" \
	"$(INTDIR)\message.obj" \
	"$(INTDIR)\netbios.obj" \
	"$(INTDIR)\nethide.obj" \
	"$(INTDIR)\network.obj" \
	"$(INTDIR)\password.obj" \
	"$(INTDIR)\portscan.obj" \
	"$(INTDIR)\process.obj" \
	"$(INTDIR)\rpatch.obj" \
	"$(INTDIR)\rshell.obj" \
	"$(INTDIR)\screenshot.obj" \
	"$(INTDIR)\services.obj" \
	"$(INTDIR)\setrparam.obj" \
	"$(INTDIR)\shell.obj" \
	"$(INTDIR)\shellcommand.obj" \
	"$(INTDIR)\sid.obj" \
	"$(INTDIR)\strlcat.obj" \
	"$(INTDIR)\strlcpy.obj" \
	"$(INTDIR)\telnet.obj" \
	"$(INTDIR)\time.obj" \
	"$(INTDIR)\update.obj" \
	"$(INTDIR)\version.obj" \
	"$(INTDIR)\view.obj" \
	"$(INTDIR)\wget.obj" \
	"$(INTDIR)\window.obj" \
	"$(INTDIR)\write.obj" \
	"$(INTDIR)\Script1.res"

"$(OUTDIR)\RBackdoor.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
    $(LINK32) @<<
  $(LINK32_FLAGS) $(LINK32_OBJS)
<<

!ENDIF

.c{$(INTDIR)}.obj::
   $(CPP) @<<
   $(CPP_PROJ) $< 
<<

.cpp{$(INTDIR)}.obj::
   $(CPP) @<<
   $(CPP_PROJ) $< 
<<

.cxx{$(INTDIR)}.obj::
   $(CPP) @<<
   $(CPP_PROJ) $< 
<<

!IF "$(CFG)" == "all"
SOURCE=.\Script1.rc
"$(INTDIR)\Script1.res" : $(SOURCE) "$(INTDIR)"
	$(RSC) $(RSC_PROJ) $(SOURCE)

ALL : "$(OUTDIR)\RBackdoor.exe"


!ELSEIF  "$(CFG)" == "clean"
RDIR=.\Release
"$(CLEAN)" :
	del "$(RDIR)\*.obj"
	del "$(RDIR)\*.sbr"
	del "$(RDIR)\*.pch"
	del "$(RDIR)\*.idb"
	del "$(RDIR)\*.res"
	del "$(RDIR)\*.exe"	
!ENDIF