Subversion Repositories Kolibri OS

Rev

Rev 8935 | Rev 8938 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8935 turbocat 1
if tup.getconfig("NO_GCC") ~= "" then return end
2
if tup.getconfig("HELPERDIR") == ""
3
then
4
  HELPERDIR = "../../../../../programs"
5
end
6
tup.include(HELPERDIR .. "/use_gcc.lua")
7
tup.include(HELPERDIR .. "/use_newlib.lua")
8
 
9
INCLUDES= INCLUDES .. " -I .. "
10
 
8937 turbocat 11
CFLAGS = CFLAGS .. " -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -DSQLITE_OS_OTHER=1 -DHAVE_UNISTD_H=0 -D_NO_STDERR -DSQLITE_OMIT_POPEN -DSQLITE_THREADSAFE=0 -D_KOLIBRI -U__linux__ -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.36.0\" -DPACKAGE_STRING=\"sqlite 3.36.0\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.36.0\""
8935 turbocat 12
 
13
LDFLAGS = LDFLAGS .. " --subsystem console "
14
 
15
table.insert(LIBDEPS,"../../../lib/")
16
LIBS = LIBS .. " -lsqlite3.dll"
17
 
18
-- Compile --
19
compile_gcc{
20
    "shell.c", "stub.c"
21
}
22
 
23
-- Link --
24
link_gcc("sqlite3")
25