Makefile 700 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # WARNING: do not run this directly, it should be run by the master Makefile
  3. include ../../Makefile.defs
  4. auto_gen=
  5. NAME=db_unixodbc.so
  6. ifeq ($(CROSS_COMPILE),)
  7. ODBCCFG=$(shell which odbc_config)
  8. endif
  9. ifneq ($(ODBCCFG),)
  10. DEFS += $(shell $(ODBCCFG) --cflags )
  11. LIBS += $(shell $(ODBCCFG) --libs)
  12. else
  13. # sql.h locations (freebsd,openbsd solaris)
  14. DEFS += -I$(LOCALBASE)/include
  15. # libodbc locations on RH/Suse, Solaris /OpenBSD, FreeBSD
  16. # (Debian does the right thing and puts it in /usr/lib)
  17. LIBS= -L$(LOCALBASE)/lib -lodbc
  18. endif
  19. DEFS+=-DKAMAILIO_MOD_INTERFACE
  20. SERLIBPATH=../../lib
  21. SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
  22. SER_LIBS+=$(SERLIBPATH)/kcore/kcore
  23. include ../../Makefile.modules