Makefile.fallback 547 B

1234567891011121314151617181920
  1. #!/usr/bin/make
  2. #
  3. # If the configure script does not work, then this Makefile is available
  4. # as a backup. Manually configure the variables below.
  5. #
  6. # Note: This makefile works out-of-the-box on MacOS 10.2 (Jaguar)
  7. #
  8. CC = gcc
  9. CFLAGS = -O0 -I.
  10. LIBS = -lz
  11. COPTS += -D_BSD_SOURCE
  12. COPTS += -DSQLITE_ENABLE_LOCKING_STYLE=0
  13. COPTS += -DSQLITE_THREADSAFE=0
  14. COPTS += -DSQLITE_OMIT_LOAD_EXTENSION
  15. COPTS += -DSQLITE_WITHOUT_ZONEMALLOC
  16. COPTS += -DSQLITE_ENABLE_RTREE
  17. sqlite3: shell.c sqlite3.c
  18. $(CC) $(CFLAGS) $(COPTS) -o sqlite3 shell.c sqlite3.c $(LIBS)