Makefile.linux-gcc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. #### Specify any extra libraries needed to access required functions.
  39. #
  40. #TLIBS = -lrt # fdatasync on Solaris 8
  41. TLIBS =
  42. #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
  43. # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
  44. # malloc()s and free()s in order to track down memory leaks.
  45. #
  46. # SQLite uses some expensive assert() statements in the inner loop.
  47. # You can make the library go almost twice as fast if you compile
  48. # with -DNDEBUG=1
  49. #
  50. #OPTS = -DSQLITE_DEBUG=2
  51. #OPTS = -DSQLITE_DEBUG=1
  52. #OPTS =
  53. OPTS = -DNDEBUG=1
  54. OPTS += -DHAVE_FDATASYNC=1
  55. #### The suffix to add to executable files. ".exe" for windows.
  56. # Nothing for unix.
  57. #
  58. #EXE = .exe
  59. EXE =
  60. #### C Compile and options for use in building executables that
  61. # will run on the target platform. This is usually the same
  62. # as BCC, unless you are cross-compiling.
  63. #
  64. TCC = gcc -O6
  65. #TCC = gcc -g -O0 -Wall
  66. #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
  67. #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
  68. #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
  69. #### Tools used to build a static library.
  70. #
  71. AR = ar cr
  72. #AR = /opt/mingw/bin/i386-mingw32-ar cr
  73. RANLIB = ranlib
  74. #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
  75. MKSHLIB = gcc -shared
  76. SO = so
  77. SHPREFIX = lib
  78. # SO = dll
  79. # SHPREFIX =
  80. #### Extra compiler options needed for programs that use the TCL library.
  81. #
  82. #TCL_FLAGS =
  83. #TCL_FLAGS = -DSTATIC_BUILD=1
  84. TCL_FLAGS = -I/home/drh/tcltk/8.5linux
  85. #TCL_FLAGS = -I/home/drh/tcltk/8.5win -DSTATIC_BUILD=1
  86. #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
  87. #### Linker options needed to link against the TCL library.
  88. #
  89. #LIBTCL = -ltcl -lm -ldl
  90. LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl
  91. #LIBTCL = /home/drh/tcltk/8.5win/libtcl85s.a -lmsvcrt
  92. #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
  93. #### Additional objects for SQLite library when TCL support is enabled.
  94. #TCLOBJ =
  95. TCLOBJ = tclsqlite.o
  96. #### Compiler options needed for programs that use the readline() library.
  97. #
  98. READLINE_FLAGS =
  99. #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
  100. #### Linker options needed by programs using readline() must link against.
  101. #
  102. LIBREADLINE =
  103. #LIBREADLINE = -static -lreadline -ltermcap
  104. #### Which "awk" program provides nawk compatibilty
  105. #
  106. # NAWK = nawk
  107. NAWK = awk
  108. # You should not have to change anything below this line
  109. ###############################################################################
  110. include $(TOP)/main.mk