gh0st源码的编译环境

gh0st源码的编译环境

vc6.0++ && SDK && DDK

源码:将vc->project->options->directories
include,lib,src,
executable files
SDK的platform安装路径\bin
SDK的platform安装路径\bin\winnt
include file
SDK的platform安装路径\include
library files
SDK的platform安装路径\lib

MakeDriver.bat
//code

@echo off
if “%1″==”” goto usage1
if “%3″==”” goto usage2
if not exist %1\bin\setenv.bat goto usage3

call %1\BIN\setenv %1 %4
%2
cd %3
build -b -w %5 %6 %7 %8
goto ok
:usage1
echo Error: the first parameter is NULL!
goto exit
:usage2
echo Error: the third parameter is NULL!
goto exit
:usage3
echo Error: %1\bin\setenv.bat not exist!
goto exit
:ok
echo MakeDriver %1 %2 %3 %4
:exit

//code

建立工程: vc6.0 -> makefile ->

工程目录下需要dirs文件
参照DDK目录下的dirs文件内的目录结构定义

debug:
MakeDriver %DDKROOT% D: %WORKPATH% CHECKED
resstd.sys
-nmake/a
release:
MakeDriver %DDKROOT% D: %WORKPATH% FREE
resstd.sys
-nmake/a

//如果XP2则为 CHECKED <==> CHK
                         FREE <==> FRE
将sys目录下sources makefile *.c 复制至工程文件目录,以及MakeDriver.bat

留下回复