Makefile 735 B

123456789101112131415161718192021222324252627282930
  1. # $Id$
  2. #
  3. # WARNING: do not run this directly, it should be run by the master Makefile
  4. include ../../Makefile.defs
  5. auto_gen=
  6. NAME=db_sqlite.so
  7. # sqlite3.h locations (freebsd,openbsd solaris)
  8. DEFS += -I$(LOCALBASE)/include
  9. # libodbc locations on RH/Suse, Solaris /OpenBSD, FreeBSD
  10. # (Debian does the right thing and puts it in /usr/lib)
  11. LIBS= -L$(LOCALBASE)/lib -lsqlite3
  12. DEFS+=-DKAMAILIO_MOD_INTERFACE
  13. SERLIBPATH=../../lib
  14. SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
  15. include ../../Makefile.modules
  16. ifeq ($(INSTALL_FLAVOUR),kamailio)
  17. # extra install for kamailio
  18. install-sqlite-scripts: $(bin_prefix)/$(bin_dir)
  19. SQLITEON=yes make -C ../../utils/kamctl/ install-modules
  20. install-scripts: install-sqlite-scripts
  21. endif # INSTALL_FLAVOUR