Makefile.linux-gcc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #!/usr/make
  2. #
  3. # Makefile for SQLITE
  4. #
  5. # This is a template makefile for SQLite. Most people prefer to
  6. # use the autoconf generated "configure" script to generate the
  7. # makefile automatically. But that does not work for everybody
  8. # and in every situation. If you are having problems with the
  9. # "configure" script, you might want to try this makefile as an
  10. # alternative. Create a copy of this file, edit the parameters
  11. # below and type "make".
  12. #
  13. #### The toplevel directory of the source tree. This is the directory
  14. # that contains this "Makefile.in" and the "configure.in" script.
  15. #
  16. TOP = ../sqlite
  17. #### C Compiler and options for use in building executables that
  18. # will run on the platform that is doing the build.
  19. #
  20. BCC = gcc -g -O0
  21. #BCC = /opt/ancic/bin/c89 -0
  22. #### If you want the SQLite library to be safe for use within a
  23. # multi-threaded program, then define the following macro
  24. # appropriately:
  25. #
  26. #THREADSAFE = -DTHREADSAFE=1
  27. THREADSAFE = -DTHREADSAFE=0
  28. #### Specify any extra linker options needed to make the library
  29. # thread safe
  30. #
  31. THREADLIB = -lpthread -lm -ldl
  32. #THREADLIB =
  33. #### Specify any extra libraries needed to access required functions.
  34. #
  35. #TLIBS = -lrt # fdatasync on Solaris 8
  36. TLIBS =
  37. #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
  38. # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
  39. # malloc()s and free()s in order to track down memory leaks.
  40. #
  41. # SQLite uses some expensive assert() statements in the inner loop.
  42. # You can make the library go almost twice as fast if you compile
  43. # with -DNDEBUG=1
  44. #
  45. OPTS += -DSQLITE_DEBUG=1
  46. OPTS += -DSQLITE_ENABLE_WHERETRACE
  47. OPTS += -DSQLITE_ENABLE_SELECTTRACE
  48. #### The suffix to add to executable files. ".exe" for windows.
  49. # Nothing for unix.
  50. #
  51. #EXE = .exe
  52. EXE =
  53. #### C Compile and options for use in building executables that
  54. # will run on the target platform. This is usually the same
  55. # as BCC, unless you are cross-compiling.
  56. #
  57. TCC = gcc -O0
  58. #TCC = gcc -g -O0 -Wall
  59. #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
  60. #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
  61. #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
  62. #### Tools used to build a static library.
  63. #
  64. AR = ar cr
  65. #AR = /opt/mingw/bin/i386-mingw32-ar cr
  66. RANLIB = ranlib
  67. #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
  68. MKSHLIB = gcc -shared
  69. SO = so
  70. SHPREFIX = lib
  71. # SO = dll
  72. # SHPREFIX =
  73. #### Extra compiler options needed for programs that use the TCL library.
  74. #
  75. TCL_FLAGS = -I/home/drh/tcl/include/tcl8.6
  76. #### Linker options needed to link against the TCL library.
  77. #
  78. #LIBTCL = -ltcl -lm -ldl
  79. LIBTCL = /home/drh/tcl/lib/libtcl8.6.a -lm -lpthread -ldl -lz
  80. #### Additional objects for SQLite library when TCL support is enabled.
  81. #TCLOBJ =
  82. TCLOBJ = tclsqlite.o
  83. #### Compiler options needed for programs that use the readline() library.
  84. #
  85. READLINE_FLAGS =
  86. #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
  87. #### Linker options needed by programs using readline() must link against.
  88. #
  89. LIBREADLINE =
  90. #LIBREADLINE = -static -lreadline -ltermcap
  91. # You should not have to change anything below this line
  92. ###############################################################################
  93. include $(TOP)/main.mk