mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
Fixed makefiles
This commit is contained in:
parent
9d4e5b18ee
commit
adf12ab745
@ -1,12 +1,7 @@
|
|||||||
MODNAME = sqlite_amxx
|
MODNAME = sqlite_amxx
|
||||||
SRCFILES = sqlite_amx.cpp sqlite.cpp amxxmodule.cpp
|
SRCFILES = sqlite_amx.cpp sqlite.cpp amxxmodule.cpp
|
||||||
|
|
||||||
EXTRA_LIBS_LINUX = lib/libpq.a -lpq -lz -lcrypt
|
EXTRA_INCLUDEDIRS = -I../../amxmodx -Isqlite-source-3_1_2
|
||||||
EXTRA_LIBS_WIN32 = libpq.a -lws2_32 -lwsock32
|
|
||||||
EXTRA_LIBDIRS_LINUX = -Llib
|
|
||||||
EXTRA_LIBDIRS_WIN32 = -L
|
|
||||||
|
|
||||||
EXTRA_INCLUDEDIRS = -Iextra/include -I../../amxmodx -Isqlite-source-3_1_2
|
|
||||||
|
|
||||||
EXTRA_FLAGS = -Dstrcmpi=strcasecmp
|
EXTRA_FLAGS = -Dstrcmpi=strcasecmp
|
||||||
|
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
# proc=ix86 - assumed not amd64
|
# proc=ix86 - assumed not amd64
|
||||||
# clean - clean the specifications above
|
# clean - clean the specifications above
|
||||||
|
|
||||||
$PROJECT = "pgsql_amxx";
|
$PROJECT = "sqlite_amxx";
|
||||||
$sdk = "../hlsdk/SourceCode";
|
$sdk = "../../../hlmultisource";
|
||||||
$mm = "../metamod/metamod";
|
$mm = "../../../metamodsrc/metamod";
|
||||||
$pg = "extra/src";
|
$sqlite = "sqlite-source-3_1_2";
|
||||||
$gccf = "gcc";
|
$gccf = "gcc";
|
||||||
|
|
||||||
@CPP_SOURCE_FILES = ("pgsql.cpp", "pgsql_amx.cpp", "amxxmodule.cpp");
|
@CPP_SOURCE_FILES = ("sqlite.cpp", "sqlite_amx.cpp", "amxxmodule.cpp");
|
||||||
|
|
||||||
@C_SOURCE_FILES = ();
|
@C_SOURCE_FILES = ();
|
||||||
my %OPTIONS, %OPT;
|
my %OPTIONS, %OPT;
|
||||||
@ -26,7 +26,7 @@ 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$pg/include -I$pg/interfaces/libpq -L./lib";
|
$OPTIONS{"include"} = "-I$sdk -I. -I$mm -I$sdk/engine -I$sdk/common -I$sdk/pm_shared -I$sdk/dlls -I$sqlite";
|
||||||
|
|
||||||
while ($cmd = shift)
|
while ($cmd = shift)
|
||||||
{
|
{
|
||||||
@ -174,6 +174,6 @@ for ($i=0; $i<=$#CPP_SOURCE_FILES; $i++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$gcc = "$gccf $cflags $inc -shared -ldl -lm @LINK -lpq -lz -lcrypt -o $outdir/$bin";
|
$gcc = "$gccf $cflags $inc -shared -ldl -lm @LINK -lz -lcrypt -o $outdir/$bin";
|
||||||
print "$gcc\n";
|
print "$gcc\n";
|
||||||
`$gcc`;
|
`$gcc`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user