| OLD | NEW |
| 1 #!/usr/make | 1 #!/usr/make |
| 2 # | 2 # |
| 3 # Makefile for SQLITE | 3 # Makefile for SQLITE |
| 4 # | 4 # |
| 5 # This is a template makefile for SQLite. Most people prefer to | 5 # This is a template makefile for SQLite. Most people prefer to |
| 6 # use the autoconf generated "configure" script to generate the | 6 # use the autoconf generated "configure" script to generate the |
| 7 # makefile automatically. But that does not work for everybody | 7 # makefile automatically. But that does not work for everybody |
| 8 # and in every situation. If you are having problems with the | 8 # and in every situation. If you are having problems with the |
| 9 # "configure" script, you might want to try this makefile as an | 9 # "configure" script, you might want to try this makefile as an |
| 10 # alternative. Create a copy of this file, edit the parameters | 10 # alternative. Create a copy of this file, edit the parameters |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 #### Specify any extra linker options needed to make the library | 38 #### Specify any extra linker options needed to make the library |
| 39 # thread safe | 39 # thread safe |
| 40 # | 40 # |
| 41 THREADLIB = -lpthread | 41 THREADLIB = -lpthread |
| 42 #THREADLIB = | 42 #THREADLIB = |
| 43 | 43 |
| 44 #### Specify any extra libraries needed to access required functions. | 44 #### Specify any extra libraries needed to access required functions. |
| 45 # | 45 # |
| 46 #TLIBS = -lrt # fdatasync on Solaris 8 | 46 #TLIBS = -lrt # fdatasync on Solaris 8 |
| 47 ifeq ($(shell uname -s),Darwin) | |
| 48 TLIBS = -framework CoreServices | |
| 49 else | |
| 50 TLIBS = -ldl | 47 TLIBS = -ldl |
| 51 endif | |
| 52 | 48 |
| 53 #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1 | 49 #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1 |
| 54 # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all | 50 # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all |
| 55 # malloc()s and free()s in order to track down memory leaks. | 51 # malloc()s and free()s in order to track down memory leaks. |
| 56 # | 52 # |
| 57 # SQLite uses some expensive assert() statements in the inner loop. | 53 # SQLite uses some expensive assert() statements in the inner loop. |
| 58 # You can make the library go almost twice as fast if you compile | 54 # You can make the library go almost twice as fast if you compile |
| 59 # with -DNDEBUG=1 | 55 # with -DNDEBUG=1 |
| 60 # | 56 # |
| 61 #OPTS = -DSQLITE_DEBUG=2 | 57 #OPTS = -DSQLITE_DEBUG=2 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline | 138 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline |
| 143 | 139 |
| 144 #### Linker options needed by programs using readline() must link against. | 140 #### Linker options needed by programs using readline() must link against. |
| 145 # | 141 # |
| 146 LIBREADLINE = | 142 LIBREADLINE = |
| 147 #LIBREADLINE = -static -lreadline -ltermcap | 143 #LIBREADLINE = -static -lreadline -ltermcap |
| 148 | 144 |
| 149 # You should not have to change anything below this line | 145 # You should not have to change anything below this line |
| 150 ############################################################################### | 146 ############################################################################### |
| 151 include $(TOP)/main.mk | 147 include $(TOP)/main.mk |
| OLD | NEW |