This commit is contained in:
David Anderson 2005-03-09 22:21:26 +00:00
parent 01bacc3275
commit b2aa069cd4

View File

@ -13,20 +13,21 @@
# clean - clean the specifications above # clean - clean the specifications above
$PROJECT = "sqlite_amxx"; $PROJECT = "sqlite_amxx";
$sdk = "../../../hlmultisource"; $sdk = "../../hlsdk/SourceCode";
$mm = "../../../metamodsrc/metamod"; $mm = "../../metamod/metamod";
$sqlite = "sqlite-source-3_1_2"; $sql = "sqlite-source-3_1_2";
$gccf = "gcc"; $gccf = "gcc";
@CPP_SOURCE_FILES = ("sqlite.cpp", "sqlite_amx.cpp", "amxxmodule.cpp"); @CPP_SOURCE_FILES = ("sqlite.cpp", "sqlite_amx.cpp", "amxxmodule.cpp");
@C_SOURCE_FILES = (); @C_SOURCE_FILES = ("$sql/attach.c", "$sql/auth.c", "$sql/btree.c", "$sql/build.c", "$sql/date.c", "$sql/delete.c", "$sql/expr.c", "$sql/func.c", "$sql/hash.c", "$sql/insert.c", "$sql/legacy.c", "$sql/main.c", "$sql/opcodes.c", "$sql/os_unix.c", "$sql/os_win.c", "$sql/pager.c", "$sql/parse.c", "$sql/pragma.c", "$sql/printf.c", "$sql/random.c", "$sql/select.c", "$sql/shell.c", "$sql/table.c", "$sql/tokenize.c", "$sql/trigger.c", "$sql/update.c", "$sql/utf.c", "$sql/util.c", "$sql/vacuum.c", "$sql/vdbe.c", "$sql/vdbeapi.c", "$sql/vdbeaux.c", "$sql/vdbemem.c", "$sql/where.c");
my %OPTIONS, %OPT; my %OPTIONS, %OPT;
$OPT{"debug"} = "-g -ggdb"; $OPT{"debug"} = "-g -ggdb";
$OPT{"opt"} = "-O2 -ffast-math -funroll-loops -fomit-frame-pointer -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -fno-exceptions -fno-rtti"; $OPT{"opt"} = "-O2 -ffast-math -funroll-loops -fomit-frame-pointer -s -DNDEBUG -Wall -Wno-unknown-pragmas -DOPT_TYPE=\"optimized\" -fno-exceptions -fno-rtti";
$OPTIONS{"include"} = "-I$sdk -I. -I$mm -I$sdk/engine -I$sdk/common -I$sdk/pm_shared -I$sdk/dlls -I$sqlite"; $OPTIONS{"include"} = "-I$sdk -I. -I$mm -I$sdk/engine -I$sdk/common -I$sdk/pm_shared -I$sdk/dlls -I$sql";
while ($cmd = shift) while ($cmd = shift)
{ {
@ -127,6 +128,10 @@ if (!(-d $outdir))
{ {
mkdir($outdir); mkdir($outdir);
} }
if (!(-d "$outdir/$sql"))
{
mkdir("$outdir/$sql");
}
$inc = $OPTIONS{"include"}; $inc = $OPTIONS{"include"};
@ -152,7 +157,7 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++)
} }
} }
for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++) for ($i=0; $i<=$#C_SOURCE_FILES; $i++)
{ {
$file = $C_SOURCE_FILES[$i]; $file = $C_SOURCE_FILES[$i];
$ofile = $file; $ofile = $file;