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