Makefile.arm-wince-mingw32ce-gcc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 directory where to find the mingw32ce tools
  14. MINGW32CE = /opt/mingw32ce/bin
  15. #### The target prefix of the mingw32ce tools
  16. TARGET = arm-wince-mingw32ce
  17. #### The toplevel directory of the source tree. This is the directory
  18. # that contains this "Makefile.in" and the "configure.in" script.
  19. #
  20. TOP = ../sqlite
  21. #### C Compiler and options for use in building executables that
  22. # will run on the platform that is doing the build.
  23. #
  24. BCC = gcc -g -O2
  25. #BCC = /opt/ancic/bin/c89 -0
  26. #### If the target operating system supports the "usleep()" system
  27. # call, then define the HAVE_USLEEP macro for all C modules.
  28. #
  29. USLEEP =
  30. #USLEEP = -DHAVE_USLEEP=1
  31. #### If you want the SQLite library to be safe for use within a
  32. # multi-threaded program, then define the following macro
  33. # appropriately:
  34. #
  35. THREADSAFE = -DTHREADSAFE=1
  36. #THREADSAFE = -DTHREADSAFE=0
  37. #### Specify any extra linker options needed to make the library
  38. # thread safe
  39. #
  40. #THREADLIB = -lpthread
  41. THREADLIB =
  42. #### Specify any extra libraries needed to access required functions.
  43. #
  44. #TLIBS = -lrt # fdatasync on Solaris 8
  45. TLIBS =
  46. #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
  47. # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
  48. # malloc()s and free()s in order to track down memory leaks.
  49. #
  50. # SQLite uses some expensive assert() statements in the inner loop.
  51. # You can make the library go almost twice as fast if you compile
  52. # with -DNDEBUG=1
  53. #
  54. #OPTS = -DSQLITE_DEBUG=2
  55. #OPTS = -DSQLITE_DEBUG=1
  56. #OPTS =
  57. OPTS = -DNDEBUG=1 -DSQLITE_OS_WIN=1 -D_WIN32_WCE=1
  58. #OPTS += -DHAVE_FDATASYNC=1
  59. #### The suffix to add to executable files. ".exe" for windows.
  60. # Nothing for unix.
  61. #
  62. EXE = .exe
  63. #EXE =
  64. #### C Compile and options for use in building executables that
  65. # will run on the target platform. This is usually the same
  66. # as BCC, unless you are cross-compiling.
  67. #
  68. #TCC = gcc -O6
  69. #TCC = gcc -g -O0 -Wall
  70. #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
  71. #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
  72. TCC = $(MINGW32CE)/$(TARGET)-gcc -O2
  73. #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
  74. #### Tools used to build a static library.
  75. #
  76. #AR = ar cr
  77. #AR = /opt/mingw/bin/i386-mingw32-ar cr
  78. AR = $(MINGW32CE)/$(TARGET)-ar cr
  79. #RANLIB = ranlib
  80. #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
  81. RANLIB = $(MINGW32CE)/$(TARGET)-ranlib
  82. #MKSHLIB = gcc -shared
  83. #SO = so
  84. #SHPREFIX = lib
  85. MKSHLIB = $(MINGW32CE)/$(TARGET)-gcc -shared
  86. SO = dll
  87. SHPREFIX =
  88. #### Extra compiler options needed for programs that use the TCL library.
  89. #
  90. #TCL_FLAGS =
  91. #TCL_FLAGS = -DSTATIC_BUILD=1
  92. TCL_FLAGS = -I/home/drh/tcltk/8.5linux
  93. #TCL_FLAGS = -I/home/drh/tcltk/8.5win -DSTATIC_BUILD=1
  94. #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
  95. #### Linker options needed to link against the TCL library.
  96. #
  97. #LIBTCL = -ltcl -lm -ldl
  98. LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl
  99. #LIBTCL = /home/drh/tcltk/8.5win/libtcl85s.a -lmsvcrt
  100. #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
  101. #### Additional objects for SQLite library when TCL support is enabled.
  102. TCLOBJ =
  103. #TCLOBJ = tclsqlite.o
  104. #### Compiler options needed for programs that use the readline() library.
  105. #
  106. READLINE_FLAGS =
  107. #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
  108. #### Linker options needed by programs using readline() must link against.
  109. #
  110. LIBREADLINE =
  111. #LIBREADLINE = -static -lreadline -ltermcap
  112. #### Which "awk" program provides nawk compatibilty
  113. #
  114. # NAWK = nawk
  115. NAWK = awk
  116. # You should not have to change anything below this line
  117. ###############################################################################
  118. include $(TOP)/main.mk