You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.4 KiB

  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 -O2
  21. #BCC = /opt/ancic/bin/c89 -0
  22. #### If the target operating system supports the "usleep()" system
  23. # call, then define the HAVE_USLEEP macro for all C modules.
  24. #
  25. #USLEEP =
  26. USLEEP = -DHAVE_USLEEP=1
  27. #### If you want the SQLite library to be safe for use within a
  28. # multi-threaded program, then define the following macro
  29. # appropriately:
  30. #
  31. #THREADSAFE = -DTHREADSAFE=1
  32. THREADSAFE = -DTHREADSAFE=0
  33. #### Specify any extra linker options needed to make the library
  34. # thread safe
  35. #
  36. #THREADLIB = -lpthread
  37. THREADLIB =
  38. #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
  39. # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
  40. # malloc()s and free()s in order to track down memory leaks.
  41. #
  42. # SQLite uses some expensive assert() statements in the inner loop.
  43. # You can make the library go almost twice as fast if you compile
  44. # with -DNDEBUG=1
  45. #
  46. #OPTS = -DSQLITE_DEBUG=2
  47. #OPTS = -DSQLITE_DEBUG=1
  48. #OPTS =
  49. OPTS = -DNDEBUG=1
  50. #### The suffix to add to executable files. ".exe" for windows.
  51. # Nothing for unix.
  52. #
  53. #EXE = .exe
  54. EXE =
  55. #### C Compile and options for use in building executables that
  56. # will run on the target platform. This is usually the same
  57. # as BCC, unless you are cross-compiling.
  58. #
  59. TCC = gcc -O6
  60. #TCC = gcc -g -O0 -Wall
  61. #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
  62. #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
  63. #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
  64. #### Tools used to build a static library.
  65. #
  66. AR = ar cr
  67. #AR = /opt/mingw/bin/i386-mingw32-ar cr
  68. RANLIB = ranlib
  69. #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
  70. #### Extra compiler options needed for programs that use the TCL library.
  71. #
  72. #TCL_FLAGS =
  73. #TCL_FLAGS = -DSTATIC_BUILD=1
  74. TCL_FLAGS = -I/home/drh/tcltk/8.4linux
  75. #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1
  76. #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
  77. #### Linker options needed to link against the TCL library.
  78. #
  79. #LIBTCL = -ltcl -lm -ldl
  80. LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
  81. #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt
  82. #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
  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. #### Should the database engine assume text is coded as UTF-8 or iso8859?
  92. #
  93. # ENCODING = UTF8
  94. ENCODING = ISO8859
  95. # You should not have to change anything below this line
  96. ###############################################################################
  97. include $(TOP)/main.mk